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 vBAdvanced Page (https://vborg.vbsupport.ru/showthread.php?t=180651)

dartho 05-26-2008 10:00 PM

Different Domain, Different vBAdvanced Page
 
I needed this for my own site, so I though I'd make it into a product and release here. It's a variation on Different Domain, Different Style made for boards which use vBAdvanced.

If you want to show a different vBAdvanced page based upon the domain (or subdomain) name used to visit your site, then this is the hack for you.

For example:

If you have a Sports site - you could setup up subdomains such as football.domain.com and rugby.domain.com and have a vba page for each which only displays news, recent threads, polls etc from the related forums on your portal page whilst maintaining a common forum.

Alternatively if you have a mobile sub-domain - mobile.domain.com - you could set up a vbadvanced page which only has a single colunm, and only one or two modules dislpayed for visitors to your mobile domain.

*Supports 5 additional domains/vba pages different

Release Information
1.0.0 - Initial Release. Marked as Beta until I get some feedback...

Enjoy.

dartho 05-27-2008 05:49 AM

Will use this post for any further information if needed :)

M-Tuning 05-27-2008 06:28 AM

Nice!

sensimilla 05-27-2008 06:30 AM

Thanks i was in need of something like that.

bahisyeri 05-27-2008 03:03 PM

nice i tagged it :)

Trana 05-27-2008 07:51 PM

Cool! I needed this.

Icevirus 05-27-2008 09:13 PM

how do u use it??

dartho 05-27-2008 09:39 PM

Install, Modify the options in the admincp and type in the names of domains or sub domains you have and select which vbadvanced page you'd like to show to visitors of those pages.

Make sure you only enter in the domain name, no 'http' or slashes or file names.

Super Jinni 05-27-2008 10:36 PM

this is a good one, I'm using vba but I have some issues with it, some of hacks works fine with the forum but not with vba, so I'm thinking about uninstalling it

but to be honest, this mod you have brought is very good

thanks

:)

Alfa1 05-28-2008 12:08 AM

Will this use the server domain or the url? i.e. I have multiple url's pointed to the same server domain. Would this mod allow me to show a different vba depending upon the url the user is using?

dartho 05-28-2008 12:58 AM

it's based on URL

Alfa1 05-28-2008 01:10 AM

So does that mean that if a user is browsing to
my1st_url.com/index.php he will see vba page 1
while when browsing
my2nd_url.com/index.php he will see vba page 2?
because both locations are are the same file.

dartho 05-28-2008 02:25 AM

that is correct :up:

Reeve of shinra 05-28-2008 02:40 AM

awesome mod!
/clicks install and nominate for MotM

tekguru 05-31-2008 11:46 AM

Does this address the problem of the vBA 'home' link on the mobile portal still pointing back to the main sites domain?

tazzarkin 06-05-2008 08:16 PM

a true genius. thank you for this mod!

tazzarkin 07-03-2008 11:31 PM

You would need to somehow do a temp change to bburl and homeurl.
-------------------
Quote:

Originally Posted by tekguru (Post 1536978)
Does this address the problem of the vBA 'home' link on the mobile portal still pointing back to the main sites domain?


Kaelon 10-07-2008 01:49 AM

My setup is slightly different. I have my forums on myforums.com -- but I want to set up vBa CMPS "front pages" on mydomain.com. It works just fine (after cleaning up the style, so that links are properly set up) except for the "Welcome Block", which does not update the myforums.com login status while looking at mydomain.com. Is there a way to fix this?

Kaelon 10-07-2008 05:13 PM

Update: I'm tinkering around with this add-on, and it looks like it works well, but I only want it to display/force a specific "frontpage" depending upon the domain (i.e., if no specific page has been designated). How can your plugin be modified to allow this to function properly?

dartho 10-07-2008 11:13 PM

I don't really understand what extra functionality you're asking for - what you're describing sounds like what this already does. What do you mean by "Frontpage"?

dodjer42 10-23-2008 02:33 AM

Great mod. Question I have is whether it is possible to maintain the subdomain once its at the new page?

So.. in my case I have war.wpguild.com but by default once it has changed it has the www.wpguild.com/<vbawarpage>

Instead would like:

war.wpguild.com/warpage

dartho 10-23-2008 04:42 AM

if your links are all relative, I donl;t think it would changeback to www....

rndmedia 12-10-2008 01:49 AM

Quote:

Originally Posted by dartho (Post 1650904)
if your links are all relative, I donl;t think it would changeback to www....

How do you make your vbAdvanced links relative? Even though i'm on mobile.mysite.com, some links on vbA show www. . I suspect this has to do with vbA using {boardurl} to make links.

1viking 04-03-2009 11:18 AM

I have the different domain different style mod working, but I can't seem to get this one working. Here is my setup:

/index.php is the normal vb index file
/shade.php is the vbadvanced file

domain A points to index.php
vbadvanced default settings has /shade.php as the URL to the CMPS.php file
navigating to domainA.com/shade.php shows 'homepage' from vbadvanced

domain B is parked on domain A. I have setup DDDVBAP to have domain B point to 'homepage'.
navigating to domainB.com shows domainB.com/index.php instead of domainB/shade.php

I have DDDS working. domainB.com shows the mobile style, while domainA.com shows the default style. So, I don't know why this wouldn't work.

Do I need to change my forum URL for VB, such that it is domainA.com/forum, which domainB.com parks on domainA.com, which is where shade.php resides?

dartho 04-03-2009 11:16 PM

It sounds like what you want is your mobile domain to directly load up your forum page (index) rather than your VBA page (shade)? This add-on doesn't do that. What I'd do is modify the adv_portal (which is teh main template for teh vbadvanced portal page) template in your moibile style, and put a redirect in to your forum page. CHeck HERE for an example

1viking 04-03-2009 11:24 PM

actually, I have a partner that is going to "blog" using vbadvanced, however, he wants to maintain his site, look, and feel. He just wants to join up with me and my forums. So, it is a merger of two websites. He is going to post via my installation, but he wants his page to have his domain in the URL and his custom theme.

FBI DIRECT0R 05-10-2009 02:00 PM

Hey Dartho, any chance of getting 3.8.x version going??

Hitterman 06-21-2009 10:37 AM

Hey, does this supports vbulletin 3.8.x? Please Reply!

dartho 06-21-2009 11:59 AM

works under 3.8.x on my site


All times are GMT. The time now is 04:55 PM.

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.01374 seconds
  • Memory Usage 1,768KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete