TinyPortal

Development => Support => Topic started by: Maddog452 on September 23, 2007, 06:24:42 AM

Title: Lost access to my Gallery (CPG) after adding buttons to link to it.
Post by: Maddog452 on September 23, 2007, 06:24:42 AM
I followed the instructions in the How To section (http://www.tinyportal.net/index.php?topic=9919) to add a button to link to my Gallery which is bridged to SMF/TP.  Unfortunately now when I click on it, it reopens the log in screen and when I log in (althought I shouldn't have to) if bumps me into the home screen of TP (on my website).

What have I done wrong

My code changes are:


if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin', 'gallery', 'nestore')))
      $current_action = $context['current_action'];


and i added:

   // Show the [gallery] button.
   echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
               <a href="http://www.theblackhand.asn.au/gallery">gallery</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
   // Show the [NE Store] button.
   echo ($current_action == 'nestore' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
               <a href="http://www.shop.theblackhand.asn.au">NE Store</a>
            </td>' , $current_action == 'nestore' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



theblackhand.asn.au/forum
Log In - Helper
Password - 123456

What have I done wrong??
Dog
Title: Re: Lost access to my Gallery (CPG) after adding buttons to link to it.
Post by: IchBin on September 23, 2007, 06:28:59 AM
I have no problems accessing your gallery and site under the account you just provided.
Title: Re: Lost access to my Gallery (CPG) after adding buttons to link to it.
Post by: Maddog452 on September 23, 2007, 06:30:07 AM
would being logged in as admin screw things up?
Title: Re: Lost access to my Gallery (CPG) after adding buttons to link to it.
Post by: G6Cad on September 23, 2007, 10:21:53 AM
You need to clear your cache and tempinternet files afteryou have logged off your forum.
Then afyer you done that, you logg into your forum again and browse to your gallery through the button, that should bring the bridge to work as it should.