PDA

View Full Version : Running vBadvanced in an iframe - open links in parent?


novabandit
22 Apr 2007, 15:24
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
22 Apr 2007, 21:05
I had the same problem. Heres the fix

go into

[forum root]/modules/news.php

For the News title,

find line 289



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and change it to



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




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

novabandit
22 Apr 2007, 23:35
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
23 Apr 2007, 05:23
For those, you may be able to do it via the vBAdavanced CMPS templates.