vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Running vBadvanced in an iframe - open links in parent? (https://vborg.vbsupport.ru/showthread.php?t=145495)

novabandit 04-22-2007 01:24 PM

Running vBadvanced in an iframe - open links in parent?
 
I am running vBadvanced in an iFrame on my sites main page. I have everything the way I want it to look, but the only issue is that I can't figure out a way for links in the CMPS iFrame to open in the "Parent Window". I don't want to redesign my forums to run inside the CMPS page... I just want to use it as a nice neat homepage. When users click on a recent thread, or news item, I want the whole page (not a new one) to jump to that link.

The page in question is http://www.minnesotamud.com/cmsindex.html

Nudda 04-22-2007 07:05 PM

I had the same problem. Heres the fix

go into

[forum root]/modules/news.php

For the News title,

find line 289

PHP Code:

$mods['title'] = '<a href="' $vbulletin->options['bburl'] . '/showthread.php?' $session['sessionurl'] . 't=' $news['threadid'] . '">' $news['title'] . '</a>'

and change it to

PHP Code:

     $mods['title'] = '<a href="' $vbulletin->options['bburl'] . '/showthread.php?' $session['sessionurl'] . 't=' $news['threadid'] . '" target="_parent">' $news['title'] . '</a>'


I'm not sure about Read More, cause I dont have the enabled.

novabandit 04-22-2007 09:35 PM

That works awesome for the news post title links... any idea on how I can do the same for thread titles and forum links? Where do the "a href" codes for those live? I didn't see them in the module php files.

Nudda 04-23-2007 03:23 AM

For those, you may be able to do it via the vBAdavanced CMPS templates.


All times are GMT. The time now is 09:14 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.00935 seconds
  • Memory Usage 1,721KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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