Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12377
Latest: jenolsens01
New This Month: 4
New This Week: 1
New Today: 1
Stats
Total Posts: 40223
Total Topics: 7085
Most Online Today: 42
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 33
Total: 34

Author Topic: No Gallery Button in Bayblon Theme  (Read 3666 times)

0 Members and 1 Guest are viewing this topic.

Offline Richard_P_Harvey

  • Newbie
  • *
  • Posts: 4
    • View Profile
No Gallery Button in Bayblon Theme
« on: February 26, 2007, 12:38:40 pm »
I have read tons here and I clearly understand that this is going to require modification to a template but I'm totally new at this and after three failed attempts, I wonder if I could beg you to do it for me.  What I would like is have a button just like the ones already there but one that gets to the gallery.  Attached is my template file.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15110
    • View Profile
Re: No Gallery Button in Bayblon Theme
« Reply #1 on: February 26, 2007, 12:45:21 pm »
Open index.template.php
Find
Code: [Select]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];

Add after
Code: [Select]
// Gallery
if ($context['allow_smfgallery_view'])
echo '
<a href="', $scripturl, '?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="Gallery" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];
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 Richard_P_Harvey

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: No Gallery Button in Bayblon Theme
« Reply #2 on: February 26, 2007, 01:15:54 pm »
I have attempted this exactly 3 times and all 3 times I end up making the template crash SMF, could you PLEASE do it for me.....!   :'(

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15110
    • View Profile
Re: No Gallery Button in Bayblon Theme
« Reply #3 on: February 26, 2007, 01:20:48 pm »
That is the code. That I used. normal members here are not allowed to download attachments.
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/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3086 Views
Last post May 09, 2007, 05:28:31 am
by NaSHoOo
0 Replies
3234 Views
Last post July 30, 2008, 09:42:39 am
by ikhala
3 Replies
3434 Views
Last post February 10, 2009, 03:21:44 am
by neilwheel
0 Replies
3998 Views
Last post December 25, 2010, 09:27:09 am
by bulletflame
2 Replies
1697 Views
Last post November 27, 2012, 05:50:12 am
by china-stamps

+- Recent Topics

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Powered by EzPortal