[NSFW] PLugin won’t activate
-
Hi
I’ve been having some issues with posts and to troubleshoot i removed the plugin which seemed to resolve the issue but to verify this plugin is the problem I re-installed and made sure to activate at the site level. The message says the plugin is activated but it doesn’t show as active and it’s not in the dashboard.
I went to myphpadmin to check the table we created OK as we had an issue with this previously and it is there but no records have been added.
I’ve remarked out the create table and indexes sections from activation php file and still not working so the only lines left are
add_option(‘postratings_image’, ‘stars’ );
add_option(‘postratings_max’, ‘5’ );
add_option(‘postratings_template_vote’, ‘%RATINGS_IMAGES_VOTE% (%RATINGS_USERS% ‘.__(‘votes’, ‘wp-postratings’).__(‘,’, ‘wp-postratings’).’ ‘.__(‘average’, ‘wp-postratings’).’: %RATINGS_AVERAGE% ‘.__(‘out of’, ‘wp-postratings’).’ %RATINGS_MAX%)<br />%RATINGS_TEXT%’ );
add_option(‘postratings_template_text’, ‘%RATINGS_IMAGES% (%RATINGS_USERS% ‘.__(‘votes’, ‘wp-postratings’).__(‘,’, ‘wp-postratings’).’ ‘.__(‘average’, ‘wp-postratings’).’: %RATINGS_AVERAGE% ‘.__(‘out of’, ‘wp-postratings’).’ %RATINGS_MAX%’.__(‘,’, ‘wp-postratings’).’ ‘.__(‘rated’, ‘wp-postratings’).’)’ );
add_option(‘postratings_template_none’, ‘%RATINGS_IMAGES_VOTE% (‘.__(‘No Ratings Yet’, ‘wp-postratings’).’)<br />%RATINGS_TEXT%’ );
// Database Upgrade For WP-PostRatings 1.02
add_option(‘postratings_logging_method’, ‘3’ );
add_option(‘postratings_allowtorate’, ‘2’ );
// Database Uprade For WP-PostRatings 1.04
// maybe_add_column($wpdb->ratings, ‘rating_userid’, “ALTER TABLE $wpdb->ratings ADD rating_userid INT( 10 ) NOT NULL DEFAULT ‘0’;”);
// Database Uprade For WP-PostRatings 1.05
add_option(‘postratings_ratingstext’, array(__(‘1 Star’, ‘wp-postratings’), __(‘2 Stars’, ‘wp-postratings’), __(‘3 Stars’, ‘wp-postratings’), __(‘4 Stars’, ‘wp-postratings’), __(‘5 Stars’, ‘wp-postratings’)) );
add_option(‘postratings_template_highestrated’, ‘- %POST_TITLE% %RATINGS_IMAGES% (%RATINGS_AVERAGE% ‘.__(‘out of’, ‘wp-postratings’).’ %RATINGS_MAX%)
- %POST_TITLE% – %RATINGS_USERS% ‘.__(‘votes’, ‘wp-postratings’).’
‘ );
// Database Upgrade For WP-PostRatings 1.11
add_option(‘postratings_ajax_style’, array(‘loading’ => 1, ‘fading’ => 1) );
// Database Upgrade For WP-PostRatings 1.20
add_option(‘postratings_ratingsvalue’, array(1,2,3,4,5) );
add_option(‘postratings_customrating’, 0 );
add_option(‘postratings_template_permission’, ‘%RATINGS_IMAGES% (%RATINGS_USERS% ‘.__(‘votes’, ‘wp-postratings’).__(‘,’, ‘wp-postratings’).’ ‘.__(‘average’, ‘wp-postratings’).’: %RATINGS_AVERAGE% ‘.__(‘out of’, ‘wp-postratings’).’ %RATINGS_MAX%)<br />‘.__(‘You need to be a registered member to rate this.’, ‘wp-postratings’).’‘ );
// Database Upgrade For WP-PostRatings 1.30
add_option(‘postratings_template_mostrated’, ‘‘ );
There are no entries in the database.
Please can you let me have the sql to create these entries as I suspect this maybe the issue and I can then run manually on myphp
Thanks
MattThe page I need help with: [log in to see the link]
- The topic ‘[NSFW] PLugin won’t activate’ is closed to new replies.