vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Different Domain, Different Style (https://vborg.vbsupport.ru/showthread.php?t=174381)

dartho 04-10-2010 10:55 AM

Quote:

Originally Posted by woodysfj40 (Post 2018327)
My installation seems to be partially working....vbSEO installed.

http://mforum.ih8mud.com displays correctly.
http://mforum.ih8mud.com/40-55-series-tech/ displays correctly.
BUT any time I click a thread, it reverts back to forum.ih8mud.com

thoughts?

I think vbseo sets a 'base' meta tag which needs to be unset, or a plugin written which sets it as required.

hint - read all the posts on the previous page!
Quote:

Thanks for continuing to support this great mod!
It's not supported :)

woodysfj40 04-10-2010 12:16 PM

Code:

if(
VBSEO_BASEDEPTH &&
defined('VBSEO_PREPROCESSED')
&& ($_SERVER['HTTP_HOST'] != 'm.mydomain.com')
)

got it... thanks :)

nestortoledo 09-18-2010 07:54 AM

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

dartho 09-18-2010 08:24 AM

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 ...

dartho 09-18-2010 09:00 AM

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)
with
Code:

if (($vbulletin->options['ddds_36_enabled'] == 1) && (!$foruminfo['styleid']))
it should not override a style explicitly defined in forum properties. This was tested so minimally that I may as well have not tested at all, so no promises. Let us know if it work.s

nestortoledo 09-18-2010 10:45 AM

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

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_bootstrap.php(890) : eval()'d code:8) in [path]/includes/functions.php on line 4939


dartho 09-18-2010 11:24 AM

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?

nestortoledo 09-18-2010 11:37 AM

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)
To this line:
Code:

if (($vbulletin->options['ddds_37_enabled'] == 1) && (!$foruminfo['styleid']))
Forgot to mention that im using it in Vbulletin 4. Suite with CMS Disabled.

nestortoledo 09-20-2010 08:55 AM

Tried with multiple domain version and same problem.

for5up 05-15-2011 06:19 AM

Quote:

Originally Posted by sung (Post 2017791)
I modified the plugin a little more to get this to (mostly) work in vB4. Added the following inside the if block when the domain matches.

PHP Code:

$vbulletin->options['bburl'] = "http://" $vbulletin->options['ddds37_domain']; 


So far the only issue I have run into is with forums that are links, they still seem to be using the "default" forum URL instead of the mobile one, i.e. they try to go to www.example.com instead of m.example.com despite being relative links :mad:

hi sung

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
  • Page Generation 0.01305 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete