luckdragon
Forum Replies Created
-
Forum: Hacks
In reply to: an issue with a wordpress plugin calling external shortcodesare you saying that you just want to replace the text [Rating: 4/5] with an image of 4 stars?
<strong>Overall</strong>: <img src='path/to/your/images/<?php echo $overall_value_formatted ?>.png'>Forum: Fixing WordPress
In reply to: How do I change the font size in my tag cloud?in your functions.php for your theme, you should be able to do something like:
apply_filters(‘widget_tag_cloud_args’, array(‘smallest’ => 8,’largest’ => 22))
Forum: Plugins
In reply to: Plugin to use vim as the code editor?gVim is for gnome, it’s not web based, you would need some kind of java applet to be able to do direct interaction with the server on that kind of level
Forum: Plugins
In reply to: Plugin to use vim as the code editor?considering that vi/vim is a shell based gui style editor, the odds of interacting with it through a web page are next to nil, unless you have some kind of applet that will allow you to ssh to the server.
if you are reading posts about using vi/vim to edit, then they are probably editing directly on the server through an ssh style connection, not via ftp or a browser.
Forum: Hacks
In reply to: Want to add new custom button in wordpress editor toolbarhere’s a url that should help answer your question, it’s pretty detailed, and even has a downloadable example.
http://ditio.net/2010/08/15/adding-custom-buttons-to-wordpress-tinymce/
Forum: Hacks
In reply to: How to Create database table,make new post field (custom)1, you mean that you want a plugin to create a table?
function yourplugin_activate() { global $wpdb; $query = "Create Table ".$wpdb->prefix."yourtablename ('id' int(11) not null auto_increment,'nextfield' varchar(25) not null default '',primary key ('id'))"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($query); } register_activation_hook( __FILE__, "yourplugin_activate" );2,extra fields is what the postmeta table is for
3, I’m not sure I fully understand what you are asking, but if you mean how do you insert your custom data into your custom table, there’s a hook for that
add_action(‘save_post’,’your function here’);then you put your commands to save the data you want to save in your function
if you don’t want to display anything if there’s no children, then you should move the initial $output line after the if ($children) then it will only create $output if ($children) is true
Forum: Hacks
In reply to: Looking for a profile update hook with uncrypted passworddoes the $_POST variable get changed before adding it to the db? if not, you can use that.
Forum: Hacks
In reply to: What comes after options-general.php?page if plugin is in the theme directoryif it helps, here’s the code I use to determine where it is:
Forum: Hacks
In reply to: What comes after options-general.php?page if plugin is in the theme directoryare you trying to edit a template page? my suggestion is to add code into your plugin to read the template from wherever the template is, pass the information to your form, and then process the template and save it to the correct location.
Plugins that I’ve written account for the template being in:
<plugindir>
<stylesheet (parent theme) directory>
<stylesheet (parent theme) directory>/<pluginname>
<theme (child theme) directory>
<theme (child theme) directory>/<pluginname>so depending on where they place the template depends on where I have to read it from, it was alot easier to just test where the file is, fread it into a variable and then pass that variable to the form, then when the form is saved, test where it is and fwrite to it.
Forum: Hacks
In reply to: Calling PHP script in custom pluginyour page’s shortcode generates the images/thumbs that you are trying to attach the links to, correct? then all you need to do is to have it generate the links to your php script passing the id for the image it’s generating (in the loop)
Forum: Fixing WordPress
In reply to: some one has haked into my web sightcheck to see if he’s hijacked it, or if index.php has been replaced, alot of “hackers” find a way in through some other means, and replace the index.php file to make it look like it was hacked
I already know how to handle the passed parameters, and already have the hooks in place for that, but I can’t find any information about hooks to create the links with the extra parameters, only how to use the extra parameters once they are created (like if I create them manually)
Forum: Hacks
In reply to: Calling PHP script in custom pluginare you saying that you want to call the function of another plugin? or that you want to pass the information to it via a “link”?