Marty
Forum Replies Created
-
Forum: Plugins
In reply to: Slow comments entryare you sure its not your internet connection to the web server?
i have insert in my web site a fancy comment REPLY
did you code it your self?
i not use plugin.
sounds like a Indian Call center…
and when i accept comments in moderation back end it’s slow, i use wp 2.8.2
so you have approved the comment?
then it takes a while for the page to re-load?is your website/blog hosted on the wordpress site?
Forum: Plugins
In reply to: Where can I find mor docs on customized WordPress development and extension?The book ive been working with the last few months is:
“WordPress Plugin Developemnt” – beginners Guide by Vladimir Prelovac
pick that up from Amazon £15 to 20 bux…some websites out there, would be:
- WordPress site: http://codex.wordpress.org/Writing_a_Plugin
- Useful hints and Tips: http://diggingintowordpress.com/
- Lots of Help: http://www.smashingmagazine.com/2007/06/29/wordpress-plugins-tutorials-your-pick/
when i first started to develop for wordpress, the best resource would be using the wordpress doc files, along with downloading and reading through other plugins which are out there,
I find this the best way, not only for helpful tips, but for standasdization, and localisation methods, so im writing the code that way others can follow it and see from a glance whats happening etc..
hope that helps a bit,
Cheers
Marty
Forum: Plugins
In reply to: Counter Strike: Source Server Status Plugin ?Hi x3r0ss
I’m currently working on such a plugin..
which uses the CStrike 1.6 Server Query class by Markus SchanzThe plugin has been coded and still in testing stage’s,
You can view the plugin in action on a clan site which im working on at the moment..http://www.homelessclan.co.uk
the sidebar widget is down the right hand side..which just now only displays:
- Server IP.
- Port.
- Current Players / Max Players.
- Image, Current map.
although im still looking at other functions which i can introduce before i put it out into the wild…
looking for feedback, any suggestions?
Cheers
MartyForum: Plugins
In reply to: I don’t think “register_activation_hook” is working, how do I debug.Ive been looking into developing a few plugins, and also i find that the register_activation_hook is missing something.
I’ve not bothered using the Global variables,// What happens when the plugin is activated register_activation_hook(__FILE__, 'pluginName_activate');below is the function which is run on Activation, it will create a categories table (which it dose after checking phpmyadmin)
function pluginName_activate() { // Create New Table $query = mysql_query("CREATE TABLE pluginName_cat( catID INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , catName VARCHAR( 20 ) NOT NULL , catDescription TEXT NOT NULL ) ENGINE = MYISAM COMMENT = 'Holds the Category Information';"); // End Query $query = mysql_query("INSERT INTO pluginName_cat VALUES ('','catName','Description text is here..'); "); }// END pluginName_activateAfter de-activating; I have it set to drop the tables it created, then after re-activating the plugin the tables are created but no values are inserted into the table?
I’m I missing something here also? would I need to use the Global variables,
Forum: Plugins
In reply to: NextGen gallery show all picturesHi Svendsen
Ive also been using the next Gen gallery to manage all the images etc in our wordpress site..The best way i could find to control the images was to start of by making a base “page” -> Gallery,
this file has its own template file, (ie: same as index.php) but instead of it calling the sidebar(); function, i used the
<?php include(TEMPLATEPATH .'/sidebar_gallery.php'); ?>on this page i couldn’t find any dynamic way of producing the Grid view images, so i just created a table and linked all my gallery thumbs to its own page,
Each Gallery page is a sub-page of Gallery
so the navigation would look like this
-Gallery
–Album1
–Album2
–Album3
etc:within the sidebar of the gallery i used the code to grab only the child pages of the main page Gallery, to display a list of all the other albums within the Main Gallery
<?php if($post->post_parent) $children = wp_list_pages('sort_column=menu_order&title_li=&child_of='.$post->post_parent.'&echo=0'); else $children = wp_list_pages('sort_column=menu_order&title_li=&child_of='.$post->ID.'&echo=0'); if ($children) { ?> <div class="sidebar-box"> <h2>More Albums</h2> <ul><?php echo $children; ?></ul></div>The webpage is here for the example http://www.shugtech.co.uk/gallery
If anyone else knows of a good way of displaying a Grid view: ie
One page holds all the thumb nails from each album were each is linked to its own page or full album that would be good.Forum: Themes and Templates
In reply to: no option for page templatethanks for all the comments..
although i have tried various methods, long name, short name,
filename variations, file permissions, i still cant seem to make the option for choosing a template file active at all..even created new pages(still no option), published them, edit (still no option)
on the other site i have copied the entire file from which the template was working.. and that still didnt show up in the advance options section..
its really got me hitting a brick wall..
has anyone seen the plugin were it changes theme based on url?
i did see one last week, but i failed to bookmark it.Forum: Themes and Templates
In reply to: no option for page templatethe way its setup is all default pages for the template are in the theme folder, “wp-content/themes/thetheme/*files”
ive created 2 other pages in this folder…*blog_header.php
*blog_page.phpeach have a its own html + wordpress code..
when i load the blog page i want a different layout,
ie: more landscape rather than portrait.but the option still wont appear to set the template for that page. 🙁
very frustrating, trying to look for a theme switcher from a URL
ie:www.mysite.com/index.php?action=chngetheme&theme=MyNewThemebut not had much luck
Forum: Themes and Templates
In reply to: no option for page templateHi there, thanks for the reply.
yea i thought that as well..so in the site with no tempalte option i created 2 pages,
blog_header.phpwith the code
<?php /* Template Name: Blog Header */ ?>even with this code in place when i visit the manage tab, and select the page i want to apply the template to, theres no option for this in the selections below the post. 😐
even when i created a new page theres still no option to allow for a template to be applied…