PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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
ppostuser is offline   Reply With Quote
Old February 13th, 2005, 03:27 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
ppostuser is offline   Reply With Quote
Old February 13th, 2005, 04:03 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
ppostuser is offline   Reply With Quote
Old February 13th, 2005, 04:28 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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 = " &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 is offline   Reply With Quote
Old 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.................
ppostuser is offline   Reply With Quote
Old 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 = " &middot; <a target=\"_top\" href=\"{$Globals['vbulletin']}/register.php?action=signup\">{$Globals['pp_lang']['register']}</a>";

thanks very much for your help
ppostuser is offline   Reply With Quote
Old February 13th, 2005, 05:05 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
yes in a php file you must escape quotes in html
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
ppostuser is offline   Reply With Quote
Old February 13th, 2005, 05:42 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 13th, 2005, 07:15 PM   #13 (permalink)
Registered User
 
Join Date: Nov 2004
Posts: 31
OK that works, thanks again!
ppostuser is offline   Reply With Quote
Old 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
ppostuser is offline   Reply With Quote
Old February 18th, 2005, 12:37 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
pp-inc.php topmenu function
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to upgrade to v5, but is there an easy way to edit vb post links? benFF Photopost Pro How Do I...? 14 January 21st, 2006 07:50 AM
Menubar.tmp Suziqz Photopost Pro Installation & Upgrades 1 July 14th, 2005 09:12 AM
move the menubar to right? Wasabe Photopost Pro How Do I...? 2 May 19th, 2005 06:04 PM
move menubar _fab Photopost Pro Installation & Upgrades 6 April 16th, 2005 04:49 PM
...add more links to the top menubar? digitaldingus Photopost Pro How Do I...? 6 March 19th, 2005 06:35 PM


All times are GMT -5. The time now is 09:14 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0