Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 221
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 188
Total: 188

Author Topic: BBC in photo view  (Read 9672 times)

0 Members and 1 Guest are viewing this topic.

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
BBC in photo view
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: BBC in photo view
« 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: BBC in photo view
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: BBC in photo view
« 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?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: BBC in photo view
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: BBC in photo view
« 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: [Select]
//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: [Select]
//BBC Code
echo '<br />BBC Code: <input type="textbox" name="bbc" size="100" value="[img]' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '[/img]" />';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline veldfire

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • Corys "R" Us
Re: BBC in photo view
« Reply #6 on: December 24, 2006, 12:04:13 pm »
Thank you very much !

Actually added it at line 943 after:
Code: [Select]
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

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
3729 Views
Last post July 25, 2009, 10:48:10 am
by astronomaki
1 Replies
3521 Views
Last post March 14, 2010, 09:32:38 am
by nin79
1 Replies
3704 Views
Last post April 22, 2012, 06:53:23 pm
by SMFHacks
1 Replies
3021 Views
Last post March 02, 2014, 02:56:05 pm
by SMFHacks
0 Replies
2692 Views
Last post August 14, 2014, 09:01:38 pm
by bagus

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal