News:

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

Main Menu

How do i..

Started by justlyssa, March 25, 2008, 10:38:07 AM

Previous topic - Next topic

justlyssa

link my coppermine gallery to my smf 2.0 Beta 3 public forum?

or vice versa.. I want a link to show up in my nav bar.. can anyone help?

Oldiesmann

See http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating for information on bridging the two.

To add a link to your navigation bar:

Sources/Subs.php

Find
'admin' => array(

Add before that
'gallery' => array(
'title' => 'Gallery',
'href' => 'http://www.yoursite.com/gallery',
'show' => true,
'sub_buttons' => array(
),
),


Replace http://www.yoursite.com/gallery with the actual URL to your gallery.
Michael Eshom
Christian Metal Fans

justlyssa


lightning_strike

can you make it open in new window?

Rumbaar

Try change:
'href' => 'http://www.yoursite.com/gallery',
to:
'href' => 'target=\"_blank\" http://www.yoursite.com/gallery',
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Stef001

For me this is not working.
'href' => 'target=\"_blank\" http://www.yoursite.com/gallery',

Is there a other way to open in new window??

Thanks,
Stef.
SMF 2.0.2 | SimplePortal 2.3.5

Rumbaar

What is the outputted link when you do use that in the array Normally?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Stef001

Quote from: Rumbaar on April 04, 2008, 03:41:57 AM
What is the outputted link when you do use that in the array Normally?

I have made it like this: <a href= "http://www.yoursite.com/gallery/index.php" target="_blank">',
and it works.

Thanks.
SMF 2.0.2 | SimplePortal 2.3.5

Rumbaar

Are you using SMF 2.*?  But glad it works.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Stef001

Sorry this code is for smf 1.1.4.
I was trying 2.0 but i decided to go on at 1.1.4 and wait for the stable 2.0.

Anyway thanks for the help.

Stef.
SMF 2.0.2 | SimplePortal 2.3.5

Rumbaar

Well this thread and solution is for the SMF 2.* versions.  You might want to check a threads location on the support forums before trying to use posted solution and make sure it's applicable to your version.  SMF 1.1.* doesn't use an array like this to generate the menu system hence not originally working with your forum.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: