SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2012, 07:20:44 am

Login with username, password and session length
Members
Total Members: 10069
Latest: tetsujrock
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 56
Total: 56
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Added HTML and BBC to gallery....  (Read 2307 times)
xface
Newbie
*
Offline Offline

Posts: 16


View Profile
« 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:
Code:
echo'
</table><br />';
Around line 738 just before the comments codes....

After add:
Code:
{
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.  Grin Shocked

So if anyone can help with this code I would really appreciate it!
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.186 seconds with 21 queries.