Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Reputation Page Split Details »»
Reputation Page Split
Version: 1.0.1, by paul41598 paul41598 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: End-User Options - Version: 3.8.1 Rating:
Released: 09-28-2009 Last Update: 10-11-2009 Installs: 28
Auto-Templates
Code Changes  
No support by the author.

Reputation Comments Page Split (Pagination)

Description:
- This mod allows you to be able to paginate your way through reputation comments! Default VB code only allows you to globally set a limit for all users. So if you chose 50 for example, only 50 comments would show...but not all of them. Booo!! Some people want to see ALL of their comments, just not the last 50

Features:
  • Reputation Page Splitting

Drawbacks
  • This will require 1 change to default code! (It Is The ONLY Way, Sorry!!)

Installation:
1.) Upload Product
2.) Perform File Edit
3.) Enjoy Release

Code Change:

Open usercp.php

Find:
PHP Code:
LIMIT 0" . $vbulletin->options['showuserrates'] 
Replace With:
PHP Code:
LIMIT " . ($limitlower - 1) . "$perpage 

UPDATES:
1.0.1
- Updated code base to include table prefix


Number of results per page is changeable in the admincp!

Download Now

File Type: xml product_reputation_page_split.xml (3.1 KB, 87 views)
File Type: xml product_reputation_page_split_1.0.1.xml (3.1 KB, 116 views)

Screenshots

File Type: jpg rep_split.jpg (51.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
caoducanh9x

Comments
  #2  
Old 09-30-2009, 02:20 PM
theforumist theforumist is offline
 
Join Date: Jul 2008
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mind posting some screenshots of this?
Reply With Quote
  #3  
Old 09-30-2009, 02:46 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There you go
Reply With Quote
  #4  
Old 09-30-2009, 04:50 PM
jboyd jboyd is offline
 
Join Date: Nov 2008
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this Hack but it could be better written.

The SQL query done by this hack could take into account that most people have a Prefix on thier vb DB. After installing the hack as it comes i got a DB error because it is looking for a table reputation that does not exist in my DB. The use of Table_Prefix is clearly explained in the VBulletin 3 manual.

to fix read this link http://www.vbulletin.com/docs/html/c...ards_sql_query
or hard code your table names in the XML file so reputation would look like ??_reputation. with ?? being your table prefix.

I made some other minor changes but they where more because or style of writing code is different not because of errors in your code.
Reply With Quote
  #5  
Old 10-01-2009, 05:57 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ajax or does every new page require a page reload?
Reply With Quote
  #6  
Old 10-03-2009, 10:24 AM
AcidX's Avatar
AcidX AcidX is offline
 
Join Date: Jan 2006
Location: Macedonia
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database error.

Quote:
Originally Posted by furst View Post
Any ajax or does every new page require a page reload?
Good question.
Reply With Quote
  #7  
Old 10-04-2009, 06:12 AM
infnity8x3 infnity8x3 is offline
 
Join Date: Apr 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edited the xml to include my tables prefix. Works

Thanks!
Reply With Quote
  #8  
Old 10-05-2009, 02:10 AM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

which parts exactly do you edit? say my prefix is called x_y
Reply With Quote
  #9  
Old 10-05-2009, 05:01 AM
Rean Rean is offline
 
Join Date: Sep 2009
Location: Indonesia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database error!

Edit the xml file:
Code:
$count = $db->query_first("
SELECT
count(postid) AS count
FROM vbulletin_reputation
WHERE vbulletin_reputation.userid = " . $vbulletin->userinfo['userid'] . "
");
change the red part with your forum's table prefix..
reinstall this product..
Reply With Quote
  #10  
Old 10-05-2009, 05:04 AM
infnity8x3 infnity8x3 is offline
 
Join Date: Apr 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
which parts exactly do you edit? say my prefix is called x_y
Open xml file in text editor find

PHP Code:
$count $db->query_first("
SELECT
count(postid) AS count
FROM reputation
WHERE reputation.userid = " 
$vbulletin->userinfo['userid'] . "
"
); 
change to

PHP Code:
$count $db->query_first("
SELECT
count(postid) AS count
FROM x_yreputation
WHERE x_yreputation.userid = " 
$vbulletin->userinfo['userid'] . "
"
); 
Basically add your prefix in front the 2 instances of reputation, after FROM and WHERE.

OOPS must of posted at the same time.
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 02:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06236 seconds
  • Memory Usage 2,333KB
  • 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
  • (1)bbcode_code
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete