-
Website
http://finotto.org/ -
Original page
http://finotto.org/post/165760807/my-first-wordpress-plugin -
Subscribe
All Comments -
Community
-
Top Commenters
-
Michel Fortin
1 comment · 9 points
-
-
Popular Threads
So I'm quite happy you nor Chris never released it, because now I know how to write a Wordpress plugin and it only took me less than 2 hours.
Anyway, thanks for stopping by...
And yes, sometimes you must get your hands dirty. I am glad to see you are starting to do that yourself.
I will probably use this on my site as well.
Thanks Michele for your work!
Let me know if you have any problems.
I've been wanting this for AGES! I was gonna start harassing Chris for his version of it soon too :P
If I got no where with that I was going to try and write it myself but you just saved me some time..
Cheers! :D
http://www.matthiasheil.de/wordpress/wp-content...
Thanks ever so much for your help!
And thanks, Michele, for your EXEMPLARY support!
I've been thinking that it would be a good idea to have the icon displayed in single post mode, too. Can I just call the function in wordpress' single.php template or might that cause a problem?
*Matthias:* Sure you can. You can put it wherever there's a "Loop" open.
For example, I use it on index.php, single.php, archive.php and search.php.
*Aaron:* I left a comment on your blog, but thanks again: my heart was a bit crappy... ;)
Great job on your first plugin buddy. I'm using it right now, but I've used some different images I made and instead of being a favorite so to speak, i'm using it to mark posts that are important to me. Thanks for releasing this. I'll be looking forward to more from you my friend.
Read the above post for details...
SELECT count(*) FROM wp_mf_fav WHERE id=726
(sorry, misspelt url)
...the error message shows where the heart used to show up.
You should change the name of the 'mf_fav' table in your database to 'wp_mf_fav'.
http://www.matthiasheil.de/wordpress/index.php
I would really like to have an option cutting down the length of one favorite entry to a maximum number of letters (IYKWIM)... it's not too long until Christmas, is it?-)
Would you like to cut the length of the title?
>Would you...
Yes, exactly...
Check and let me know...
thanks michele
*@ smerickson:* maybe there's a problem with user_leve variable.
Try adding this after line 193 in mf_favorites.php:
global $user_level;If it still doesn't work, add this, after the line you've just added:
get_currentuserinfo();Let me know if it works...
1) the name of the table to create with phpmyadmin was "wp_mf_fav"
2) as smerickson said, variable $mff_dbv set to 0 and not to 1
:D Michele, I love your plugin!
*@ chiara:* glad you love it... :D
I'm getting this error before the pic:
WordPress database error:
[Table 'blog.wp_mf_fav' doesn't exist]
SELECT count(*) FROM wp_mf_fav WHERE id=290
can you please help me?
(I'm on WP 1.5.2)
Try to manually run this MySQL query:
CREATE TABLE `wp_mf_fav` (
`id` INT UNSIGNED NOT NULL ,
`fav` TINYINT DEFAULT '0' NOT NULL ,
`avg` FLOAT UNSIGNED DEFAULT '0' NOT NULL ,
`count` INT UNSIGNED DEFAULT '0' NOT NULL ,
PRIMARY KEY ( `id` )
);
/* All the settings are stored in a single array */
$mff_settings=array();
$mff_settings=get_settings('mffav');
$mff_settings['can_toggle']=8;
And replace 8 with something like
-1. It should work...let me know!It would need a couple of things being added: a column on the table to store the user and quite a different management in the plugin.
At the moment, I'm a bit busy, but as soon as I have some spare time I might look into this.
The request iwo made (about making the pluging work individually, with each user) is something I'm looking for as well. Have you made this modification? If not, do you know where I can get such a plugin?
Thanks!
Let me know if so, and let me know if you ever add that function, if not!!!
--Elle