Quote:
Originally Posted by salami1_1
I really would like to have blog like news included on:
http://www.samsunguniverse.com/index.php
under 'Samsung news' and then not in vbb style. But I still want the messages there also to appear in the forum as it does now.
Is there anyway to do this? I know some php code but divinginto vbb codes.
|
There is actually a way built into news.php to do something similar to this. First, you would have to make your own template so that it looks the way you want. Let's call it
news_threadbit_main. You might have
newsdisplay_main also (but this might take you some time).
In your
.htaccess file, add new rewrite rule. If the rewrite engine is not yet on just say "RewriteEngine On"
In this case, your new rule would be:
Code:
RewriteRule ^index.php$ news.php?do=main&f={FORUMID} [L,QSA]
Create a plugin at
cache_templates:
PHP Code:
if ((THIS_SCRIPT == 'newsdisplay') AND (MAINNEWS == true))
{
$globaltemplates[] = 'news_threadbit_main';
$globaltemplates[] = 'newsdisplay_main';
}
Create a plugin at
global_start:
PHP Code:
if ((THIS_SCRIPT == 'newsdisplay') AND (MAINNEWS == true))
{
$vbulletin->templatecache['news_threadbit'] = $vbulletin->templatecache['news_threadbit_main'];
$vbulletin->templatecache['NEWSDISPLAY'] = $vbulletin->templatecache['newsdisplay_main'];
}
Hope that helps!