PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Subscriptions (http://www.photopost.com/forum/classifieds-how-do-i/141935-subscriptions.html)

nogas February 1st, 2010 05:33 PM

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

Chuck S February 1st, 2010 05:42 PM

what version of the software are you using. You can always try redownloading and using adm-misc.php

nogas February 1st, 2010 05:46 PM

Chuck you install it on my site goto link Main Index - Racersedgeforums Classifieds

Johnny.

Chuck S February 1st, 2010 05:54 PM

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.

nogas February 1st, 2010 06:03 PM

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.

Chuck S February 1st, 2010 06:37 PM

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.

nogas February 1st, 2010 10:50 PM

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;
}

nogas February 1st, 2010 11:01 PM

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

nogas February 2nd, 2010 08:23 AM

Chuck What do I try next???

Chuck S February 2nd, 2010 08:54 AM

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.

nogas February 3rd, 2010 12:57 AM

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??

Chuck S February 3rd, 2010 07:17 AM

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.

nogas February 5th, 2010 05:32 AM

Yes that the code is like your block what next still not working???

Chuck S February 5th, 2010 06:01 AM

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?

nogas February 5th, 2010 06:13 PM

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.

Chuck S February 5th, 2010 06:28 PM

Because you cant pay someone 0 dollars ;)

nogas February 5th, 2010 06:36 PM

So then how do I off ire free Subscription to my Classifieds to my members say for one week??

Chuck S February 5th, 2010 06:44 PM

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.

nogas February 5th, 2010 06:47 PM

what about a free listings???

Chuck S February 5th, 2010 06:49 PM

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.


All times are GMT -5. The time now is 08:48 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97