TinyPortal
Development => Support => Topic started by: COPFIREARMS on October 16, 2006, 08:28:55 PM
Ok, I have TP installed & when I click on the forum button like this...
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fcopfirearms.com%2FFileHosting%2Fphoto%2Fimg%2F54eba666b76f16d4ae102c7f775b9b57%2F1.jpg&hash=187c3e1967df4d5d0d743db92aead85beb667ec5) (http://copfirearms.com)
It opens up the forums on in the same window on the SMF page like this...
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fcopfirearms.com%2FFileHosting%2Fphoto%2Fimg%2Fb48966790cd378f11f2db2f809af330f%2F2.jpg&hash=feb6fd0b7f6faba948da17a802b851f43ad4b16d) (http://copfirearms.com)
I have it set up now, if you click on the Gallery button like this...
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fcopfirearms.com%2FFileHosting%2Fphoto%2Fimg%2Fc2b3f3061dfd7fcc520177a1e486dd4a%2F3.jpg&hash=f455d6f2810ee10f0a847db4895ac5cb1b7535a2) (http://copfirearms.com)
It opens up in a NEW window & not within SMF
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fcopfirearms.com%2FFileHosting%2Fphoto%2Fimg%2F9dda88ba6b31ac8b6f99ec532e4cb94d%2F4.jpg&hash=65f7fe65d30a56088f50343f442ab60cac2c9fa3) (http://copfirearms.com)
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
http://www.familjegodis.se/forum/index.php?topic=479.0
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
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 . '"> </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 . '"> </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.
OH!! Welcome to the team jacortina :) :up: