How to link pictures?
#1
Registered User
Thread Starter
How to link pictures?
Hi,
I've searched everywhere before I made a new thread but I'm just having no luck
How do I link a picture from my gallery on here to another site so it shows as an image not a URL?
I've played around with all sorts and still can't figure it out.
TIA
Rick
I've searched everywhere before I made a new thread but I'm just having no luck
How do I link a picture from my gallery on here to another site so it shows as an image not a URL?
I've played around with all sorts and still can't figure it out.
TIA
Rick
#2
Administrator
Rick click on the picture until you JUST get the pic, I think it is 3 clicks in all. Use that URL.
Some sites (other fora) sometimes don't like it as it is a dynamic url. Show me which pic you want as an example and I can demo.
Some sites (other fora) sometimes don't like it as it is a dynamic url. Show me which pic you want as an example and I can demo.
#3
Registered User
Thread Starter
Tried that Ian, I've tried the URL from the window that opens up when you do 3 full clicks with still no luck.
Any out of my gallery will do.
This is what I have used on another site with no luck without the spaces obviously
[ I M G ]https://www.s2ki.com/forums/index.php?act=module&module=gallery&cmd=viewimage& img=508626[ / I M G ]
Any out of my gallery will do.
This is what I have used on another site with no luck without the spaces obviously
[ I M G ]https://www.s2ki.com/forums/index.php?act=module&module=gallery&cmd=viewimage& img=508626[ / I M G ]
#4
Registered User
Thread Starter
Obviously that works on here but on another site it doesn't seem to see image 508626 as a picture and just posts the url like above, I guess it's because theres no .jpg on the end but even adding one on doesn't do anything
#6
Administrator
OK here is the answer
They are using phpbb (which is horrid, but free )
phpbb doesn't allow dynamic images to be posted in [img] tags, only static ones (with certain extensions like .jpg .gif .phg etc...)
But it isn't that hard to change it to make php as an allowed extension.
The person who takes care of the site will need to do the following to enable it:
search for this line in includes/bbcode.php
and add php as extension to the regular expression:
HTH
They are using phpbb (which is horrid, but free )
phpbb doesn't allow dynamic images to be posted in [img] tags, only static ones (with certain extensions like .jpg .gif .phg etc...)
But it isn't that hard to change it to make php as an allowed extension.
The person who takes care of the site will need to do the following to enable it:
search for this line in includes/bbcode.php
Code:
// [img]image_url_here[/img] code.. $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
Code:
// [img]image_url_here[/img] code.. $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png|php)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
Thread
Thread Starter
Forum
Replies
Last Post