anothertrad
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Fetch data programatically, from the template filesfor the record:
$ngggalleryname = 'test'; $previewpicdata = $wpdb->get_row(" SELECT * FROM $wpdb->nggallery where name='$ngggalleryname'"); $images = $wpdb->get_results(" SELECT * FROM $wpdb->nggpictures where galleryid=$previewpicdata->gid");foreach…`
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Fetch data programatically, from the template filesok, done with simple wpdb
Forum: Plugins
In reply to: [Plugin: Cool Weather] Coolweather can’t search cities with spacesSolved, just send this useless plugin to trash and use yahoo weather.
Forum: Fixing WordPress
In reply to: i18n like DrupalNo one have this answer?
Forum: Themes and Templates
In reply to: Sandbox Revisitedgreat. I’m using it.
Forum: Fixing WordPress
In reply to: i18n like DrupalThis one can translate User defined fields?
Forum: Fixing WordPress
In reply to: i18n like DrupalThanks dude.
With this one, I can translate all items that I want? Inclusive, category, and php template files?
The use that I discribe of the function e(), is right?I write e(‘My text’, ‘en’) and I must have po files for every language with ‘My Text’ in it. right?
Forum: Themes and Templates
In reply to: How to dynamically get theme directory?I wrote a little function to remove “localhost:8888” from the address, leaving the relative directory.
But the function wp_head() stills put localhost:8888 in front of the css links, and I`m afraid that I can’t change this, right?
Forum: Themes and Templates
In reply to: How to dynamically get theme directory?Let me tell you something about this function bloginfo(‘template_directory’).
For me, it returns: “localhost:8888/sites/project_name/wp-content/themes/my_theme/”
Everything ok.
When I open my wordpress project trought another computer in the network, I put my_ip:8888, like:
192.168.0.4:8888/sites/project_namewhen I go to the code, I expect that the function bloginfo(‘template_directory’) returns to me:
“192.168.0.4:8888/sites/project_name/wp-content/themes/my_theme/”Instead, it returns:
“localhost:8888/sites/project_name/wp-content/themes/my_theme/”Maybe it`s a site-name configuration in apache?
well, maybe if I remove the characters before the first slash, it may be work…
Forum: Themes and Templates
In reply to: How to dynamically get theme directory?got it
Forum: Themes and Templates
In reply to: How to dynamically get theme directory?There`s a way to get the plugin directory?
Forum: Themes and Templates
In reply to: How to dynamically get theme directory?Thanks. it works.
But please, show me the link of the documentation of his useful bloginfo functions.
Thanks again.