View Single Post
  #10  
Old 07-27-2001, 04:38 PM
bad_madman's Avatar
bad_madman bad_madman is offline
 
Join Date: Oct 2001
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(screenshot below) / vB 2.01

1. create new template called numbernav_own
$firstpage_atag$doublearr1$endfirstprevtag $prevpage_atag$singlearr1$endfirstprevtag $pagenumbers $nextpage_atag$singlearr2$endlastnexttag $lastpage_atag$doublearr2$endlastnexttag
2. create new template called numbernav_pages_own (the content beginning and ending with a blank)
$numbernav_atag$curpage$endpagetag

3. edit FORUMDISPLAY.PHP

find:
PHP Code:
$shorturl="forumdisplay.php3?s=$session[sessionhash]&forumid=$forumid&daysprune=$daysprune&sortorder=$sortorder&sortfield=$sortfield&perpage=$perpage"
add below:
PHP Code:
$doublearr1='«';$doublearr2='»';$singlearr1='‹';$singlearr2='›'
find:
PHP Code:
$prevpage_atag=''
add below:
PHP Code:
$doublearr1='';
$singlearr1=''
find:
PHP Code:
$firstpage_atag="<a href=\"$shorturl&pagenumber=1\">"
replace with:
PHP Code:
$firstpage_atag="<a class=\"pageNum\" href=\"$shorturl&pagenumber=1\">"
find:
PHP Code:
$prevpage_atag="<a href=\"$shorturl&pagenumber=".($pagenumber-1)."\">"
replace with:
PHP Code:
$prevpage_atag="<a class=\"pageNum\" href=\"$shorturl&pagenumber=".($pagenumber-1)."\">"
find:
PHP Code:
$nextpage_atag=''
add below:
PHP Code:
$doublearr2='';
$singlearr2=''
find:
PHP Code:
$lastpage_atag="<a href=\"$shorturl&pagenumber=$totalpages\">"
replace with:
PHP Code:
$lastpage_atag="<a class=\"pageNum\" href=\"$shorturl&pagenumber=$totalpages\">"
find:
PHP Code:
$nextpage_atag="<a href=\"$shorturl&pagenumber=".($pagenumber+1)."\">"
replace with:
PHP Code:
$nextpage_atag="<a class=\"pageNum\" href=\"$shorturl&pagenumber=".($pagenumber+1)."\">"
find:
PHP Code:
$numbernav_atag=""
replace with:
PHP Code:
$numbernav_atag='<span class="pageNum">'
find:
PHP Code:
$endpagetag ''
replace with:
PHP Code:
$endpagetag '</span>'
find:
PHP Code:
eval("\$pagenumbers .= \"".gettemplate('numbernav_pages')."\";"); 
replace with:
PHP Code:
eval("\$pagenumbers .= \"".gettemplate('numbernav_pages_own')."\";"); 
find:
PHP Code:
$numbernav_atag="<a href=\"$shorturl&pagenumber=$curpage\">"
replace with:
PHP Code:
$numbernav_atag="<a class=\"pageNum\"  href=\"$shorturl&pagenumber=$curpage\">"
find:
PHP Code:
eval("\$pagenumbers .= \"".gettemplate('numbernav_pages')."\";"); 
replace with:
PHP Code:
eval("\$pagenumbers .= \"".gettemplate('numbernav_pages_own')."\";"); 
find:
PHP Code:
eval("\$pagenav = \"".gettemplate('numbernav')."\";"); 
replace with:
PHP Code:
eval("\$pagenav = \"".gettemplate('numbernav_own')."\";"); 
and last:
add in headinclude template in the Style Sheets section ( <style type="text/css"> ):
PHP Code:
.pageNum {color#ffffff; background-color: #808080; border-color: #000000; border-style: solid; border-width: 1px; margin: 0px; padding: 0px; padding-left: 4px; padding-right: 4px; width: 1em;}
a.pageNum {color#0000ff; background-color: #e0e0e0;}
a.pageNum:hover {color#ffffff; background-color: #a0a0a0;} 
cu
Madman
Attached Files
File Type: (21.4 KB, 121 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01345 seconds
  • Memory Usage 1,864KB
  • Queries Executed 12 (?)
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
  • (27)bbcode_php
  • (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_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete