![]() |
Quote:
hint - read all the posts on the previous page! Quote:
|
Code:
if( |
OK, I dont use this plugin to use a mobile version of the template.
i use this plugin to have something like 2 diferent microforums, in same database / installation. The main problem with this plugin, is that override the forum preference that allow you to have diferent style for diferent categories. For example: "Style A" is on subdomain "a.clublgmobile.com" with categories/forums "1,2,3,4,5" "Style B" is on subdomain "b.clublgmobile.com" with categories/forums "6,7,8,9,10" if i enther in main forum home, "a.clublgmobile.com", all its working ok. But what happen if a user put a address like_: "http://a.clublgmobile.com/categoryforum/6" The forum will open with "b" category in a style. This plugin disable/override the option in forum preference, that allow me to have diferent style in diferent categories / forums. I know that the main proposal of this plugin is use mobile version style, and not what im doing. but posible someone can helpme. Thans and regards |
What you suggest is the main problem of this plugin is in fact exactly what this plugin is designed to do, override a style based on [sub]domain name used to visit the page.
I might be able to offer a change to this script to do what you want (ie. do what it currently does UNLESS a custom style is defined for a forum) - *might* Leave it with me ... |
I just had a quick look, if you edit the "Force URL to Style" plugin and replace
Code:
if ($vbulletin->options['ddds_36_enabled'] == 1) Code:
if (($vbulletin->options['ddds_36_enabled'] == 1) && (!$foruminfo['styleid'])) |
Before nothing thanks for your help.
Then. When modify the lines provided by you, it give me those errors. and the plugin stop working Code:
Parse error: syntax error, unexpected T_BOOLEAN_AND in /usr/home/clublgmobile/www/foros/includes/class_bootstrap.php(890) : eval()'d code on line 8 |
Did you change the correct line? It should have been only the first line of teh plugin that got changed. I have this change working on my own live site as we speak.
Which version are you using, 5 domain version or single? |
Im using single one domain.
And yes i modified only first line. Exactly ive change this line: Code:
if ($vbulletin->options['ddds_37_enabled'] == 1) Code:
if (($vbulletin->options['ddds_37_enabled'] == 1) && (!$foruminfo['styleid'])) |
Tried with multiple domain version and same problem.
|
Quote:
i used your modification, and it runs perfectly in my forum. all link has changed into m.myforum.com (thread,forum,post, etc) thanks for the change *i use 4.1.3 |
All times are GMT. The time now is 10:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|