Forum Replies Created

Viewing 15 replies - 16 through 30 (of 122 total)
  • i love vanilla and have been tracking its process since its first release.

    I would love to use it, but i still cant get my head around hoe the people.app is used to intergrate it into wp_users :S

    hmmmm looks like XDForum has moved on quite a bit, will have to take a look at that.

    Ive had a quick glance at getting BBPress to use my wp_user tables but it just would let me login :/

    Forum: Plugins
    In reply to: New Plugin: Trashbin.

    This is a great idea, all we need now is a “Ready to Publish” button for thoese we dont want to be able to publish ??

    Forum: Plugins
    In reply to: New User Plugin

    What are you wanting to display once you have the page and cat created?

    If your just wanting to display user info then i would just create a single page and pull out there data thru the ID being passed.

    I do this on https://www.mEm-Gaming.co.uk and many other sites. I do have a little PluginClass system created for this but its a bit too messy to release

    Erm, i guess this is cos your using it thru exec-php – i dont use that so have no way of knowing whats wrong with it.

    If you just create a page template and use that inside the pages template it will work

    just tested it to make sure it works and it does ?? on a default WP install at least

    if all you want is the title of the latest post and i assume it linking to it aswell use the following

    <?php
    foreach($wpdb->get_results("SELECT ID,post_title FROM
    wp_posts WHERE post_status = 'publish' ORDER BY post_date DESC LIMIT 0,1") as $p){
    echo "<h1><a href="".get_bloginfo('siteurl')."/?p=".$p->ID."">".$p->post_title."</a></h1>";
    }
    ?>

    This “Should” just pull out the last published post and display it in a H1 with a link to the post.

    Its quick and dirty and ive not tested it so dont shout if it dont work ??

    humaneasy: thats not what i meant at all…

    1: Install WordPress like you would on domain1.com
    2: Create your Theme in a way that it get all its presentation layout via the stylesheet (like cssZenGarden)
    3: Create both you domain1 and domain2 stylesheets with there differnt layouts/designs
    4: In header.php instead including the stylesheet via bloginfo(‘stylesheet_url’) use something like this

    <?php
    $stylesheet = ($HTTP_SERVER_VARS["HTTP_HOST"]=='www.domain1.com'):'domain1.css'?'domain2.css';
    ?>

    (note the above would of course not load the stylesheet its just declaring which to use

    5: Sorted, depending on the URL it will load a differnt stylesheet and display the layout needed.

    Of course if your not too great with CSS/XHTML then this could be a bad way to go as it depends on you setting out you XHTML in a way that will easily allow you to change the design via CSS instead of XHTML ??

    moshu is quite right, but the way i would have set it up would be so that the templates would not use any form of site URL and would just use relatove linking…

    so all linkes would be just /what-ever-you-want/

    ie:
    https://www.domain-one.com/what-ever-you-want
    https://www.domain-two.com/what-ever-you-want

    They would then both pull the same data, but the stylesheets would be differnt depending on the domain.

    Forum: Plugins
    In reply to: Members List

    I have a similar thing going on

    https://www.mem-gaming.co.uk/v2/index.php/profiles/

    Depending how good you are with CSS/XHTML you could do this quite simply.

    In the header.php where you set the .css you could check what the domain is and then set the .css file accordingly.

    This would allow you to load a differnt .css file for each domain which in turn gives you the ability to change the look and feel of the site when really its just using the same XHTML and DATA, kinda like csszengarden style ??

    Forum: Plugins
    In reply to: Set WordPress Offline

    Place it right at the top of the header.php before anything else loads.

    As your only wanting this while you make some changes id keep it like this, but if you wanted something like this as a feature i would create it as a plugin and have it run before WordPress initaites.

    I have a similar setup on mEm-Gaming.co.uk where on some pages like user profile pages i dont want mine or clan members profiles to show up on the profile page but to redirect them to the roster page, so i have a simple is_midnightEvil() function which basicly checks to see if the users role is either midnight evil or has the capability is_midnightEvil.

    Im glad the above works for you though ??

    Forum: Plugins
    In reply to: Members List

    GamerZ, ive done a couple of these for many differnt sites within done with WordPress.

    I would suggest members be just people who signed up and registered, people who just comment are just guests.

    I actualy need to go thru and sort out the member listing part of https://www.mEm-gaming.co.uk so far got profile pages just no overall list of members

    Forum: Plugins
    In reply to: Set WordPress Offline

    you dont need a plugin for this, just place this bit of code in the header.php

    <?php

    global $userdata;
    get_currentuserinfo();
    if($userdata->ID!=”YOUR ID”){
    header(‘location: redirectedPageURL’);
    }

    ?>

    This is simple and dirty but would just redirect anyone that was not logged in with your account to the redirectedPageURL.

    Simple, quick and to the point

    Thread Starter Phunky

    (@phunky)

    The only plugins im using which aint my own custom written ones are;

    Role Manager
    WP lightbox 2
    and CDC Clean Archives

    The rest are just my own little custom things

Viewing 15 replies - 16 through 30 (of 122 total)