Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Forum: Plugins
    In reply to: Slow comments entry

    are 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?

    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:

    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

    Hi x3r0ss

    I’m currently working on such a plugin..
    which uses the CStrike 1.6 Server Query class by Markus Schanz

    The 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
    Marty

    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_activate

    After 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,

    Hi 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.

    Thread Starter Marty

    (@mrthrust)

    thanks 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.

    Thread Starter Marty

    (@mrthrust)

    the 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.php

    each 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=MyNewTheme

    but not had much luck

    Thread Starter Marty

    (@mrthrust)

    Hi 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.php

    with 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…

Viewing 8 replies - 16 through 23 (of 23 total)