 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
February 1st, 2010, 05:33 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
| Subscriptions
Hi I and having problems with trying to add a Subscriptions read error below??
We're sorry, but the system experienced an unrecoverable error. Please try again later.
Script:
Query: INSERT INTO cp_subscriptions VALUES (NULL, 'Free Ad's For 12 Months', 'Limited Time Only get In Fast Free Ad's For 12 Months To All Members Enjoy! This offer will only last for the next 14 days start date 1-2-2010', '3', '1 year', '7', '0', 'yes');
Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's For 12 Months', 'Limited Time Only get In Fast Free Ad's For 12 Months To All ' at line 1
Database handle: Resource id #6
|
| |
February 1st, 2010, 05:42 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
what version of the software are you using. You can always try redownloading and using adm-misc.php
|
| |
February 1st, 2010, 05:54 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Okay when was this a month or so ago? I dont remember the name but then again I deal with so many sites
Basically you can redownload the build and reupload adm-misc.php that should help you out.
|
| |
February 1st, 2010, 06:03 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
I dont no how or where to start doing this thats why I paid you guys to set it all up for me on my site!
Johnny.
|
| |
February 1st, 2010, 06:37 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
yes johnny but when was this is what I asked. You can try fixing it by manually editing that file adm-misc.php and make sure lines 4592-4593 are this Code: Content visible to verified customers only.
|
| |
February 1st, 2010, 10:50 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
Chuck I did that and still not working??
print "$output<br /><br />";
adminfooter();
}
if ($ppaction == "addsub") //# Add a subscription
{
if ($_POST['do'] == "process")
{
// Process a user's subscription submission
$subname = un_htmlspecialchars($subname);
$subdesc = un_htmlspecialchars($subdesc);
$setug = ppmysql_query("INSERT INTO {$Globals['pp_db_prefix']}subscriptions VALUES (NULL, '$subname', '$subdesc', '$subgroup', '$subduration', '$subdays', '$subprice', '$subactive');", $link);
$thesubid = mysql_insert_id( $link );
if ( $thesubid == 0 )
{
diewell( "Error adding new subscription to the database. Returned id was 0." );
exit;
}
|
| |
February 1st, 2010, 11:01 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
I went to delete an old Subscriptions that was in the list and the below come up??
We're sorry, but the system experienced an unrecoverable error. Please try again later.
Script:
Query: UPDATE ibf_members SET member_group_id='4' WHERE id='1'
Result: Unknown column 'id' in 'where clause'
Database handle: Resource id #6
|
| |
February 2nd, 2010, 08:23 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
Chuck What do I try next???
|
| |
February 2nd, 2010, 08:54 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
You can try making those lines this but I wonder why when we already typecast those lines to addslashes that yours are not there.
You sure you uploaded the file and tried inserting a new subscription?
in your ib3.php file in the forums subdirectory line 48 of that file make this line this Code: Content visible to verified customers only.
|
| |
February 3rd, 2010, 12:57 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
I have that in my ib3.php file in the forums subdirectory line 48 you will see it in RED!
whats next to do to fix my problem??
Last edited by Chuck S; February 3rd, 2010 at 07:17 AM.
|
| |
February 3rd, 2010, 07:17 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Please do not just post our code like that thanks.
As noted make sure the line I am referencing is what is posted in my code block above.
|
| |
February 5th, 2010, 05:32 AM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
Yes that the code is like your block what next still not working???
|
| |
February 5th, 2010, 06:01 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
That would be impossible for you to get the same exact error if you have done the edit I am saying. what is your error?
|
| |
February 5th, 2010, 06:13 PM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
ok thanks Chuck its now working.....
one more thing now trying to setup a free Subscriptions and I did do a Test Subscription with $0.00 dollars and PayPal not excepting zero $0.00???
Johnny.
|
| |
February 5th, 2010, 06:28 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Because you cant pay someone 0 dollars |
| |
February 5th, 2010, 06:36 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
So then how do I off ire free Subscription to my Classifieds to my members say for one week??
|
| |
February 5th, 2010, 06:44 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
You cant sell a free subscription.
If your trying to allow regular members the ability to upload for a week then give that usergroup upload permissions and in a week remove it.
|
| |
February 5th, 2010, 06:47 PM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Nov 2008
Posts: 55
|
what about a free listings???
|
| |
February 5th, 2010, 06:49 PM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
You dont have to charge for listings that all depends how your trying to set things up. I can just tell you that you can not anyway sell something for 0 dollars no payment place can take that payment.
|
| | |
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 02:03 AM. | |