Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by mam14 (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-06-2001 Last Update: Never Installs: 0
 
No support by the author.

I always found the multi-page style of vB where page numbers are displayed at the bottom of the page, rather boring..
So I thought about modifying it & I came across a site running a forign language bb with a somewhat cool way of displaying the pages. Here is a snapshot of it..

Also note that whenever a page is accessed, that cell is highlighted in the table.

Questions is: how can modify vB 2.0.1 so that it looks more like this..
Any Ideas?

Download Now

File Type: (21.4 KB, 400 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-06-2001, 11:20 AM
Guarddog
Guest
 
Posts: n/a
Default

Just create a for loop...
Reply With Quote
  #3  
Old 07-06-2001, 04:05 PM
mam14
Guest
 
Posts: n/a
Default

Thanks for the input Guarddog.. but I have no idea what you're talking about!
Reply With Quote
  #4  
Old 07-07-2001, 10:28 AM
Guarddog
Guest
 
Posts: n/a
Default

I don't use VBulletin, don't have the code, but i've got an idea.

PHP Code:
$normalc ""#Normal color
$highlightc "red"#The highlighted bar color


$output "<table>\n";
for(
$pageloop=1;$pageloop<$totalpages;$pageloop++){
if(
$pageloop == $currentpage)
$output .= "<tr><td bgcolor=\"$highlightc\">$pageloop</td></tr>";
else
$output .= "<tr><td bgcolor=\"$normalc\">$pageloop</td></tr>";
}

$output .= "</table>";
echo 
$output
I don't know if i used the right intergers, it may be like arrays or something: $vars["currentpage"];, i don't know cause i don't have the code...
Reply With Quote
  #5  
Old 07-20-2001, 06:30 PM
Rare Rare is offline
 
Join Date: Dec 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone hack this?
Reply With Quote
  #6  
Old 07-21-2001, 03:27 PM
NanoEntity NanoEntity is offline
 
Join Date: Oct 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow cool, can someone create this hack, looks pritty!
Reply With Quote
  #7  
Old 07-27-2001, 06:47 AM
NanoEntity NanoEntity is offline
 
Join Date: Oct 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BUMP^
Reply With Quote
  #8  
Old 07-27-2001, 08:38 AM
Pie'oh'pah
Guest
 
Posts: n/a
Default

Agreed. Somebody hack this !!
Reply With Quote
  #9  
Old 07-27-2001, 09:03 AM
ThomasP
Guest
 
Posts: n/a
Default

looks awesome! thumbs up
Reply With Quote
  #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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04508 seconds
  • Memory Usage 2,348KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (28)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (4)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete