I just finished installing this on my board and it is a great mod!
I only had one problem with the install that you may want to evaluate...
In the install script there is line for "Modifying file: admincp/index.php"
In my install I got an error saying...
Quote:
Can not complete change to admincp/index.php - step 200 as I can not find the text to replace. You will have to manually complete this step. [click here for manual step step 200]
|
I looked at the directions and it said to open admin/index.php and find
Code:
// *************************************************
if (can_administer('canadminstyles'))
and replace above with:
Code:
// === GAL step 200 ===
$printhr = true;
construct_nav_option($vbphrase['GAL_display'], 'GAL_admin.php');
construct_nav_option($vbphrase['GAL_add_new'], 'GAL_admin.php?do=add');
construct_nav_option($vbphrase['GAL_settings'], 'GAL_admin.php?do=settings');
construct_nav_option($vbphrase['GAL_cats'], 'GAL_admin.php?do=cats');
construct_nav_option($vbphrase['GAL_cat_add'], 'GAL_admin.php?do=addcat');
construct_nav_group($vbphrase['GAL_CP']);
// === /GAL step 200 ===
// *************************************************
if (can_administer('canadminstyles'))
In my file I had the following:
Code:
// *************************************************
$printhr = false;
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search', '<br />');
construct_nav_option($vbphrase['replacement_variable_manager'], 'replacement.php?do=modify', '<br />');
construct_nav_option($vbphrase['download_upload_styles'], 'template.php?do=files', '<br />');
construct_nav_option($vbphrase['find_updated_templates'], 'template.php?do=findupdates', '<br />');
construct_nav_group("$vbphrase[styles] & $vbphrase[templates]", '<hr />');
}
// ***
So I updated my code by replacing the line:
Code:
// *************************************************
$printhr = false;
if (can_administer('canadminstyles'))
with
Code:
// *************************************************
$printhr = false;
// === GAL step 200 ===
$printhr = true;
construct_nav_option($vbphrase['GAL_display'], 'GAL_admin.php');
construct_nav_option($vbphrase['GAL_add_new'], 'GAL_admin.php?do=add');
construct_nav_option($vbphrase['GAL_settings'], 'GAL_admin.php?do=settings');
construct_nav_option($vbphrase['GAL_cats'], 'GAL_admin.php?do=cats');
construct_nav_option($vbphrase['GAL_cat_add'], 'GAL_admin.php?do=addcat');
construct_nav_group($vbphrase['GAL_CP']);
// === /GAL step 200 ===
// *************************************************
if (can_administer('canadminstyles'))
As for my board... I am running vB 3.0.7. and the only other Mod I have installed is vBAdvanced. The replacement code seems to work however with one minor thing I would like changed if possible...
If your keyword is used as the title for a link such as "
Click here for link on vBulletin" and you use
vBulletin as a replacement term then what happens is "
Click here for link on" goes to the initial link while "
vBulletin" goes to a different link as defined by this mod.
Is there any way to have the mod detect that text should not be between a
[url= some url ]Click here for link on vBulletin
[ /url]?
EDIT: ALSO whay aren't the font colors working on this board (vBulletin.org)?