vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding Custom Pages as Sub Domains with Content From Some Sections (https://vborg.vbsupport.ru/showthread.php?t=171140)

Heath 02-22-2008 12:52 AM

Adding Custom Pages as Sub Domains with Content From Some Sections
 
Hello,

I found a Tabs mod for vb that I would like to use. I was trying to create simple pages linking to chosen forums and sub forums. For instance. I would like to have sports.mydomain.com in this I would like 2 seperate tabbed content items with the latest forum posts from each of those sports categories.

If possible I would also like to add some sort of RSS feed to that as well. If that is more complex then existing mods capabilities then the tabbed content with the latest from each forum & sub forum would be fine. I would also like a menu on the side with each section. that is basically all.

Is this possible with any current mods?

p0lar_bear 02-22-2008 06:59 AM

In order to have a sudomain system like that, you host needs to to be able to support Wildcard DNS.

Also, to set it up yourself, you need an understanding of Apache's mod_rewrite module, .htaccess files, and regular expressions. It's by no means easy, and I'm having difficulty understanding this myself; there's a whole site about it at http://www.modrewrite.com/.

Your goal is to use mod_rewrite to internally change the uri from http://sports.mydomain.com/ to http://mydomain.com/forums/index.php?tab=sports (or something of the like), and also have it append all other variables (such as forum IDs, post IDs, etc) to the uri as well.

If your host cannot support or set up a wildcard DNS for you, then an alternative is to go about rewriting http://mydomain.com/sports/.


All times are GMT. The time now is 07:16 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.03080 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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