Jay
Forum Replies Created
-
No unfortunately I haven’t even really played much with it lately. Give me a week, I’ll have a v2 plugin for you guys okay.
Forum: Hacks
In reply to: Stylizing certain parts of my blogCSS is your friend, but don’t forget Firebug for firefox…
More specifically you will need to style each element accordingly within your theme’s CSS file. It’s no easy task but that’s what has to be done.
Forum: Hacks
In reply to: How To Make A PHP Include Function Within A PostI say just use shortcodes. http://codex.wordpress.org/Shortcode_API
It’s way more simple and all you have to do is edit your theme’s functions file and add say one line to it. Then you use your function when you need too.
If you want to use wpmode=”opaque” you can automatically add it via jQuery. Jquery had it’s way of adding and subtracting elements from the DOM.
Adobe tells you how to do it manually via the HTML: http://kb2.adobe.com/cps/142/tn_14201.html#main_Editing_HTML_code_manually
Since you know that now, you can do it dynamically with jQuery manipulation methods. http://api.jquery.com/category/manipulation/
Still curious or confused, just let me know and I’ll write it for ya 🙂
maybe user jquery to automatically add it to the appropriate tag
To see what you were talking about, I set the timeout to between 1 and 90 seconds. I too found that by doing that the cookie timeout doesn’t work. Though after sifting through the code, there isn’t an issue with the functions, everything is nailed tight and all functions are properly used, this leads me to believe it’s a browser thing.
Localizing a WordPress plugin basically means I’ll provide the English language translations files, and others will be able to translate as needed.
I think I’ll localize this also. Any objections just say so.
I know the “Cookie Expiry Time” works because on my clients site I have it set to expire every 24 hours, and in that time frame I always get a popup. However, I do agree it would be easier to simply have a selection of days, months, or years rather than do the calculations yourself.
Any feature requests would be greatly appreciated asides from the regular “warning-per-post”
Forum: Hacks
In reply to: Widgets creation and destruction hooksWhat exactly are you trying to fire and why?
Forum: Hacks
In reply to: Search text in page?Not sure if a plugin has been created but here’s a little javascript for you that you may find interesting: http://operawiki.info/UltimateHighlightBookmarklet?show_comments=1
Forum: Hacks
In reply to: Show latest comment from a postMove the code to pastebin, I’ll have a look 🙂
If the original plugin doesn’t disable the visual editor I’d say post “your” code so we can check. But I looked over the original code and found nothing.
Forum: Hacks
In reply to: Automatically Change Roles after (x) PostsHere’s how I would do it, though somewhat vague, i hope it helps.
- Hook onto user logins.
add_action('wp_login', 'yourloginfunction') - Firstly get your current user’s role.
- If the users role isn’t Author or higher, then you can continue.
- Now check the users current number of posts.
global current_user; get_currentuserinfo(); $currentPosts = count_user_posts($current_user->user_ID); - If the user has reached a certain number of posts, being that he/she has already logged in, we can simply change his/her role in the site.
wp_update_user($userData)
Just use the correct array key/value of the user’s data you want to update.
Forum: Hacks
In reply to: Looking for a way to delete user based on their post title…You could hook onto the publish_post action, pull the post_title and search it’s title for known keywords that may have been blacklisted in an array via the plugin options 🙂
As far as a plugin that already does this, I have no idea.
- Hook onto user logins.