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 May 14th, 2005, 05:35 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
Let a certain usergroup post ads for free?

I need to figure out what templates to edit and what code to put where. I want to make it so my Platinum Users group can post unlimited ads, and my registered users are charged per ad. I already have it setup so everyone pays but I dont know how to set it so the platinum users can post for free.
CrimsonGT is offline   Reply With Quote
Old May 14th, 2005, 10:11 AM   #2 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
In uploadproduct.php where the pricing is determined, you'd have to add a condition check for that usergroup; however, by default we don't store the users usergroups (although you can get them if you use vB integration using the $bbuserinfo variable), so you'd have to modify the forum/xxx.php file to check and set a variable which you could check later.

This isn't a simple one liner, it'd take a little bit of work.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old May 15th, 2005, 05:07 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
Well when I asked about this before purchase you told me it would be pretty easy and what not, which is one of the main reasons I purchased it. If you do not mind, I would like a little help setting this up. I do use VB integration so that is a positive but as far as the scripting itself I am clueless.
CrimsonGT is offline   Reply With Quote
Old May 16th, 2005, 03:09 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
ttt...
CrimsonGT is offline   Reply With Quote
Old May 16th, 2005, 03:44 PM   #5 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 148
In uploadproduct.php find:
Code:
Content visible to verified customers only.
And replace with:
Code:
Content visible to verified customers only.
It's up to you to test it.
Frost is offline   Reply With Quote
Old May 18th, 2005, 03:51 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
I cant find the line to edit in that template, should I look in the other uploadproduct1, 2 or 3?

None of them have anything to do with a global called paypal...

Code:
Content visible to verified customers only.
that line is non existent in my templates

Last edited by CrimsonGT; May 18th, 2005 at 04:48 AM.
CrimsonGT is offline   Reply With Quote
Old May 18th, 2005, 11:37 AM   #7 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 148
uploadproduct.php is not a template
Frost is offline   Reply With Quote
Old May 18th, 2005, 04:04 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
hhahaha, i feel dumb, but im still getting an error...

Code:
Content visible to verified customers only.
thats the error I get when i click on place ad. This is the block of code around line 147, which is weird cause I dont think I even edited anything near this.

Code:
Content visible to verified customers only.
CrimsonGT is offline   Reply With Quote
Old May 19th, 2005, 06:56 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
annoying php...

*bump*
CrimsonGT is offline   Reply With Quote
Old May 19th, 2005, 09:06 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
The Line Frost has noted is 139

I would make sure to see you have not forgot or left something off. Here is another rendition

in uploadproduct.php find this

Code:
Content visible to verified customers only.
replace with this

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 May 19th, 2005, 09:40 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
There are actually 2 different places that this is used

Code:
Content visible to verified customers only.
I used your rendition on the first one and recieved the error noted above with the parse error. I used it in the second place it appears, i believe where frost told me to place it, and the place an ad page actually loads. However, it still ask me for payment and will not display the ad publicly until payment is made. I cannot figure out whats wrong
CrimsonGT is offline   Reply With Quote
Old May 19th, 2005, 09:42 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
Here is my actual file, however I had to post it as txt because the forums do not support php as a reconized file for attachments.
Attached Files
File Type: txt uploadproduct.txt (13.5 KB, 2 views)
CrimsonGT is offline   Reply With Quote
Old May 20th, 2005, 09:09 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
Okay well Frost was simply throwing you a bone in the right direction as was I. Most likely there are a couple files code like this would need to be added. Our How do I forum is a place to ask how to work the program etc.

I would suggest http://www.photopostdev.com for any questions on how to hack the code.
__________________
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 May 20th, 2005, 09:39 AM   #14 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 148
photopostdev.com, or try changing both spots...

From:
Code:
Content visible to verified customers only.
To:
Code:
Content visible to verified customers only.
From:
Code:
Content visible to verified customers only.
To:
Code:
Content visible to verified customers only.
Frost is offline   Reply With Quote
Old May 20th, 2005, 04:31 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
Thank you guys so much, sorry for being a PITA, I didnt know about photopostdev.com until now. I do have one question since the threads already here. This made it so the base price does not show, which is perfect, but it doesn't show the cost of how much it is to add highlighting, bold, etc. They can still select it but it doesnt show the cost next to it. How would I add that back?
CrimsonGT is offline   Reply With Quote
Old May 20th, 2005, 06:11 PM   #16 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 148
Undo the previous changes to uploadproduct.php and then...

In config-inc.php find:
Code:
Content visible to verified customers only.
And beforehand add:
Code:
Content visible to verified customers only.
In uploadproduct.php find:
Code:
Content visible to verified customers only.
And replace with:
Code:
Content visible to verified customers only.
In uploadproduct.php find:
Code:
Content visible to verified customers only.
And replace with:
Code:
Content visible to verified customers only.
It's up to you to test.
Frost is offline   Reply With Quote
Old May 20th, 2005, 07:55 PM   #17 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
didnt work =(
CrimsonGT is offline   Reply With Quote
Old May 21st, 2005, 11:49 AM   #18 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 148
Not sure what mod you want. Guess you should try at photopostdev.com.
Frost is offline   Reply With Quote
Old May 23rd, 2005, 04:17 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 67
Thats not a very responsive forum lol

http://www.photopostdev.com/showthread.php?t=1324
CrimsonGT is offline   Reply With Quote
Old May 23rd, 2005, 09:39 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
No one every said it would be. However thats where code hacking discussions take place.
__________________
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
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
Allow users to post vBulletin BB code in ads? rs25.com Photopost Pro How Do I...? 19 October 11th, 2005 11:31 AM
Allowing unregistered users to post ads? NSXTC Classifieds Suggestions 2 September 1st, 2005 11:45 AM
Why Can't I post ads in Demo :-/ pulse Before You Buy 13 May 12th, 2005 01:24 PM
Set max ads per usergroup Sal Collaziano Classifieds Installation & Upgrades 0 January 6th, 2005 10:39 AM


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

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