vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   forum as link in new window (https://vborg.vbsupport.ru/showthread.php?t=174118)

ramires 03-25-2008 01:25 PM

forum as link in new window
 
hi

here is my first post in discuss :)

i ve using 3.6.8

and as one of my Forum (category) i want to have a link to external page. in acp i define this. good
... almost

i want to open this link in new window, where i need to change code in template to have this feature?

Jase2 03-25-2008 01:26 PM

HTML Code:

<a href="URL HERE"target="_blank">TEXT HERE</a>
Regards Jason :)

ramires 03-25-2008 06:54 PM

maybe i was bad description of my problem

i dont want learn html! i know it from about 10 years :D

ok. lets start again

in acp i can create a forum as link (redirect to other page, not other page on forum) and i need to have this link in new window.

example
root node
1. first forum category
2. second forum category
3. third forum category (is link to other domain) this should open in NEW WINDOW
4. fourth forum category

now should be more clear

Lynne 03-25-2008 07:47 PM

I'm not sure you can do this without having all those forum categories open in a new window unless you go into the template and do a conditional to say "if third forum category, add target=blank" into the link.

Jase2 03-25-2008 08:23 PM

This is going to need a template modification.

Regards Jason :)

ramires 03-26-2008 11:01 AM

i ll try with template modyfication. if this will work i ll say BIG THX :)

gbechtel 05-27-2008 03:14 AM

in forumhome_forumbit_level2_post

find

Quote:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
replace with

Quote:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]" <if condition="$forum['link']">target="_blank"</if>
><strong>$forum[title]</strong></a>
This will make the link open in a new window from forumdisplay.php


in forumhome_subforumbit_nopost change to the following

Quote:

<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]" <if condition="$forum['link']">target="_blank"</if>
>$forum[title]</a>
This will make the link open in a new window from forumhome or the index page

ramires 05-27-2008 05:23 AM

thx man, i am gonna make this for while
thx a lot

Lee Wallace 05-28-2008 11:17 PM

The code worked only when the link was for an immediate subforum. I wanted the link to be for a subforum under a subforum.


All times are GMT. The time now is 11:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01064 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete