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