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 August 23rd, 2006, 02:50 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2004
Posts: 117
Usergroup Question

Chuck and Michael have helped me with this in the past on an older version of Photopost and it worked great, but now having done a clean install of PhotoPost and vBulletin and integrating them, I am running into problems again, so maybe they or someone else can help me out.

I am trying to use the following code
Code:
Content visible to verified customers only.
Basically meaning, if you are not a part of that group, then you will get sent to the signup page.
I did go into photopost.php and change
Code:
Content visible to verified customers only.
and made it
Code:
Content visible to verified customers only.
However, what ever number I substitute, even if it is the right usergroup number, it will still react the same with any group. Using the example above, usergroup 6 should not get the message; however, all group numbers go to the error message. It is as if it is not even understanding my code. Can you please point me to what I need to change to make this work again. The way I had it working before was with just Photopost. It is now integrated with vBulleting, s I believe this is part of the problem, and possibly something other than $usergroup needs to be used. Thanks!
ghinton is offline   Reply With Quote
Old August 23rd, 2006, 09:47 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
well your integrating with vbulletin right so things are totally different for one we never define the usergroup in vbulletin and example being they can be a member of many usergroups. something like this may work but your group is not 6 anymore since 6 in vb is admin. I am going to post for example your subscribe is group 9

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 23rd, 2006, 12:14 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2004
Posts: 117
Chuck... this seems to be doing the same as with the others. I can't figure out why it is affecting ALL usergroups. I placed the code you provided in showphoto.php by replacing
Code:
Content visible to verified customers only.
as I did in the past. I left it as just usergroup 6 for testing, which should in essence give all groups except the admin the message, but I shows it for everyone, including usergroup 6. If I change the != to == (which should show the message for just usergroup 6) it does not display the message for any usergroup. Is there something I need to define in another script?
ghinton is offline   Reply With Quote
Old August 23rd, 2006, 01:10 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
You cant remove the code above.

This thing I posted is for logged in users and should work fine so I dont see any issues with that. The get_userinfo line gets the user info and defines $tgroup
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 23rd, 2006, 01:17 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Feb 2004
Posts: 117
So basically just add this below that? The code you gave me does go in the showphoto.php file correct? If not where do I place it?
ghinton is offline   Reply With Quote
Old August 23rd, 2006, 01:34 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
That code could theoretically go in any file under the authenticate(); line in any photopost script
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old August 23rd, 2006, 01:49 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Feb 2004
Posts: 117
OK... I am banging my head now... it is still doing the same.
Is it possible to have them integrated, but not at the same time. For example sharing the same database, but under the Do you want to enable the vB3 Integration which uses your vB3 headers, footers and styles? setting, make this NO. Would I be able to do it the old way then using the showphoto.php usergroup code and defining it in photopost.php?
ghinton is offline   Reply With Quote
Old August 23rd, 2006, 02:02 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
There is no reason whether the vb3 enhanced integration on or not whether something like this would not work

Code:
Content visible to verified customers only.
If your integrated with vb3 this should check the user's usergroup and if the group does not match what is noted then forward them to another page.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 23rd, 2006, 08:49 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Feb 2004
Posts: 117
I have just done a clean installation of both PhotoPost and vBulletin, have them fully integrated and have tried this code again, but it is still doing the same thing. All usergroups, no matter what number will redirect to the sign up page. This is how I placed the code in the showphoto.php file:
Code:
Content visible to verified customers only.
Is there something else I have to define in another place in order to get this to work? I seems that it is totally ignoring what ever group number I enter.
ghinton 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
Usergroup question?? threatrr Classifieds How do I...? 4 July 17th, 2006 12:54 PM
Usergroup Posting Limits question imported_ludachris How Do I? - vBulletin 3.5.X 3 November 12th, 2005 02:00 PM
5.02 - Upgrade Error Question/Deleted Files Question WB Photopost Pro Installation & Upgrades 5 March 16th, 2005 03:00 PM
usergroup/ permissions Itworx4me Installs and Upgrade - vBulletin 3.0.X 3 March 9th, 2005 03:28 PM
Usergroup question... coloradok5 Photopost Pro How Do I...? 1 December 24th, 2004 01:44 PM


All times are GMT -5. The time now is 07:49 AM.

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