CptOVERLORD
Forum Replies Created
-
Forum: Plugins
In reply to: MYSQL capabilities setmaybe more readable here:
<?php $user_idby = get_current_user_id();
if ( is_user_logged_in() == true ) {
if (!(current_user_can(‘edit_post’))) {
$capnew = ‘a:1:{s:13:”subscriber”;s:1:”1″;}’;
$capkey = ‘wp010_capabilities’;
global $wpdby;
$wpdby->query( $wpdby->prepare(“UPDATEwp015_usermeta
SETmeta_value
='{$capnew}’ WHEREwp015_usermeta
.user_id
='{$user_idby}’ AND meta_key = ‘{$capkey}'”));
}
}?><?php $user_idby = get_current_user_id(); $capacwp = get_usermeta( $user_idby, $table_prefix.'capabilities' ); if ( is_user_logged_in() ) { if (!(current_user_can('edit_post'))) { update_user_meta($user_idby, 'wp010_capabilities', 'a:1:{s:13:"subscriber";s:1:"1";}'); update_user_meta($user_idby, 'wp009_capabilities', 'a:1:{s:13:"subscriber";s:1:"1";}'); } }?>
i have tried with this form. What can be the problem?
Forum: Plugins
In reply to: Allow access to post-new.php for subscriberssolved with User Role Editor
lol. problem solved in 5 minutes ??
Forum: Fixing WordPress
In reply to: 404 error on 2nd page of blog after 3.4 upgradei would like to give a shot who has the same problem and who does not have the latest database export file:
-keep .htaccess, wp-config.php, wp-content/plugins, wp-content/themes, wp-content/uploads
-delete the other files
-copy the old wordpress’s files (and overwite the ones [for example: wp-contet/themes/index.php and so on] which already exists)Hey @esmi, you are right [,i was rude], but it is much easier for us to discuss a better solution for this problem.
Forum: Fixing WordPress
In reply to: 404 error on 2nd page of blog after 3.4 upgrademy problem is about:
when i click on the 3rd page of my blog i get 404 error, i have 5 pages full of postsForum: Fixing WordPress
In reply to: 404 error on 2nd page of blog after 3.4 upgradei have the same error, so guys what do you do with this problem?
Forum: Plugins
In reply to: Easy searchmy problem: videos, screenshots and reviews doesent show on the category page
Forum: Plugins
In reply to: Adding your mark to imagesnaturally, i mean automatic adding