Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 187
Total: 187

Author Topic: BBC in photo view  (Read 9651 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: 16436
    • 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: 16436
    • 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: 16436
    • 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
3715 Views
Last post July 25, 2009, 10:48:10 am
by astronomaki
1 Replies
3513 Views
Last post March 14, 2010, 09:32:38 am
by nin79
1 Replies
3679 Views
Last post April 22, 2012, 06:53:23 pm
by SMFHacks
1 Replies
3012 Views
Last post March 02, 2014, 02:56:05 pm
by SMFHacks
0 Replies
2687 Views
Last post August 14, 2014, 09:01:38 pm
by bagus

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal