FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » FUD code internal links
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
FUD code internal links [message #15636] Mon, 29 December 2003 04:07 Go to next message
firepages is currently offline  firepages   Australia
Messages: 24
Registered: July 2003
Karma: 0
Junior Member
Hi , I just added internal links to my forums FUDcode by adding [iurl] to the post_proc.inc.t (ok I just copied and pasted and added an 'i' & reverse stuff in html_to_tags but it felt good anyway)

this way I can link internally without the new window which I think is useful.

I did start by checking for the domain in the existing code and then optionally removing the target="_blank" based on that but then that takes away the choice..

anyway what I am trying to say is I find this useful perhaps others might & may be a candidate for an extra FUDcode feature ?

I was also thinking of alternate inage tags so we can align images in FUDcode ... just simple stuff like right and left align [imgl] [imgr] etc ? no point ? daft ? go back to sleep Simon ?
Re: FUD code internal links [message #15639 is a reply to message #15636] Mon, 29 December 2003 15:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Considering FUDforum already has alignment tags, I see no reason to add [imgl] and [imgr], etc...

As for 'inline' link, it seems of somewhat dubious value since it would take the person away from the message they are reading.


FUDforum Core Developer
Re: FUD code internal links [message #15640 is a reply to message #15639] Mon, 29 December 2003 16:11 Go to previous messageGo to next message
firepages is currently offline  firepages   Australia
Messages: 24
Registered: July 2003
Karma: 0
Junior Member
Ilia wrote on Mon, 29 December 2003 10:33

Considering FUDforum already has alignment tags, I see no reason to add [imgl] and [imgr], etc...



yes but that does not wrap the text as <img src="FUD" align="left" /> or similar inline styles would do , which is what I meant (I should have been more specific)

Ilia wrote on Mon, 29 December 2003 10:33


As for 'inline' link, it seems of somewhat dubious value since it would take the person away from the message they are reading.


dubious for sure Wink , but not a large overhead considering the way FUD uses FUD markup , just a thought .

I am using FUD as a CMS and want to give admin as much power as possible without letting them have access to HTML , which , like letting regular users near an RTE as I have found to my distress is often a mistake ~

I appreciate that it would probably be a little used feature (and FUD is primarily a forum I accept) but thought I would ask anyway , cos if you don't ask ..... Wink
Re: FUD code internal links [message #15641 is a reply to message #15640] Mon, 29 December 2003 17:05 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
firepages wrote on Mon, 29 December 2003 11:11

Ilia wrote on Mon, 29 December 2003 10:33

Considering FUDforum already has alignment tags, I see no reason to add [imgl] and [imgr], etc...



yes but that does not wrap the text as <img src="FUD" align="left" /> or similar inline styles would do , which is what I meant (I should have been more specific)



That's an excellent point, which I had not considered. If this in fact allows text wrapping around an image I'll definitely considering the necessary tags.

Quote:


Ilia wrote on Mon, 29 December 2003 10:33


As for 'inline' link, it seems of somewhat dubious value since it would take the person away from the message they are reading.


dubious for sure Wink , but not a large overhead considering the way FUD uses FUD markup , just a thought .



Lot's of little overheads add up, while you brought an excellent point about images, I am not convinced inline links are really needed. It seems to me that in most cases it's better to use new windows since the original message window is retained. Since it looks to be a very limited use feature I am rather reluctant to add it.


FUDforum Core Developer
Re: FUD code internal links [message #15662 is a reply to message #15641] Tue, 30 December 2003 15:30 Go to previous messageGo to next message
firepages is currently offline  firepages   Australia
Messages: 24
Registered: July 2003
Karma: 0
Junior Member
Ilia wrote on Mon, 29 December 2003 12:05

If this in fact allows text wrapping around an image I'll definitely considering the necessary tags.



..cool if you do go for it , perhaps add a bit of padding to the images ... or maybe that would be a css issue to be worried about elsewhere ? .. I used style="float:right;" & left here ..
http://www.firepages.com.au/FUD/index.php?t=thread&frm_id=10&rid=3
Re: FUD code internal links [message #15669 is a reply to message #15662] Tue, 30 December 2003 15:52 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Ok, I'll add this to my 2.6.1 todo.

FUDforum Core Developer
Re: FUD code internal links [message #26697 is a reply to message #15636] Thu, 04 August 2005 03:13 Go to previous messageGo to next message
langer is currently offline  langer   Australia
Messages: 19
Registered: August 2005
Location: Sydney, Australia
Karma: 0
Junior Member
I like the idea also of choosing to have an internal link, rather than spawning a new page. I have looked over the code, and it seems a bit beyond me to have both choices.

firepages, if you added [iurl] as an option, and retained the use of the original, can you please post the code here? Thanks.

Nicholas
Re: FUD code internal links [message #26709 is a reply to message #26697] Thu, 04 August 2005 17:34 Go to previous messageGo to next message
Ilia is currently offline  Ilia   United States
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
What do you mean an internal link?

FUDforum Core Developer
Re: FUD code internal links [message #26714 is a reply to message #15636] Thu, 04 August 2005 21:59 Go to previous messageGo to next message
langer is currently offline  langer   Australia
Messages: 19
Registered: August 2005
Location: Sydney, Australia
Karma: 0
Junior Member
meaning a link to another page on the forum such that it does not open in a new window.
Re: FUD code internal links [message #26736 is a reply to message #26714] Mon, 08 August 2005 02:26 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It is a one line tweak inside post_proc.inc.t if you want to change the behaviour, just remove or change the value of the target attribute.

FUDforum Core Developer
Re: FUD code internal links [message #26738 is a reply to message #15636] Mon, 08 August 2005 02:36 Go to previous messageGo to next message
langer is currently offline  langer   Australia
Messages: 19
Registered: August 2005
Location: Sydney, Australia
Karma: 0
Junior Member
Thanks. I know how to make it all or none, but being able to have both behaviors using say [iurl] as a new tag is beyond me... Hate those regular expressions...
Re: FUD code internal links [message #26741 is a reply to message #26738] Mon, 08 August 2005 13:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
FUDforum does not use regex for implementing tags, only from converting html back to fudcode. Basically if you want to add [urli] simply duplicate the [url] code and adjust the target field accordingly.

FUDforum Core Developer
Re : Re: FUD code internal links [message #26928 is a reply to message #26741] Mon, 22 August 2005 07:55 Go to previous messageGo to next message
math_adm is currently offline  math_adm   France
Messages: 126
Registered: September 2003
Location: France
Karma: 0
Senior Member
Hi

why not add these options to the url and img tags directly ?

For example, let's say

[url thiswindow=true]here is the internal link[/url]
[img align=right]http://www.mysite.com/picwithtextflowingaround.jpg[/img]


This would help keeping the number of tags down... Now maybe this would cause incompatibilities with existing fudcode ?
Re: Re : Re: FUD code internal links [message #26930 is a reply to message #26928] Mon, 22 August 2005 13:05 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Incompatibilities and difficulties in handing this as well.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: hr tag for FUDcode
Next Topic: Java formatting
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 08:16:37 GMT 2024

Total time taken to generate the page: 0.02589 seconds