leaklords
Forum Replies Created
-
//Now remove this WP role…
$wp_roles = new WP_Roles();
$result = $wp_roles->remove_role(”.$livetv_new_role_to_delete.”);with this change, also don’t work
img http://img15.imageshack.us/slideshow/webplayer.php?id=livetvcreationroles.png
[No bumping, thank you.]
I think the problem come from class objet in capabilities.php and another function get_users
get_users work with the key of the role and all class function set_role, etc…work with the name of the role.
not practical for standard bloggers who use wordpress, when these users is not a professional php coder.
Or just for create and manipulate some basic new roles with php. Until now, when i code theme or plugin free for wordpress, i manipulate the key, not only the value on get_{…} set_{…} etc….
and i understand, anything, in php class … (I love wordpress because it was easy accessible …but now here is complicated)
http://pastebin.com/iftPJRR4 better here.
Finally this is not necessary but for stop all tests from some users/bot instantly (for a site in free mode of publishing/inscription).
a revision version http://pastebin.com/6jxpZiqt
Thx
I have added a code for ban if <script> balise is in use for edit mode or publish mode if a user is a non-administrator and email this @ the administrator
http://pastebin.com/geycL3a1 but i’m an enthusiast, not a professional and i’m not sure if is necessary. With trim() is secure for the data and i’m not sure for the regex.
But it’s necessary if i desire to stop displaying the friendly script ? (like google ads or others ??)
If other users have an interest for this, a light option in the admin area…
i have not currently tested my code.
My project is in development but if he rocks, i consider one donation for your great plugin. You rocks Tareq
on pastbin
ok thank you for your quick response
Ah ok thank you for your kick response. I had some doubts about my piece of code. I look at the other side (yourls) to test the problem of this small hack
Forum: Networking WordPress
In reply to: wp-singup.php don't work properly until 3.3.1 ?Here with the same htaccess, same connexion plugin, same theme, same version, same modification
work fine: http://mists-pandaria.com/wp-signup.php
work bad: http://style-cataclysm.com/wp-signup.php
work but don’t display the new link and text (“this site is your new site….”)I try both on the two domain to be 100% sure and check if a closing tag in the code is forgotten…
The only one difference is the time to loading after the first step
Forum: Plugins
In reply to: [Kw Modern Advertise] [Plugin: Kw Modern Advertise] Doesn't workHi thedert,
this subject may be able to help you ?
http://wordpress.org/support/topic/plugin-kw-modern-advertise-i-dont-get-it?replies=6#post-2309043
Forum: Fixing WordPress
In reply to: WP 3.0 – Database access outside wp loaded files//Wordpress deprecated ini_set('display_errors','off'); //Global WordPress global $wpdb; if(!isset($wpdb)) { require_once('../../../wp-config.php'); require_once('../../../wp-load.php'); require_once('../../../wp-includes/wp-db.php'); }the other plugin have i test don’t work perfectly, only this work perfectly for a multi-sites system
Forum: Plugins
In reply to: [Kw Modern Advertise] [Plugin: Kw Modern Advertise] I don't get it<?php if (function_exists('kw_advert_main')) { kw_advert_main(); } ?>with this function, if you disable the plugin, your theme made not a bug
Forum: Plugins
In reply to: [Kw Modern Advertise] [Plugin: Kw Modern Advertise] I don't get ittrick : support also [shortcode] from other “ads gestion plugins” ^^
Forum: Plugins
In reply to: [Kw Modern Advertise] [Plugin: Kw Modern Advertise] I don't get itHi,
Sorry for the delay Scandaglia
Somme test is necessary to put the code in your theme (in index, your promote is clickable for all navigation page. If you choose “home.php” the promote is only clickable on home page).
You can put the code where you want (bottom or top) in single.php, in home.php or in index.php (copy/past this code in several of these files if you want). If you use the top clickable zone, put the php code at the ideal zone for the top zone.
The width attribute is necessary (this option define the invisible “div clickable”). If you leave this blank, the background made not clickable, the width for the invisible “div clickable” element argued 0 by defaut. I add this option to fit width clickable zone to the theme).
By defaut, the height of this element take a “max auto” value. If you don’t define the height attribut, it does not matter.
For the link target for your partner, you put this in the admin zone
> Appaerence > Define link target. Left part and right part “invisible div but clickable” can take different link value (and top also)The flash zone support also the script if is necessary (Google ads, etc…)