TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,224
  • Total Topics: 21,352
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 171
  • Total: 172
  • @rjen

Help- Opening gallery within same page, like forums

Started by COPFIREARMS, October 16, 2006, 08:28:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

COPFIREARMS

Ok, I have TP installed & when I click on the forum button like this...



It opens up the forums on in the same window on the SMF page like this...



I have it set up now, if you click on the Gallery button like this...



It opens up in a NEW window & not within SMF



I would like it to open up the coppermine gallery within SMF, instead of a new window..

To see what I mean, I created a test account
http://www.oldfartsgaming.com
Username:test
Password:test


What code do I need to change to make this work...
Any help would be appreciated...
Thanks




COPFIREARMS

Not to sound like a retard, But where am I putting this script?
And how do I link the gallery button allready in place to it...
Thanks

jacortina

As for the gallery button, you should have some code like that below in your index.template.php:

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


Note that the <a href line includes the clause target="_blank". That causes the link to open in a new page. Remove that and it should open in the same page.

G6Cad


This website is proudly hosted on Crocweb Cloud Website Hosting.