PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Edit links in menubar and elsewhere w/ _top? (http://www.photopost.com/forum/photopost-pro-how-do-i/112167-edit-links-menubar-elsewhere-w-_top.html)

ppostuser February 13th, 2005 01:53 PM

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

Chuck S February 13th, 2005 03:27 PM

If your using the VB3 integration since we use the vb header you need to modify the vb header not photopost

ppostuser February 13th, 2005 03:49 PM

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

Chuck S February 13th, 2005 04:03 PM

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.

ppostuser February 13th, 2005 04:08 PM

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

Chuck S February 13th, 2005 04:28 PM

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

ppostuser February 13th, 2005 04:52 PM

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 = " &middot; <a href=\"{$Globals['vbulletin']}/register.php?action=signup\">{$Globals['pp_lang']['register']}</a>";

replace with:

$regtext = " &middot; <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??

ppostuser February 13th, 2005 04:55 PM

Took a closer look and maybe this correct syntax?

<a target=\"_top\ href=etc.................

ppostuser February 13th, 2005 05:03 PM

OK, I used changed it to this and it works!

$regtext = " &middot; <a target=\"_top\" href=\"{$Globals['vbulletin']}/register.php?action=signup\">{$Globals['pp_lang']['register']}</a>";

thanks very much for your help

Chuck S February 13th, 2005 05:05 PM

yes in a php file you must escape quotes in html ;)

ppostuser February 13th, 2005 05:26 PM

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

Chuck S February 13th, 2005 05:42 PM

Edit the login.tmpl and adjust the a href tags there to add the _top target tags

ppostuser February 13th, 2005 07:15 PM

OK that works, thanks again!

ppostuser February 18th, 2005 12:29 PM

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

Chuck S February 18th, 2005 12:37 PM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97