links on Qbar

Support for IntegraMOD 140

Moderator: Integra Moderator

links on Qbar

PostAuthor: fua » Mon Feb 19, 2007 9:47 am

Your phpBB Version: 2.0.19
phpBB Type: Integramod 140
MODs: No
Your knowledge: Beginner
Board URL: http://www.guildwarspt.com/forum/index.php

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

Hi.

I've just set up a new top menu bar and I'm wondering if it is possible to make those links open in new browser windows (as the target="_blank" tag for HTML). If it is possible to do it for just one link, or even for a group of links in the same menu bar.

Hope I've explained it well enough.
Thanks.
Last edited by fua on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[font=Traditional Arabic][size=99px]
[img=left]http://static.flickr.com/71/174693706_e7fb45ea37_o.png[/img]
Its when life smiles at you that you can see how many teeth are missing.
User avatar
fua
Newbie
Newbie
 
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 24, 2007 6:09 am
Cash on hand: 0.00

Re: links on Qbar

PostAuthor: Pogue Moran » Mon Feb 19, 2007 10:08 am

Very simple just go into your ACP then general admin then qbar. Select which menu you want to edit. When adding a new item under Program URL there should be a part that says New Window "choosing yes the link will be opened in a new window" on default it is set to no just set this to yes. When you click the link on the menu now it should open in a new window.
Last edited by Pogue Moran on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Pogue Moran
Members
Members
 
Posts: 74
Likes: 0 post
Liked in: 0 post
Joined: Sat Jun 24, 2006 4:48 pm
Cash on hand: 0.00

Re: links on Qbar

PostAuthor: fua » Mon Feb 19, 2007 10:29 am

Are you sure you are referring to IntegraMOD 1.4.0 ? Because it doesn't show such option, in any field, in any menu og the QBar...

On the Program URL it only appears the option to say if it is a phpBB prog or not, and below that the place to put the URL. <img>
Last edited by fua on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[font=Traditional Arabic][size=99px]
[img=left]http://static.flickr.com/71/174693706_e7fb45ea37_o.png[/img]
Its when life smiles at you that you can see how many teeth are missing.
User avatar
fua
Newbie
Newbie
 
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 24, 2007 6:09 am
Cash on hand: 0.00

Re: links on Qbar

PostAuthor: Pogue Moran » Mon Feb 19, 2007 10:42 am

hmm i went on my forum that has just the qbar mod installed and shows that option I guess someone else might be able to help
Last edited by Pogue Moran on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Pogue Moran
Members
Members
 
Posts: 74
Likes: 0 post
Liked in: 0 post
Joined: Sat Jun 24, 2006 4:48 pm
Cash on hand: 0.00

Re: links on Qbar

PostAuthor: Teelk » Tue Feb 20, 2007 10:22 pm

That option is available with 1.4.1. It wasn't implimented in 1.4.0.

There's java.script you can use, can't remember it in detail though, I'll have to look around.

