cogmios
Forum Replies Created
-
Forum: Plugins
In reply to: Importing hundreds of photos, uploaded via FTPI use ZEN photo.
I have all my photos stored by year on my NAS (synology CS407) at home. I have written an extremely simple script that constantly synchronizes between my NAS and my site via ftp. (in that way sychronizing photos happens automatically, unattended and I only need to put new photos in the correct dir and never ever even have to think any more of “putting” them somewhere). The script automatically checks for changes so if I edit a photo from a laptop it automatically updates it on the server on the next run.
For Zen photo some wp plugins exist to let the photos be embedded in your post. An additional bonus is that zen photo is (ofcourse) also a seperate appliation to log into and only see images.
Additional bonus is that at home the \photo folder on the cs407 can also be used to edit photos from various laptops e.g. with picasa or from another laptop with xara and can be used to e.g. stream the photos to kiss player or xbox to the tv etc…
things are often resolved by just putting an extra layer of software/hardware in between.
Forum: Alpha/Beta/RC
In reply to: How to Add page based on Template in 2.7it shows “parent” and “order” but no “page templates” π
Forum: Plugins
In reply to: How to add a taglist/cloud on a specific tag page?Ok, no reply, I came up with the following that actually works (in case anyone is looking for it):
function get_related_tags($tagname) { global $wpdb; $sqlstring="select name from $wpdb->terms where term_id in (" . "select term_id from $wpdb->term_taxonomy where taxonomy=\"post_tag\" and term_taxonomy_id in (" . "select distinct term_taxonomy_id from $wpdb->term_relationships where object_id in (" . "select object_id from $wpdb->term_relationships where term_taxonomy_id =" . "(select term_taxonomy_id from $wpdb->term_taxonomy where term_id=" . "(select term_id from $wpdb->terms where name=\"".$tagname."\")))))"; $tagidarray = $wpdb->get_col($sqlstring,0); $returnRelatedTagDiv=''; foreach($tagidarray as $relatedtag) { if ($relatedtag != $tagname) { $returnRelatedTagDiv .= "<a href=\"/about/" . $relatedtag . "\">"; $returnRelatedTagDiv .= $relatedtag; $returnRelatedTagDiv .= "</a> "; $tagid = fetch_tag_id($relatedtag); //$returnRelatedTagDiv .= fetch_tag_amount($tagid); $returnRelatedTagDiv .= ""; } } return $returnRelatedTagDiv; }as documented on http://edward.de.leau.net/wordpress-retrieve-the-set-of-tags-used-with-another-tag-20081110.html
This is actually a hefty query so I wonder if it can be done better.
Another thing… what would happen if I click a tag. then I come to the tag page of the tag with ALL postings. However I would then like to come to the tag page archive of the tag but with only the postings of the tag that I clicked on before… does anyone understand?
A sort of refining query on tags.
Forum: Plugins
In reply to: Amount of posts with a TAGI now did:
function tpc($tagname) {
$returntagstring = 0;
$allwptags = get_tags();
foreach($allwptags as $tag) {
if ($tag->name == $tagname) {
$returntagstring = $tag->count;
}
}
return $returntagstring;
}so if anyone knows anything better, would be cool!
Forum: Fixing WordPress
In reply to: Types of relationships in taxonomy termIt’s the same question a and b for categories. They are a taxonomy term too.
Forum: Fixing WordPress
In reply to: Tag of current Tag Pageah….. $tagname = get_query_var(‘tag’); …. DUH!
Forum: Fixing WordPress
In reply to: Tag of current Tag Pageok … $tag_id = intval( get_query_var(‘tag_id’) ); gives me the current tag id…. now the only thing is to get the correct term that belongs to this id, that should be in there somewhere?
Forum: Fixing WordPress
In reply to: Tag of current Tag PageSo… where I will use $tagdirectory = get_bloginfo(‘template_directory’) . ‘/include/tags’ . $tagname; to identify the directory where all the stuff specific to this tag will be stored.
Or is there a better way?
Forum: Fixing WordPress
In reply to: Tag of current Tag PageIn other words if the following function somehow somewhere exists already:
$file = $_SERVER[“SCRIPT_NAME”];
$break = Explode(‘/’, $file);
$pfile = $break[count($break) – 1];
$pfile = substr($pfile,4);
$pfile = substr($pfile,0,strlen($pfile)-4);
echo $pfile;Forum: Alpha/Beta/RC
In reply to: 2.7-bleeding and tag pagesI found it! It’s a bug in the new “locate_template function” inside “/includes/theme.php”. When I uncomment that function (in beta for 2.7) and replace it with the old check everything runs fine. I yet have to validate why this new function does not work.
Is this a unit test report or shall I create a diff/patch for it??
(see http://edward.de.leau.net/tag-pages-and-wordpress-27-20081011.html for more information on the issue)
Forum: Alpha/Beta/RC
In reply to: 2.7-bleeding and tag pagesNormal tag templates e.g. “tag-synology.php” = “http://myweblog/about/synology” (where i default replaced /tag/ with /about/).
Forum: Plugins
In reply to: Compatibility with pagebarThe pagebar plugin does break om some code:
a) remove the nbsp; in the pagebar plugin code
b) remove the <!– 216 comments in the pagebar plugin code… but this is not the main problem, the main problem is that it is auto inserted before the start of the xml code.
Forum: Plugins
In reply to: New Plugin: CommentLuv – luv your commenters!Yeah me too, with the latest version, it shows all the code of the plugin, I left it online so you can check: http://edward.de.leau.net/new-algorithm-for-alexa-rankings-20080418.html
Forum: Fixing WordPress
In reply to: HELP Widgets disappearIts still the case, is there any forum out there where there is actually interaction? As soon as I edit one widget the result is either that all the texts of the other text widgets are cleared or some of them.
So I will now just manually add the code in the sidebar.php page and forget about widgets.
Forum: Alpha/Beta/RC
In reply to: WLW and 2.5beta*urgh* found the problem, sorry.