Results 1 to 2 of 2

Thread: [Tutorial} Multisite Change Variables based on which site

  1. #1
    Thread Starter
    Senior Member aggieoutlaw8's Avatar
    Join Date
    Oct 2010
    Location
    United States
    Posts
    125
    Thanks
    0
    Thanked 6 Times in 6 Posts

    [Tutorial} Multisite Change Variables based on which site

    Im using this code to change what displays when on a certain site in my multisite

    PHP Code:
    <!-- SWITCH CODE BASED ON BLOG ID -->
    <?php $get_blog_id $GLOBALS['blog_id'];
     if (
    $get_blog_id == 1) {?>
    Do this for blog ID 1
    <?php } elseif ($get_blog_id == 4) { ?>
    Do this for blog ID 4
    <?php } else { ?>
    Do this as a default.
    <?php }?>
    <!-- end CODE HOMEPAGE BASED ON BLOG ID -->

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Different "stock photo" based on category (change "no image available")
    By Skid in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 12th, 2010, 08:05 AM
  2. Replies: 1
    Last Post: September 6th, 2010, 08:54 PM
  3. Replies: 1
    Last Post: August 3rd, 2010, 04:09 AM
  4. Tutorial:Change place to Currency Symbol
    By chifen in forum ClassiPress General Discussion
    Replies: 1
    Last Post: May 25th, 2009, 12:37 PM