 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
February 13th, 2005, 01:53 PM
|
#1 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
| 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 |
| |
February 13th, 2005, 03:27 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
If your using the VB3 integration since we use the vb header you need to modify the vb header not photopost
|
| |
February 13th, 2005, 03:49 PM
|
#3 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
|
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
|
| |
February 13th, 2005, 04:03 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
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.
|
| |
February 13th, 2005, 04:08 PM
|
#5 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
|
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
|
| |
February 13th, 2005, 04:28 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
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
|
| |
February 13th, 2005, 04:52 PM
|
#7 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
|
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??
|
| |
February 13th, 2005, 04:55 PM
|
#8 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
|
Took a closer look and maybe this correct syntax?
<a target=\"_top\ href=etc.................
|
| |
February 13th, 2005, 05:03 PM
|
#9 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
|
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
|
| |
February 13th, 2005, 05:05 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
yes in a php file you must escape quotes in html |
| |
February 13th, 2005, 05:26 PM
|
#11 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
|
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
|
| |
February 13th, 2005, 05:42 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Edit the login.tmpl and adjust the a href tags there to add the _top target tags
|
| |
February 13th, 2005, 07:15 PM
|
#13 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
|
OK that works, thanks again!
|
| |
February 18th, 2005, 12:29 PM
|
#14 (permalink)
| | Registered User
Join Date: Nov 2004
Posts: 31
|
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
|
| |
February 18th, 2005, 12:37 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
pp-inc.php topmenu function
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 09:14 PM. | |