View Single Post
  #324  
Old 04-15-2005, 05:32 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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] &amp; $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)?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01269 seconds
  • Memory Usage 1,785KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete