OK, I eventualy got everything working both on my localhost
and my live site. Looks well spanky.
I'm at the stage now where I'm tweaking things, so I decided to have a crack at the image paths. This checks the array $phrasegroups[] for 'vbindex' and prepends $vboptions[bburl] to all the image folder URLs in $stylevar['imgdir_xxx'] if it's found.
This can be done in forums/global.php, around line 377:
PHP Code:
// #############################################################################
// get style variables
$stylevar = fetch_stylevars($style, $bbuserinfo);
Add BELOW that:
PHP Code:
##///////////////////////////////////////////##
// vBIndex Image Folder Fix by ScruffyDeluxe //
##///////////////////////////////////////////##
if(in_array('vbindex',$phrasegroups))
{
/*
Array $vbi_imagefolders[] assumes you have subfolders in forums/images with these names. Season to taste.
*/
$vbi_imagefolders = array('attach','buttons','editor','misc','polls','rating','reputation','statusicon');
for($go = 0;$go < count($vbi_imagefolders);$go ++)
{
$stylevar['imgdir_'.$vbi_imagefolders[$go]] = $vboptions['bburl'].'/'.$stylevar['imgdir_'.$vbi_imagefolders[$go]];
}
}
## // End
EDIT: vB's code box has for some reason inserted extraneous spaces in the above code around 'statusicon'. Use your noggin and strip them out
You shouldn't have to hack anything else for this to work, but unfortunately, this only seems to work on the header and navbar, and not the other vBIndex templates. Any ideas?