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 Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 11th, 2010, 03:58 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2010
Posts: 34
modifying 'this script'

I am running photopost, reviews and classifieds. In order to get the corect button highlighted on my Vbulletin 4 pages I had to rename a number of instances of define this script entries. Example ( 'THIS_SCRIPT', "member3" );

These changes match up with my button pluggins where I'm doing if = or statements.

Does PP use the 'this_script' for anything? Am I going to have any problems after having renamed a number of instances of this_script??

Last edited by kyle55155; June 11th, 2010 at 05:49 PM.
kyle55155 is offline   Reply With Quote
Old June 11th, 2010, 08:57 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
we define the names of scripts yes and we use that in our code.
__________________
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 June 11th, 2010, 09:40 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2010
Posts: 34
Quote:
Originally Posted by Chuck S View Post
we define the names of scripts yes and we use that in our code.
My Bbulletin 4 navtab plugin code bellow:

if (THIS_SCRIPT == 'ppindex' or THIS_SCRIPT == 'showphoto2' or THIS_SCRIPT == 'search2' or THIS_SCRIPT == 'member' or THIS_SCRIPT == 'upload' or THIS_SCRIPT == 'uploadphoto' or THIS_SCRIPT == 'showgallery' or THIS_SCRIPT == 'showmembers' or THIS_SCRIPT == 'useralbums')
{


if (THIS_SCRIPT == 'cpindex' or THIS_SCRIPT == 'showcat2' or THIS_SCRIPT == 'subscriptions2' or THIS_SCRIPT == 'showmembers3' or THIS_SCRIPT == 'search4' or THIS_SCRIPT == 'member3' or THIS_SCRIPT == 'uploadproduct2')



{
if (THIS_SCRIPT == 'rpindex' or THIS_SCRIPT == 'showphoto' or THIS_SCRIPT == 'search3' or THIS_SCRIPT == 'showcat' or THIS_SCRIPT == 'subscriptions' or THIS_SCRIPT == 'showmembers2' or THIS_SCRIPT == 'member2' or THIS_SCRIPT == 'uploadproduct')
{


Chuck,

When adding new buttons to Vbulletin the new button plugin evaluates the page to determine if it should hightlight the tab. As you see above for my three new button plugins I have added code to determine which tab should be highlighted when a PP, CP or RP page is selected. Given that there are duplicate page names being used between PP, CP and RP I had to do some renaming. Otherwise I would have some PP, CP or RP pages that either highlighted two buttons or the wrong button.

In PP I had to rename showphoto and search, in CP I had to rename showcat, subscriptions, showmembers, search and uploadproducts. In RP I had to rename search and member.

I haven't tested all links so I might need to rename more. Is there another way to achieve what I need here?

Unless you have a more elegant solution for me, are all the additional references to 'this_Script' in your code in text files? Would I be able to track all them down and rename them? I assume I'm not the first person to run all three of your apps in VB4 with navabs for each of your apps.

Last edited by kyle55155; June 11th, 2010 at 10:22 PM.
kyle55155 is offline   Reply With Quote
Old June 11th, 2010, 10:20 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
You might want to look in the mod for vb4 I have in the mod corner.

something tells me your going about this way too complex.
__________________
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 June 11th, 2010, 10:48 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: May 2010
Posts: 34
Ya seems like a pretty simple requirement. But I'm a beginner when it comes to php coding. I'm reading through all posts in the mod corner. I was wondering if you knew of one in particular that will address my issue?
kyle55155 is offline   Reply With Quote
Old June 12th, 2010, 09:19 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
The plugin I made has the correct way to add a navbar button in there which is what I already pointed out. Feel free to ask code mod questions in the MOD CORNER since your posts really do not have anything to do with our code directly.

Code:
Content visible to verified customers only.
Thats what I use on the global_state_check plugin area.
__________________
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 June 12th, 2010, 12:17 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: May 2010
Posts: 34
got it. Thanks
kyle55155 is offline   Reply With Quote
Old June 12th, 2010, 02:43 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Yep that should work much better for you. enjoy your weekend
__________________
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 March 15th, 2011, 04:54 PM   #9 (permalink)
Member
 
Join Date: Nov 2007
Posts: 67
Hi Chuck,

I've the same issue than kyle55155 with the 3 products (latest versions)
I'm using a mod called "Tabs vbsoporte". That's not the right way...

Please use Chuck's Mods in each mod section of this forum !

Last edited by gameover; March 15th, 2011 at 05:48 PM.
gameover is offline   Reply With Quote
Old March 15th, 2011, 06:15 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
LOL yeah my mods use the vb plugin format used at vbulletin I cant speak on anyone else's mods.
__________________
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 November 16th, 2011, 11:57 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Location: Evansville, IN
Posts: 53
Shouldn't this work with vB4?
Code:
Content visible to verified customers only.
kernel-panic is offline   Reply With Quote
Old November 16th, 2011, 02:00 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
That is a template conditional I beleive so no that would not work for that reason as well as $this_script is not valid the variable is THIS_SCRIPT.

Whatever your trying to do would have to kernel has to be valid with where your doing it in vb4. This discussion is about a navbar button and my post 6 explains how this is done and also there are mods for our products in the mod corner that add those buttons and they are correctly hightlighted.
__________________
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 November 16th, 2011, 03:51 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Location: Evansville, IN
Posts: 53
So, I could change $this_script to THIS_SCRIPT, but you're saying it still wouldn't work? Any other suggestions?
kernel-panic is offline   Reply With Quote
Old November 16th, 2011, 04:36 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
well this discussion is how to add a button to vb4 so my suggestion is as I already posted download the actual plugins in the mod forum for the respective product you are trying to have a navbar button for.
__________________
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying Styles bolo How Do I? - vBulletin 3.7x / 3.8x 4 February 1st, 2010 08:46 AM
Modifying the index shadowdancer36 Photopost Pro How Do I...? 19 November 23rd, 2005 02:59 PM
Modifying the gallery shadowdancer36 Photopost Pro How Do I...? 5 November 23rd, 2005 07:39 AM
Question about Modifying fields makhmal Photopost Pro How Do I...? 1 May 16th, 2005 08:08 PM


All times are GMT -5. The time now is 05:19 AM.

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