![]() |
You're welcome! I have only done a few but check my profile for other mods https://vborg.vbsupport.ru/member.php?u=110638
|
Uninstalled , Used .htaccess to rewrite different links to different styles
|
I like this mod.. really do .. even though I have few domians parked but not all are used now.. but from time to time someone would come through them
I have 5 domains but all point to same and one site with one copy of vB installed and that was fine as I been told by vBulletin a while back.. as I only have one copy installed and not modified in any way to act as mutli site/forum |
Quote:
|
You could possibly use conditionals in your templates for each individual style in conjunction with this add-on to do this. If you have multiple domains which display different content, under vBulletins license agreement you would be required to have a vBulletin license for each domain...
|
Hello,
Great hack i must say! But i have 2 questions : 1. I have 2 domains www.abc.com and www.xyz.com [suppose]. Forum is running on www.abc.com and i want www.xyz.com to be a second domain which should point to www.adc.com but with a different look.Now what server settings will i need for www.xyz.com ? I have edited the nameserver of the new domain to the same server.Now simply i have to add the domain in DDDS settings or i have to add the domain to the server first. Basically what i want to ask is how will i redirect 2 domain to same forum. 2. Is there any option by which i can hide some sections of www.abc.com in www.xyz.com and viceversa. |
@newmasalaboard - You need to have domain xyz.com point to the same webspace as abc.com - A or CNAME records I think? If using cpanel you would "park" xyz.com or add it as an addon domain and point it's home directory at the same home directory as abc.com.
If both domains are point ing to teh same webspace, they will both get the same content -ie. your forum. You can then confire this add-on to assign a different style based on teh domain visited. See the post before yours for the answer to question 2. |
dartho - a question for you. I apologize if they've been answered earlier, but after reading through this, I don't think so.
If I park a domain onto another domain, both domains non-forum content will be the same, as they will share the same document root, correct? In my case I have 2 domains (one with a forum already installed) - I want to share only the forum content between the two (each with it's own unique style), but keep the rest of the individual domains document root's completely different/separate. So let's say it's all about "cars" - both forums are all about "cars", but one website's main content is all about German cars and the other website is about American cars. So I need a shared forum, but the two domain's other content are completely separate (different document roots and with different content) - how would I set up each domain from the server side to accomplish this? I'm using WHM and cPanel. I assume the domain with the forum currently installed, kind of acts as the master domain in some fashion? How do plug-in's act with this installed - are there any known one's that have issues, or is it completely transparent to them? Thank you in advance. |
Hi dear Dartho, is this working on 3.7 Gold ??
|
Yes I can confirm that is working in 3.7 gold very well, thnk you.
|
Sure is, there is however a 3.7 version over here which has some minor changes although identical functionality...
|
If someone types in mobile.mydomain.com this works fine. If they type in mobile.mydomain.com/forum/index.php it uses the default skin instead of the mobile skin. Shouldn't this keep the mobile skin throughout the whole site?
|
okay... I'm an actionscript guru... not php/vbulletin gumshoe. I tried monkying around with this add on and got no results... here is what I did...
First I went to the plug in manager from the plug ins and products in vbulletin and then went to the link Force URL to Style and messed around with some of the code from the panel. Please tell me the proper method to place for the variables so I can see this actually work. here is the code... if ($vbulletin->options['ddds_36_enabled'] == 1) { if ($vbulletin->options['ddds_36_en1'] == 1) { $styleurl=$vbulletin->options['ddds_36_url1']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style1']; } } if ($vbulletin->options['ddds_36_en2'] == 1) { $styleurl=$vbulletin->options['ddds_36_url2']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style2']; } } if ($vbulletin->options['ddds_36_en3'] == 1) { $styleurl=$vbulletin->options['ddds_36_url3']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style3']; } } if ($vbulletin->options['ddds_36_en4'] == 1) { $styleurl=$vbulletin->options['ddds_36_url4']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style4']; } } if ($vbulletin->options['ddds_36_en5'] == 1) { $styleurl=$vbulletin->options['ddds_36_url5']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style5']; } } } I tried the following method... if ($vbulletin->options['ddds_36_en2'] == 1) { $styleurl=$vbulletin->options['http://www.domainname.com/']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['template_style_name']; } } badda bing... badda broken ! nothen appears to take any effect. Crack all the greenhorn jokes you want... time constraints get the best of any jedi ! |
I am getting the following error
Warning: preg_match() [function.preg-match]: Unknown modifier 'h' in /global.php(233) : eval()'d code on line 9 and when I try to log in I get vBulletin Message Unable to add cookies, header already sent. File: /usr/local/www/htdocs/htf/includes/class_core.php Line: 3052 I couldn't log in to turn off the product so I deleted it from the database. I am still getting the error message. The only way I can get my forum to work is to comment out ($hook = vBulletinHook::fetch_hook('style_fetch')) ? eval($hook) : false; Then everything works except now I cannot access my portal page that uses vBAdvanced as it uses the fetch_hook to load. Any ideas how to fix this? Thanks, Parker |
Nevermind. I got it fixed.
Parker |
@Parker - glad to hear, how about the query in post #92?
@vanistrians - what are you trying to do? |
Dartho- I am trying to figure out the proper way to use DDDS of coarse. I have the product installed but just need to know the Standard Order of Procedure of how to use it... the basics 101.
I went to vbulletin options and selected Different Domain Different Style. I'm now @ the DDDS control panel. Here is a link to the image of the control panel... I also have a question if I should change anything in the following php code... if ($vbulletin->options['ddds_36_enabled'] == 1) { if ($vbulletin->options['ddds_36_en1'] == 1) { $styleurl=$vbulletin->options['ddds_36_en1']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style1']; } } if ($vbulletin->options['ddds_36_en2'] == 1) { $styleurl=$vbulletin->options['ddds_36_url2']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style2']; } } if ($vbulletin->options['ddds_36_en3'] == 1) { $styleurl=$vbulletin->options['ddds_36_url3']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style3']; } } if ($vbulletin->options['ddds_36_en4'] == 1) { $styleurl=$vbulletin->options['ddds_36_url4']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style4']; } } if ($vbulletin->options['ddds_36_en5'] == 1) { $styleurl=$vbulletin->options['ddds_36_url5']; if(preg_match('/'.$styleurl.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=$vbulletin->options['ddds_36_style5']; } } } In other words... what is the simplest way for me to assign a different style to a different domain with this? I do not see anything else in the Different Domain Different Style control panel that show where to input the style... it just shows Style ID and I have a choice of entering 0 to 5. True I can enter the url but how do I assign the different style to the newly selected url input ? |
DDDS is not the answer , all you do is set your additional domain names home page to the style id in your server admin cp .
www.dieselbombers.com www.dieselbombers.mobi this will also prevent search engines from indexing your additional domains as different sites and removing links from its listing as duplicate content |
diesel.. how do I do this? And what do you mean DDDS is not the answer? I have a total of 4 urls hosted that shares the same data that I want to have similar but different stylesheets. Basically Im trying to develop a vbulletin based social network where the main url defaults to the vbadvanced dynamics article generator. The second url would share the same database but would just default to the vbulletin based blog module. I would like to assign similar but slightly different style sheets (the article url would have different page navagation and the blogger would have its own custom page navagation). As it stands... both the article url and blog url currently share the SAME template navigation. I really hope DDDS is a way to fix this.
|
From the looks of things the hype of DDDS was as big of a hype as obama's economic bailout plan. If DDDS is not qualified as a solution... then what is?
lol DDDS = bailout plan for vbulletin site developers wanting to create a multi-url socnet ! :) |
<a href="http://www.fluidhosting.com/support/hsphere/user/html/14191.htm" target="_blank">http://www.fluidhosting.com/support/...html/14191.htm</a>
|
Quote:
I have all 4 urls hosted... I do not wish to create redirects. Just seperate template styles re-assigned to them. Thanks anyway Diesel. Basically I have it like this... domainname1.com = article site domainname2.com = blog site domain1 is the main site but domain2 is just an extenstion of the first url. Lets just say that I was able to get a generic blog domain I want to use to co-brand domain1 :) I really am hoping DDDS is a good way to assign different template styles without too many issues. |
Using redirects ensures that your sites dont compete against each other and eliminate each other via duplicate content .
theres also vbulletin licenses issues that may arise if this is accomplished by other means i have 9 url's pointing to diesel bombers , only 1 using the mobile style Normal www.dieselbombers.com www.dieselbombers.net www.dieseldiscussion.com www.dieselperformanceforum.com www.galaxydiesel.com www.ballsdeepdieselperformance.com www.dieselvendor.com www.bombeddiesel.com www.dieselcommunity.com Mobile www.dieselbombers.mobi |
Im not worried about license issues... I spent a long time saving up for all the vbulletin major addons ( wasn't easy either! ). Worst case scenerio I would end up buying another license if needed. Really its just one site... divided into two urls for its different features. Marketing reasons is why I want to do this. (the second url is a generic phrase I want to use as the site's blogger community)
No worries of duplicate content... url #1 would just have user generated articles. Url # 2 would just be a blogger community. I am not making a forum section at all with vbulletin-oddly enough its just going to be articles and blogs. Both urls would pull data from the same mysql table. |
Believe it or not I was actually able to get a generic blog domain name that I would like to use exclusively as the site's main blog portal... but I do not wish to rename the site. DDDS looks like this would be really good. Still waiting on Dartho's response.
Thanks for the help diesel ! |
You can still do that with redirects and increase your SEO , How ever you want to do it Good Luck
|
Quote:
|
btw... Dartho... if you ever get a chance... please lend some input on post # 97 if you have any time. Here is the link again that may help with my question. The panel only shows to enter urls... how do I assign different styles to them? Thanks !
:cool: |
yes... are the articles url it will have links that will direct to the blog url and the blogs url will have links that will point back to the articles url. Right now i noticed a small issue of having to sign in twice but ill take care of that later on. Redirects are good but not a best situation for everything depending on the goal in hand. I would think that would be kind of funny of the blog url competes with the articles url. That would be like snickers candy competing with twix... both are owned by mars inc. Wouldn't hurt anything if it did.
|
yes it would ,
Along comes a google bot whats this ohhh a article ... This is an article about ..... the google bot says ill index this sucker in to my database so when people search google this will come up ... a week later a google bot is on your blog site it says whats this ohhh a blog .. This is an article about ..... What the hell this is the same thing Then its either not going to index it , index it and remove the other one or just black list you if the content is different thats fine ...thats how the internet works different content different url's BUT if you have the same content on www.yoursite1.com/blogs and www.yoursite2.com/blog even tho that's not the intent if the same content can be reached with 2 different url's then your screwing yourself |
ok... here's the way its being done...
1. domain#1.com articles only (no forums or blogs) 2. domain#2.com blogs only (no forums or articles) I will create a robots.txt in both urls where only certain directories can be crawled and blogs will only be achieved in url # 2 Still trying to figure out the proper settings and syntax for the DDDS in vb. Quite painstaking aweful since I'm mainly an actionscript guru. I have it htacess protected as of now. when I get more work done to it I will remove the htacess prompt box As soon as I am able to figure out proper DDDS usage it would benefit both to have simular but different styles... only difference would be content and page navagation. Styles will be similar though. |
lol politics and programming... I feel like Winstin Churchill ! lol
|
just forgot.. since the site that is being developed is proptboxed protected... the previous link pertaining to the question would have been kinda null... here is the link to the screenshot of the Different Domain Different Style control panel
It shows to enter the domain and style id but how to I attach a newly created template to a style id ? what procedure? |
I think I will try to have better luck uninstalling the ddds I have and installing DDDSDL instead because that one appears to have an option to select added styles from a dropdown menu... havent had too much time to see if it works out for me.
|
O.k.
|
Does anyone know if this works with 3.8?
|
I can confirm this works with vbulletin 4.0 beta 4!!!!!
|
All times are GMT. The time now is 09:31 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:
|