Results 1 to 6 of 6

Disabling social bookmarks for mobile style

This is a discussion on Disabling social bookmarks for mobile style within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, Can anyone tell me how I would go about preventing the social bookmarking options from appearing for a particular ...

  1. #1
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times

    Question Disabling social bookmarks for mobile style

    Hi,

    Can anyone tell me how I would go about preventing the social bookmarking options from appearing for a particular style? I can't imagine that visitors using a mobile device would make frequent use of social bookmarking, and display space is limited on mobile devices, so I would like to prevent the social bookmarking options from appearing for my mobile style.

    Thanks!

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    I've found that all of my products are useless on mobile devices.

    In the style_fetch hook,

    Code:
    if (in_array($styleid, array(3)))
    {
       $obj =& vBulletinHook::init();
       $obj->pluginlist = array();
    }
    where 3 is my mobile styleID
    execution order, 1

    disables all products.

    vbseo still works, as htaccess is still there and is executed higher up than 1.


    You may be able to tweak this a bit to your needs.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times
    Thanks so much, Brian!

  4. #4
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times
    Actually, wouldn't that disable the plugin that detects visitors using mobile devices and ensures they see the mobile style?

  5. #5
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    I don't use detection, I just offer mysite.mobi which redirects to mysite.com?styleid=3.

    You may be able to tweak exectution orders to make that happen... set everything you need to happen low, everything you want off, high, and the above in the middle. It basically just dumps the array of plugins.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times
    Great, thanks again Brian.

Similar Threads

  1. Disabling Tweetboard and LiveStats for mobile skins
    By pcam in forum Troubleshooting
    Replies: 0
    Last Post: 12-13-2009, 01:00 AM
  2. Social Bookmarks
    By Nuguru in forum General Discussion
    Replies: 1
    Last Post: 08-05-2008, 10:43 PM
  3. Social Bookmarks
    By jluerken in forum Deutsch
    Replies: 2
    Last Post: 09-06-2007, 08:37 AM

Posting Permissions

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