Results 1 to 6 of 6

Exclude Styles

This is a discussion on Exclude Styles within the General Discussion forums, part of the LiveStats for Google Analytics category; I have a mobile skin that I don't want to have this appear on. Can you make it so we ...

  1. #1
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,484
    Liked
    1 times

    Exclude Styles

    I have a mobile skin that I don't want to have this appear on. Can you make it so we can exclude certain styles.

  2. #2
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    Great suggestion.
    The Forum Hosting - Forum Hosting from the Forum Experts

  3. #3
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    i have a product that does this... the problem is, it doesn't bypass htaccess.

    I'm still working on a good solution for htaccess which notes the style... but haven't come up with anything yet.

  4. #4
    Junior Member
    Real Name
    Matt
    Join Date
    May 2009
    Posts
    19
    Liked
    0 times
    I'm looking for something similar. I'm fine keeping the SEO friendly URLs. The issue I have is with the "Tweets" and "Stats" tabs being displayed on the mobile style which blocks links and makes it almost impossible to navigate the mobile style on a mobile device. Using VBSEO 3.8.6 RC2 (updating to gold soon) on VB 3.8.7

    I'll update this thread if I find a suitable workaround.

  5. #5
    Junior Member
    Real Name
    Matt
    Join Date
    May 2009
    Posts
    19
    Liked
    0 times
    For disabling the "Tweets" tab on certain styles, disbale the tweetboard in the VBSEO adminCP options, and manually add the code to the templates for the styles that you do want it to display on, and just don't add it to the mobile style templates. Tweeboard JS is available here:
    Tweetboard Support

    Still working on the "Stats" tab for google livestats. Will update when I figure out a fix.

  6. #6
    Junior Member
    Real Name
    Matt
    Join Date
    May 2009
    Posts
    19
    Liked
    0 times
    OK, it's ugly, but it works.

    In the plugin manager, for the LiveStats hook location of "parse_templates"

    Add this at the begining:
    PHP Code:
    if($styleid != 'XX')

    replace XX with the mobile template ID number

    And at the very end of that add the closing "}" bracket.

    Stats now display on all styles except for the mobile style. Like I said, it's ugly, but it works.

Similar Threads

  1. My styles are gone!
    By sovaward in forum Troubleshooting
    Replies: 2
    Last Post: 06-05-2008, 06:21 PM
  2. Cannot change Styles
    By gedsta in forum Template Modifications
    Replies: 13
    Last Post: 12-04-2007, 10:05 PM
  3. vBSEO and styles?
    By masterross in forum Pre-Sales Questions
    Replies: 5
    Last Post: 10-25-2006, 07:32 PM
  4. vB Styles
    By Michael in forum Critique Please
    Replies: 4
    Last Post: 12-13-2005, 01:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •