Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: Powerbob on April 24, 2007, 04:34:28 AM

Title: Menu link to my integrated Coppermine gallery.
Post by: Powerbob on April 24, 2007, 04:34:28 AM
Hi, I have read all the different topics on adding links, and the manual. I am totally confused  :-\

Can someone please help me and give me the code to paste to index.template.


thanks

Bob
Title: Re: link to my integrated Coppermine gallery.
Post by: byon on April 25, 2007, 10:05:30 AM
Hi
*sidetrack*
I might be able to help since im about to work on a integration of SMF to a gallery (Gallery2 / Coppermine). Why is Coppermine your choice of gallery?
Title: Re: link to my integrated Coppermine gallery.
Post by: Kindred on April 25, 2007, 10:08:56 AM
Byon,

You do know that oldiesman already did a bridge from SMF to Gallery2?
Title: Re: link to my integrated Coppermine gallery.
Post by: Powerbob on April 26, 2007, 01:13:35 AM
All I need is for plain, in english, instructions on how to add a menu link from smf to my intergrated coppermine!

Thanks


Bob


Title: Re: Menu link to my integrated Coppermine gallery.
Post by: Powerbob on April 27, 2007, 07:55:01 PM
Anyone ???


Bob
Title: Re: Menu link to my integrated Coppermine gallery.
Post by: SteveW on April 28, 2007, 10:57:33 AM
You need to edit the index.template.php file in the theme directory you are using. Download this and find :

// the [member] list button

BEFORE THIS ADD:

// Gallery
if ($context['user']['is_logged'])
echo ($current_action == 'coppermine' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'coppermine' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=coppermine">' , $txt['Gallery'] , '</a>
</td>' , $current_action == 'coppermine' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Reupload this file and it should be visible when logged in.
Hope this helps.
Title: Re: Menu link to my integrated Coppermine gallery.
Post by: Powerbob on April 28, 2007, 11:32:23 PM
Sorry but did not work! Nothing shows up in menu?


Bob
Title: Re: Menu link to my integrated Coppermine gallery.
Post by: Kindred on April 28, 2007, 11:33:15 PM
Quote from: SteveW on April 28, 2007, 10:57:33 AM
You need to edit the index.template.php file in the theme directory you are using.
Title: Re: Menu link to my integrated Coppermine gallery.
Post by: Powerbob on April 29, 2007, 12:00:01 AM
Yes thanks, I am not an expert but that much I know ;D

Perhaps it is colliding with the smf gallery I have installed. I want to switch to coppermine when I can get the link to appear in the menu.


Bob
Title: Re: Menu link to my integrated Coppermine gallery.
Post by: SteveW on April 29, 2007, 05:32:39 PM
Post your index.template.php so we can see.
Title: Re: Menu link to my integrated Coppermine gallery.
Post by: Powerbob on April 30, 2007, 12:52:39 AM
Ok have index.template attached below. (to big to post  :D )


Bob
Title: Re: Menu link to my integrated Coppermine gallery.
Post by: Powerbob on May 04, 2007, 04:56:31 AM
Bump  ;D
Title: Re: Menu link to my integrated Coppermine gallery.
Post by: joejackson on February 02, 2008, 08:52:15 AM
I'm guessing you got your solution bob. Care to share it with anyone else?