TinyPortal

Development => Support => Topic started by: Mitchâ„¢ on May 08, 2006, 04:21:28 PM

Title: Gallery Problems
Post by: Mitchâ„¢ on May 08, 2006, 04:21:28 PM
I am using RC2 and CPG 1.4.5 I believe

I have the button installed right but what I need to do is have it so when you click on it is go here: http://www.games-n-things.net/gallery/


I have this right now and the button shows up fine. Its the link I need work on.

         // Show the [gallery] button.
   echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td  class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, 'http://www.games-n-things.net/gallery">' , $txt[120] , '</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


I did what this guy did: http://www.tinyportal.net/smf/index.php?topic=4270.msg35115#msg35115

Used $txt[120] in my index.english.php file.
Title: Re: Gallery Problems
Post by: G6Cad on May 08, 2006, 04:28:11 PM
Change this line
<a href="', $scripturl, 'http://www.games-n-things.net/gallery">' , $txt[120] , '</a>

To
<a href="', $scripturl, '?action=coppermine">Gallery</a>

And rename your gallery folder to coppermine
Title: Re: Gallery Problems
Post by: Mitchâ„¢ on May 08, 2006, 04:32:24 PM
Yeah that did nothing.

I dont have the gallery in my forums root. Is that the problem?
Title: Re: Gallery Problems
Post by: Mitchâ„¢ on May 08, 2006, 04:45:09 PM
I would think the way I had it would work I just have to figure out what the link should be.

I fixed it its:

<a href="http://www.games-n-things.net/gallery/">Gallery</a>
Title: Re: Gallery Problems
Post by: gerrymo on May 08, 2006, 04:48:05 PM
Quote from: [Mitch] on May 08, 2006, 04:32:24 PM
Yeah that did nothing.

I dont have the gallery in my forums root. Is that the problem?

Shouldnt be a problem as long as you have the paths set properly.

On another note, Is your gallery integrated to your TP Database Mitch?
Title: Re: Gallery Problems
Post by: Mitchâ„¢ on May 08, 2006, 08:28:23 PM
Gerrymo I got it to work now. And yes it is bridged.
Title: Re: Gallery Problems
Post by: gerrymo on May 08, 2006, 09:18:21 PM
Have you had a look at this?
http://www.simplemachines.org/community/index.php?topic=19518.0;all

It fully wraps coppermine into SMF (but also works for TP). I've used it, and it works. Just follow the steps in the thread. Easy. The only thing I did was a small alteration to the coppermine template to make it look a bit better.

Title: Re: Gallery Problems
Post by: Mitchâ„¢ on May 08, 2006, 09:39:08 PM
Ive looked at it but I think my problem was that there wasnt a coppermine theme that looked like the them I am using on my site.