Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12356
Latest: how to logo design
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 40076
Total Topics: 7055
Most Online Today: 63
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 50
Total: 51

Author Topic: Gallery Lite for TP with Mesh theme  (Read 5613 times)

0 Members and 1 Guest are viewing this topic.

Offline joyboy2001

  • Newbie
  • *
  • Posts: 9
    • View Profile
Gallery Lite for TP with Mesh theme
« on: March 17, 2007, 10:45:17 am »
Hi,

I want to install SMF gallery on my forum with TP and MeshTP theme installed.

The gallery installs properly but cannot be accessed since there is no button on the top. The button comes up in the Core theme and then the gallery can be accessed properly.

Also please let me know if this block code would work and would if follow the theme colors ??
The block code in question is :
http://www.smfhacks.com/index.php/topic,636.0.html

Any solutions ?
« Last Edit: March 17, 2007, 10:47:31 am by joyboy2001 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Gallery Lite for TP with Mesh theme
« Reply #1 on: March 17, 2007, 11:35:21 am »
If it is a button based theme you would need to draw the button.

Add add the code to index.template.php
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 joyboy2001

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Gallery Lite for TP with Mesh theme
« Reply #2 on: March 17, 2007, 11:39:58 am »
It is a button based theme but what do I need to link the button to ??

Also, would the code work with the theme pattern ??

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Gallery Lite for TP with Mesh theme
« Reply #3 on: March 17, 2007, 04:38:04 pm »
I would need to see the theme's index.template.php since some themes use different code.
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 joyboy2001

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Gallery Lite for TP with Mesh theme
« Reply #4 on: March 18, 2007, 08:53:21 am »
Please download from my server ...

http://Revlimit.co.in/index.template.php.test

Please rename the file and remove the .test

Sorry, could not attach the file since the attachment folder is full.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Gallery Lite for TP with Mesh theme
« Reply #5 on: March 18, 2007, 09:00:40 am »
Link does not work for me.
I also increased the folder space on this site.
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 joyboy2001

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Gallery Lite for TP with Mesh theme
« Reply #6 on: March 18, 2007, 03:34:00 pm »
here you go ...

Thanks ... I tried downloading the file myself, didn't work for me either ...
« Last Edit: April 27, 2007, 03:09:25 pm by joyboy2001 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Gallery Lite for TP with Mesh theme
« Reply #7 on: March 18, 2007, 04:01:46 pm »

Open up the file
Find
Code: [Select]
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Add after
Code: [Select]
// Gallery
if ($context['allow_smfgallery_view'])
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

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 joyboy2001

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Gallery Lite for TP with Mesh theme
« Reply #8 on: March 18, 2007, 04:12:27 pm »
It worked !!!

Thanks  ;D ;D

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
5380 Views
Last post January 12, 2007, 06:28:22 am
by softtouch
0 Replies
2764 Views
Last post March 17, 2007, 10:44:22 am
by joyboy2001
1 Replies
2919 Views
Last post November 27, 2007, 03:29:25 pm
by fwp
2 Replies
3416 Views
Last post February 15, 2008, 02:07:58 pm
by lanec
0 Replies
3581 Views
Last post December 27, 2014, 04:32:40 pm
by SMFHacks

+- Recent Topics

Cannot install Gallery Pro on SMF 2.1 RC2 by Hatshepsut
March 19, 2020, 12:55:00 am

Newbie questions by SMFHacks
March 08, 2020, 09:28:17 am

Update detect mobile mode PHP5 to PHP7 by Plus
March 05, 2020, 11:19:05 am

Just a hello by Plus
March 05, 2020, 11:05:56 am

Enotify Copyright Problem by SMFHacks
March 04, 2020, 09:21:09 pm

Cannot import by shawnb
March 02, 2020, 12:17:00 pm

Error message with latest SMF 2.1 Github build by Hatshepsut
March 01, 2020, 10:06:10 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Powered by EzPortal