![]() |
Edit links in menubar and elsewhere w/ _top? Hello, I use Vbulletin forum integration for registrations... I needed to place a simple php countdown script in my header -- but it wouldn't work in the photopost header file I guess because you can't have php tags within php. So for a solution I put my entire photopost in a frameset in order to have a header above the header which can now use the countdown script. That works. But the registration/login links in photopost that refer back to vbulletin apparently need "_top" tags added -- or else they produce double top frame effect. I have searched and cannot fiind how to add/edit the href tags in menubar and elsewhere? I understand that in templates you can add entire new hrefs but I would like to edit the existing hrefs by adding the _top. If, on the other hand, I don't need frames to put a php script in the header, than please let me know how to do it.. Thanks! in frames url: http://www.fing.com/photo/gallery.php standalone url: http://www.fing.com/photo/photopost/index.php |
If your using the VB3 integration since we use the vb header you need to modify the vb header not photopost |
I meant the Photopost is set up to use VB user registration. But it is not physically integrated into the VB like the gallery section of photopost.com. I would prefer to keep it the way it is. PP and VB are in separate directories. The trapped in two frames issue occurs when clicking on any links that are located in the VB forum directory e.g. registration. So I think I need to add "_top" to those links. Please advise. Thanks |
This is totally an issue with your frames structure and has nothing to do with VB or Photopost. Basically these programs are not designed to be in a frame and you might need to alter every link in both programs to add a target="_blank" or top. |
I am willing to modify the links with the target_top tags. But I cannot figure out how/where to do this in Photopost. e.g. In the templates I don't see how to modify existing links etc. It shows a script call like $menu or $navbar or whatever buy I can't find the actual <a href="link"> code to modify. Please advise. Thanks |
Yeah your frame is setup to threat all urls in the same directory to work but once someone access's a link in another directory it breaks ;) You can find the $regtext variable in the vb3.php file in the forums subdirectory of Photopost |
OK, I see the line of code but I'd like to verify the syntax I'm using before I switch a lot of links... $regtext = " · <a href=\"{$Globals['vbulletin']}/register.php?action=signup\">{$Globals['pp_lang']['register']}</a>"; replace with: $regtext = " · <a target="_top" href=\"{$Globals['vbulletin']}/register.php?action=signup\">{$Globals['pp_lang']['register']}</a>"; i.e. it's OK to put the target element ahead of href?? |
Took a closer look and maybe this correct syntax? <a target=\"_top\ href=etc................. |
OK, I used changed it to this and it works! $regtext = " · <a target=\"_top\" href=\"{$Globals['vbulletin']}/register.php?action=signup\">{$Globals['pp_lang']['register']}</a>"; thanks very much for your help |
yes in a php file you must escape quotes in html ;) |
Well, I'm not quite there yet... The register link and the forgot password link on this page are breaking doubling the frames again: login.php?login=yes So, just below previous fix in vb3.php on lines 215 and 216... $links[0] = "{$Globals['vbulletin']}/member.php?ppaction=lostpw"; $links[1] = "{$Globals['vbulletin']}/register.php?action=signup"; Think these two above need to have target="_top" applied but I can't do it right. All my attempts bring up PHP script error message and blank page. Please advise Thanks again |
Edit the login.tmpl and adjust the a href tags there to add the _top target tags |
OK that works, thanks again! |
Hello again, There are a couple more links that are breaking the frame and after much searching in templates I can't figure out where/how to add the target tags... In the small button menu above the comments area: PROFILE PM SEARCH GALLERY Where can I find this code? Thanks again for your help |
pp-inc.php topmenu function |
| All times are GMT -5. The time now is 06:33 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0