1
SMF Gallery Lite / Added HTML and BBC to gallery....
« on: October 21, 2006, 02:55:52 am »
Okay I liked the random picture block that we were working on with the Linking codes button, but I wanted linking codes to show when you view the photo in the gallery.....
So here is what I did and it works but I want you guys to improve it for me.
Find:
After add:
This should add the photo codes for that picture right under the photo description and who is viewing junk but before the comments block.
I would like to see these codes go directly to the gallery page, but showing the thumbnail....
If none of this makes sense its because i am tired, and semi retarded when it comes to this stuff.
So if anyone can help with this code I would really appreciate it!
So here is what I did and it works but I want you guys to improve it for me.
Find:
Code: [Select]
echo'
</table><br />';
Around line 738 just before the comments codes....After add:
Code: [Select]
{
echo '
<form><b>HTML:<br></b><textarea rows="2" cols="90"><a href="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename'] . '">
<img src="' . $modSettings['gallery_url'] . 'thumb_' . $context['gallery_pic']['filename'] . '"></a></textarea><p>
<b>BBC:<br></b><textarea rows="2" cols="90">[url=' . $modSettings['gallery_url'] . $context['gallery_pic']['filename'] . ']
[img]' . $modSettings['gallery_url'] . 'thumb_' . $context['gallery_pic']['filename'] . '[/img][/url]'; echo '</textarea></form><p>';
}
This should add the photo codes for that picture right under the photo description and who is viewing junk but before the comments block.
I would like to see these codes go directly to the gallery page, but showing the thumbnail....
If none of this makes sense its because i am tired, and semi retarded when it comes to this stuff.
So if anyone can help with this code I would really appreciate it!