News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Menu link to my integrated Coppermine gallery.

Started by Powerbob, April 24, 2007, 04:34:28 AM

Previous topic - Next topic

Powerbob

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



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

byon

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?

Kindred

Byon,

You do know that oldiesman already did a bridge from SMF to Gallery2?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Powerbob

#3
All I need is for plain, in english, instructions on how to add a menu link from smf to my intergrated coppermine!

Thanks


Bob





My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

Powerbob




My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

SteveW

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.
Watch the skies!!

Powerbob

Sorry but did not work! Nothing shows up in menu?


Bob



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Powerbob

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



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

SteveW

Watch the skies!!

Powerbob

#10
Ok have index.template attached below. (to big to post  :D )


Bob



My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

Powerbob




My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

joejackson

I'm guessing you got your solution bob. Care to share it with anyone else?

Advertisement: