SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 08:50:24 am

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 59
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 51
Total: 51
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: BBC in photo view  (Read 4678 times)
veldfire
Full Member
***
Offline Offline

Posts: 111


View Profile WWW
« on: December 23, 2006, 08:07:34 pm »

I am getting ready to upgrade to the PRO version and wondered if it has or will have say underneath or above the photo the BBC for those users less computer savy who would like to use any of their photos in a post. Just like when you go to a smiley site the have the code rendered for a specific smiley it could be rendered for that photo so any user could just copy and paste the code.

Second question is when I upgrade will I have to reset all the permissions, categories, as well as remodify my files to add the gallery button to my custom theme ?

And third and final question is what do I need to do to upgrade to PRO ?

TIA,
Veldfire
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #1 on: December 24, 2006, 12:52:07 am »

1. The bbc code on view picture is not built in but can be easly added to the gallery template.


2. All your permissions, and picture files remain. Your custom theme will be fine and you will not have to readd the gallery button.

3. After you purchase you will be sent a link with the full install. Once you order upgrade your account on this forum via the licenses bottom on the top of the page from their you will have access to more forums and will be able to download the ugprade package from lite to pro.
Logged
veldfire
Full Member
***
Offline Offline

Posts: 111


View Profile WWW
« Reply #2 on: December 24, 2006, 09:02:46 am »

1. And how would I go about adding that to the gallery template ?

2. Your correct as I upgraded flawlessly !

3. Have done so as well and thank you for your information and wonderful gallery !

Thanks,
Veldfire
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: December 24, 2006, 09:37:48 am »

You just want a textbox with the url for the picture that contains the bbc code for the picture and you want that to appear on view picture?
Logged
veldfire
Full Member
***
Offline Offline

Posts: 111


View Profile WWW
« Reply #4 on: December 24, 2006, 09:40:42 am »

You just want a textbox with the url for the picture that contains the bbc code for the picture and you want that to appear on view picture?
You got it !

TIA,
Veldfire
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #5 on: December 24, 2006, 11:47:33 am »

I am going to build this in later on as an option but here is the code
Open themes/default/Gallery.template.php

Find around line 991
Code:
//Show report picture link
if($g_report)
{
echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=report;id=' . $context['gallery_pic']['ID_PICTURE'] . '">' . $txt['gallery_text_reportpicture'] . '</a>';
}
Add after
Code:
//BBC Code
echo '<br />BBC Code: <input type="textbox" name="bbc" size="100" value="[img]' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '[/img]" />';
Logged
veldfire
Full Member
***
Offline Offline

Posts: 111


View Profile WWW
« Reply #6 on: December 24, 2006, 12:04:13 pm »

Thank you very much !

Actually added it at line 943 after:
Code:
echo $txt['gallery_text_postedby'] . '<a href="' . $scripturl . '?action=profile;u=' . $context['gallery_pic']['ID_MEMBER'] . '">'  . $context['gallery_pic']['realName'] . '</a> at ' . $context['gallery_pic']['date'] .' ';

as this way it keeps everything in line !

Thanks again,
Veldfire
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[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]
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 4.732 seconds with 21 queries.