cogmios
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Favicons plug-in] [Plugin: WP Favicons plugin] Feature Requestv.0.2 now supports widgets and content
well.. the regular text in widgets and the “wp links widget”, there must be a trillion other widgets placing stuff in places if there is a need just put a rfc
v.0.3 will support caching
Forum: Plugins
In reply to: [WP Favicons plug-in] [Plugin: WP Favicons plugin] Feature Requestyes. as i said here: http://wordpress.stackexchange.com/questions/7065/plugin-that-inserts-favicon-next-to-links/7975#7975 (the url has changed)
Hmmm, I will add in v0.2:
caching
an admin panel
> file types to ignore
> if i find out how a different default icon
> urls to ignore
> replace in posts, widgets, footer options
and maybe something smart for pdf, zip, arj, cbr, etc.. maybe behind the url instead or else it will be confusingshould not take to long… i think i can better place the cache for the favicon in /wp-content because then multiple sites in a multisite environment can write to the same cache.
@asscork: yes that is one thing but I also use the cache myself to place icons in there that are not served by google yet such as the favicons of e.g. all the games in facebook like farmville and cityville π (so actually it is sort of an “eternal cache” hmmm it is not even a cache.. what is the word? lol)
also note that you can style the thing with a line in your style.css e.g.:
.wp-favicon {margin-left:0px!important;margin-right:0px!important;padding-left:3px!important;padding-right:3px!important;padding-bottom: 0px!important;padding-top:0px!important;width:10px;height:10px;}Thanks for the update! Superb plugin.
Ah…. thank you Andy!
I was stupid I made the width smaller… and it did not work must have been late… thanks!
So… I need to call import_gallery with a foreach script that will work i think.
hey… under tools there is “allow import” … (!)
But… it seems to only import 1 folder if it contain images e.g. not:
2003/2003_our_holiday/day_1/<images>
2003/2003_our_holiday/day_2/<images>
2003/2003_christmas/<images>It seems that I have to create all galleries manually?
Hmmm…
1. query the upload directory as defined in nexgen with fallback on wp upload dir
2. make list of all directories found, exclude the ones that already exist in ngg_gallery table
3. let user checkbox the ones that he wants to add (since there may be lots of other directories in this upload dir for safety exclude all shorter than 5 characters
4. choose mass import from pulldownfor each of the dirs
5. calculate a slug
6. run INSERT INTOPREFIX_BLOGID_ngg_gallery(name,slug,path,title,author) VALUES
(‘SLUG’,
‘SLUG’,
‘wp-content/blogs.dir/BLOGID/files/DIRECTORY’,
‘DIRECTORY’,
LOGGED_IN_USER_ID);
7. get the ID of the record created in 6
8. Create a page, fill it with “<!–more–>[nggallery id=THE_RECORD_ID]”
9. update the PREFIX_BLOGID_ngg_gallery with the ID of the just created page
10. For now I skip the part of auto creating the thumbs the user can click those one by oneLet’s first see how the relation between Album and Gallery is stored, i hope its not ‘sortorder’ (have not looked in the code yet).
Unless this already exists in the code or / someone else did this then i would like to know π
Forum: Plugins
In reply to: [Sabre] [Plugin: Sabre] WhiteList IP's?Thank you dlo, I will try to get the IP address Range out of these lists.
Forum: Fixing WordPress
In reply to: Tag pages do not showI found it. It is a conflict with the simple tags plugin.
update: after I changed the file MYSELF (so to remove that pieces of code insertion), file monitor DOES show it:
Removed:
PEcesta.php
wp-includes/js/tinymce/plugins/wpeditimage/img/.svn/tmp/DOMroll.php
wp-content/themes/twentyten/.svn/props/joins.phpChanged:
wp-content/themes/twentyten/footer.phpIt would be great to know how they do this
Forum: Fixing WordPress
In reply to: Deleted users still show in countupdate / fix:
I noticed that the records wp_capabilities and wp_user_level do not get deleted in the wp_usermeta table after deletion
after I deleted those 2 records manually in the database the count was back to 1
Forum: Fixing WordPress
In reply to: remove comma from tags(and since it are a LOT of tags I dont want to merge them manually)
Forum: Fixing WordPress
In reply to: remove comma from tagsSo for each of these terms I will have to
1) find the corresponding tag without a comma
1a) if it exists temporarily store it
1b) if it does not exist then simply rename the name and slug and go to the next tag2) find the entries in the wp_term_taxonomy table and count the references and the key
3) use this key to find the entries in the wp_term_relationships table
4) link them to the stored tag without a comma (in other words replace the term_taxonomy_id in wp_term_relationships)
5) and then remove the tag in the wp_terms and wp_term_tanxomy tableThis loop would do it.
Forum: Fixing WordPress
In reply to: get Tag Name by IDWell… get_the_tags must be used within the loop.
I have it working, this is the main part of the widget:
/** @see WP_Widget::widget */ function widget($args, $instance) { extract( $args ); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; $title = apply_filters('widget_title', $instance['title']); // get a list of ids and returns a string with term names $text=$instance['text']; $term_id_string1 = ''; $term_id_string2 = ''; $tag_names = explode(",", $text); foreach ($tag_names as $tag_name) { $aTag = get_term_by( 'name', trim($tag_name), 'post_tag' ); if ($aTag) { $term_id_string2 .= '<a href="/about/' . trim($tag_name) . '">' . trim($tag_name) . '</a> (' . $aTag->count . '), '; $term_id_string1 .= $aTag->term_id . ','; } } //remove last comma $term_id_string1 = substr($term_id_string1,0,-1); $term_id_string2 = substr($term_id_string2,0,-2); // using simple tags //st_tag_cloud('include='.$term_id_string.'&color=false&size=false&xformat=<a href="%tag_link%" class="tag-link-%tag_id%" title="%tag_count% topics" %tag_rel% style="%tag_size% %tag_color%">%tag_name%</a> (%tag_count%)'); // using our own tag list echo $term_id_string2; echo $after_widget; }(using simple tags plugin or your own)