 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
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.
|
| |
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. |
| |
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.
|
| |
May 16th, 2005, 03:09 PM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Apr 2005
Posts: 67
|
ttt...
|
| |
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.
|
| |
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.
|
| |
May 18th, 2005, 11:37 AM
|
#7 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 148
|
uploadproduct.php is not a template |
| |
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.
|
| |
May 19th, 2005, 06:56 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Apr 2005
Posts: 67
|
annoying php...
*bump*
|
| |
May 19th, 2005, 09:06 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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 |
| |
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.
|
| |
May 20th, 2005, 09:09 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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.
|
| |
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?
|
| |
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.
|
| |
May 20th, 2005, 07:55 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Apr 2005
Posts: 67
|
didnt work =(
|
| |
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.
|
| |
May 23rd, 2005, 04:17 AM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Apr 2005
Posts: 67
| |
| |
May 23rd, 2005, 09:39 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:14 PM. | |