The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2007, 04:53 AM
Lizard King's Avatar
Lizard King Lizard King is offline
Senior Member
 
Join Date: Oct 2005
Location: Istanbul
Posts: 555
Geek Article and Review System License Holder Geek Gazette License Holder 
Default Mobile Device

Hi Sam ,

I am using a modification that will redirect a user to a admin defined style if the user is browsing the forum via a mobile device. This mod is working perfect but i will like to ask a special feature or maybe a work around from you. Is it possible to add a special code that will disable GARS if the user is browsing through a mobile device ?

The mod can be found here http://www.vbulletin.org/forum/showthread.php?t=130983
Reply With Quote
  #2  
Old 01-29-2007, 04:34 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

I suppose a simple way around it would be to put an additional check in gars_ignition.php. If the style==your mobile style, then dont spawn gars =)
Let me know if you need help with that.
Reply With Quote
  #3  
Old 09-15-2009, 02:48 AM
Tigratrus's Avatar
Tigratrus Tigratrus is offline
Senior Member
 
Join Date: Nov 2006
Posts: 206
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

For anyone looking to do the same thing, use GARS with a site that provides a mobile skin for smartphones/PDA's, here's what worked for me:

Changed the GARS- Startup plugin to add the conditional:
if ($styleid<>28)
{
require_once(DIR . '/geek/gars/includes/gars_ignition.php');
}

Where 28 is the id of the style I have defined for use with a mobile browser... There's a mod on vb.org for detecting mobiles and setting the style. Feel free to contact me if you have any questions!

James
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:38 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.