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: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 178
Total: 178

Author Topic: Gallery button  (Read 8685 times)

0 Members and 1 Guest are viewing this topic.

Offline christinadearlove

  • Member
  • *
  • Posts: 5
    • View Profile
Gallery button
« on: April 15, 2008, 06:00:15 am »
Hi yas peeps im another one strugling to get my gallery button to work on my forum ive tried to add my index.templete.php file but cant work out how to

if its any use were using version 1.1.4 of the forums software
and theme Classic YaBB SE Theme

any ideas how i put the button in ?

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Gallery button
« Reply #1 on: April 15, 2008, 06:41:07 am »
What are the contents of your index.template.php file for that theme? It likely needs a few lines of code to make it work.

Offline christinadearlove

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Gallery button
« Reply #2 on: April 15, 2008, 06:44:07 am »
i can find the bits of code on the forums but any ideas wot i need to add ?

Offline Ken.

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 113
  • TP Rules!
    • View Profile
Re: Gallery button
« Reply #3 on: April 15, 2008, 07:00:13 am »
Check out the SMF Docs boards, they have really good directions for doing theme edits to add buttons.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery button
« Reply #4 on: April 15, 2008, 07:43:45 am »
If you are still having problems attach the index.template.php of your theme.
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 christinadearlove

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Gallery button
« Reply #5 on: April 15, 2008, 04:28:56 pm »
can some one tell me how i attach me index.templete.php file ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery button
« Reply #6 on: April 15, 2008, 08:29:40 pm »
You would first need to download the index.template.php from your website via FTP or using a control panel.

Next step would be to reply to this post and add an attachment.

Browse to the index.template.php file that you saved to computer and use that as the attachment.
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 mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Gallery button
« Reply #7 on: April 15, 2008, 08:51:50 pm »
Here's the code for the default theme, I don't have the Classic YaBB SE Theme installed, so I'm not exactly sure how it's structured. Put the code below in the index.template.php file for the theme (likely near the bottom of the code). You may need to translate it depending on how the theme is set up.
Code: [Select]
// the [SMF Gallery] button
if ($context['allow_smfgallery_view'])
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=gallery">' , $txt['smf_contest_title']  , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Offline wigglewire

  • Member
  • *
  • Posts: 2
    • View Profile
Re: Gallery button
« Reply #8 on: April 27, 2008, 05:48:31 pm »
Please help me add my gallery button.

Using SMF 1.1.4
Theme from SFM called: Android
Attached index.template.php below



Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Gallery button
« Reply #9 on: April 27, 2008, 08:36:53 pm »
Put this where you want it to appear.
Code: [Select]
// Show the [gallery] button.
echo '<li', $current_action == 'gallery' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=gallery"><b>' , 'Gallery' , '</b></a></li>';

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
5318 Views
Last post June 28, 2008, 10:51:56 pm
by rgsknr
1 Replies
4597 Views
Last post August 07, 2008, 07:39:07 pm
by SMFHacks
4 Replies
4423 Views
Last post December 09, 2010, 08:57:56 am
by SMFHacks
1 Replies
5301 Views
Last post May 25, 2014, 11:59:35 pm
by SMFHacks
3 Replies
3219 Views
Last post November 02, 2014, 09:59:18 pm
by shuban

+- 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