##############################################################
## MOD Title: QBar/QMenu open in new Window
## MOD Author: Obiku <obiku19AThotmail> (mike) http://www.familie-smit.nl
## MOD De.scription: This mod will give the QBar/QMenu MOD a new option, to open a link in a new browser window
## ##
## MOD Version: 1.0.0
## Installation Level: Easy
## Installation Time: 5 minutes
## Files To Edit: admin/admin_qbar.php,
## includes/functions_qbar.php,
## language/lang_english/lang_extend_qbar.php,
## templates/subSilver/admin/qbar_admin_body.tpl,
## templates/subSilver/admin/qbar_field_body.tpl
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## For this MOD you must have installed the MOD-QBar-v1.0.1 MOD.
## Thanx to Ptirhiik for his great QBar/Qmenu MOD.
##
##############################################################
## MOD History:
##
## 2005-07-29 - Version 1.0.0
## - Created MOD
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_qbar.php
#
#-----[ FIND ]------------------------------------------
#
'L_USE_ICON' => $lang['Qbar_use_icon'],
'L_INTERNAL' => $lang['Qbar_internal'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_WINDOW' => $lang['Qbar_window'],
#
#-----[ FIND ]------------------------------------------
#
'INTERNAL' => qbar_get_bool($field['internal']),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'WINDOW' => qbar_get_bool($field['window']),
#
#-----[ FIND ]------------------------------------------
#
$field_internal = true;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$field_window = false;
#
#-----[ FIND ]------------------------------------------
#
$field_internal = $qbar_maps[$qname]['fields'][$fname]['internal'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$field_window = $qbar_maps[$qname]['fields'][$fname]['window'];
#
#-----[ FIND ]------------------------------------------
#
if (isset($HTTP_POST_VARS['internal'])) $field_internal = intval($HTTP_POST_VARS['internal']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
if (isset($HTTP_POST_VARS['window'])) $field_window = intval($HTTP_POST_VARS['window']);
#
#-----[ FIND ]------------------------------------------
#
$field_internal = $qbar_maps[$from_qname]['fields'][$from_fname]['internal'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$field_window = $qbar_maps[$from_qname]['fields'][$from_fname]['window'];
#
#-----[ FIND ]------------------------------------------
#
$wfield['internal'] = $field_internal;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$wfield['window'] = $field_window;
#
#-----[ FIND ]------------------------------------------
#
$s_hidden_fields .= '<input>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$s_hidden_fields .= '<input>';
#
#-----[ FIND ]------------------------------------------
#
$wfield['internal'] = $field_internal;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$wfield['window'] = $field_window;
#
#-----[ FIND ]------------------------------------------
#
'L_INTERNAL_EXPLAIN' => $lang['Qbar_internal_explain'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_WINDOW' => $lang['Qbar_window'],
'L_WINDOW_EXPLAIN' => $lang['Qbar_window_explain'],
#
#-----[ FIND ]------------------------------------------
#
$internal_no = (!$field_internal) ? ' checked="checked"' : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$window_yes = ( $field_window) ? ' checked="checked"' : '';
$window_no = (!$field_window) ? ' checked="checked"' : '';
#
#-----[ FIND ]------------------------------------------
#
'INTERNAL_NO' => $internal_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'WINDOW_YES' => $window_yes,
'WINDOW_NO' => $window_no,
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_admin_qbar.php
#
#-----[ FIND ]------------------------------------------
#
'internal' => 'boolean',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'window' => 'boolean',
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_qbar.php
#
#-----[ FIND ]------------------------------------------
#
$row['internal'] = true;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$row['window'] = false;
#
#-----[ FIND ]------------------------------------------
#
$options['url'][] = $url;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$options['window'][] = $fdata['window'];
#
#-----[ FIND ]------------------------------------------
#
$wres = '<a>%s</a>';
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ($fields['window'][$j])
{
$wres = '<a>%s</a>';
} else
{
$wres = '<a>%s</a>';
}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_extend_qbar.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Qbar_internal_explain'] = 'Choosing "Yes", the link will be considered as a phpBB program, and will be so secured against some basic hack attempts and will include the session id in the url link.';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Qbar_window'] = 'New Window';
$lang['Qbar_window_explain'] = 'Choosing "Yes", the link will be opened in a new window.';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/qbar_admin_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<span><b>{L_INTERNAL}:</b> {qbar.field.INTERNAL}</span><br>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<span><b>{L_WINDOW}:</b> {qbar.field.WINDOW}</span>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/qbar_field_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<input>{L_NO}
</span>
</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td><span>{L_WINDOW}</span><span><br>{L_WINDOW_EXPLAIN}</span></td>
<td>
<span>
<input>{L_YES}
<input>{L_NO}
</span>
</td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------------
#
# EoM


This is the MOD installed in 1.4.1.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada


Return to IntegraMOD 140

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot], Vendethiel