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
  #22  
Old 07-28-2001, 07:37 AM
mam14
Guest
 
Posts: n/a
Default

can someone wrap this up and create a good English language instruction file??

Thanks for the great work!
Reply With Quote
  #23  
Old 07-28-2001, 09:25 AM
mam14
Guest
 
Posts: n/a
Default

Thanks Bad_Madman..
But I did exactly what you said and nothing changed! The thread pages are still exactly the same as before.. Is there anything else I should do?
Reply With Quote
  #24  
Old 07-28-2001, 11:26 AM
Pie'oh'pah
Guest
 
Posts: n/a
Default

Step 1. (skip if exists)

create new template called numbernav_own
Code:
$firstpage_atag$doublearr1$endfirstprevtag $prevpage_atag$singlearr1$endfirstprevtag $pagenumbers $nextpage_atag$singlearr2$endlastnexttag $lastpage_atag$doublearr2$endlastnexttag
create new template called numbernav_pages_own
Code:
$numbernav_atag$curpage$endpagetag


Step 2. edit showthread.php

find:
PHP Code:
$shorturl="showthread.php3?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage"
add below:
PHP Code:
$doublearr1='«';$doublearr2='»';$singlearr1='‹';$singlearr2='›'

find:
PHP Code:
$prevpage_atag=''
add below:
PHP Code:
$doublearr1='';
$singlearr1=''

find:
PHP Code:
$nextpage_atag=''
add below:
PHP Code:
$doublearr2='';
$singlearr2=''

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')."\";"); 

Step3. Find and replace all
Code:
class=\"thtcolor\"
with:
Code:
class=\"pageNum\"



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;} 

That should do it. Thanx again to Madman!
Reply With Quote
  #25  
Old 07-28-2001, 02:12 PM
mam14
Guest
 
Posts: n/a
Default

This is great guys.. I got it working..
One thing.. Pie'oh'pah..why is the hover function much slower in the forumdisplay?
Reply With Quote
  #26  
Old 07-28-2001, 02:51 PM
Pie'oh'pah
Guest
 
Posts: n/a
Default

Dude,

i haven't done this hack! Therefore I won't take credit

If you would have provided a link to your board, I could have checked though.

If you took a look at my site (unreal-alliance.de) then its probably because of the shockwave applets running. This slows stuff up...

Anyways, madman needs to take a look. I just followed your request by making the instructions somewhat easier to understand.

-Pie
Reply With Quote
  #27  
Old 07-29-2001, 08:36 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

" $numbernav_atag$curpage$endpagetag " (without ")

I don't understand what do you mean by (without ")

Can someone clear this please
Reply With Quote
  #28  
Old 07-29-2001, 08:52 PM
bad_madman's Avatar
bad_madman bad_madman is offline
 
Join Date: Oct 2001
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Remi
" $numbernav_atag$curpage$endpagetag " (without ")

I don't understand what do you mean by (without ")

Can someone clear this please
Reply With Quote
  #29  
Old 07-29-2001, 08:58 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
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 04:42 AM.


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.04223 seconds
  • Memory Usage 2,323KB
  • 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
  • (4)bbcode_code
  • (19)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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (9)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