Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX]ChangUonDyU - Advanced Statistics Details »»
[AJAX]ChangUonDyU - Advanced Statistics
Version: 2.2, by spitb19 spitb19 is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 3.7.2 Rating:
Released: 09-05-2008 Last Update: 09-05-2008 Installs: 32
Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

ChangUonDyU - Advanced Statistics
version 2.2
AJAX

FEATURES
-Latest Posts
-Top (Newest member, top poster, top thanked, most viewed threads, most popular forum)
-Latest posts for a specific forum (by Menu)
-Choose Results to view (by Menu)
-Auto refresh (set second in vb options)
-Include Permission with group
-Set forum not allow to show
and many options

Set
Latest posts for a specific forum
-In
Latest posts for a specific forum text area
enter by grammar
Separate each option with a new-line. Separate title and forumids with |. Separate forum ids with commas
example:
Quote:
Oder1 title|1,2,5
Oder2 title|21,15,7
Oder3 title|14

Set list of result
List of result (separate with commas)
not null
example: 10,20,50,100
If you don;t want user choose result set 1 value,
example: 10

INSTALL

-Import Product.
-Edit template FORUMHOME
Find
PHP Code:
$navbar 
Add below
PHP Code:
$changtop 
P/S: this stat can show on all page
if you want to show on all page, add $changtop in navbar, header or footer template

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 09-15-2008, 11:26 PM
goyo goyo is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems like a more flexible concept compared Cyb's statistics. Are you planning to update this plugin ? Latest blogs option would be great...
Reply With Quote
  #13  
Old 09-16-2008, 01:30 AM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack! Thank you!
Reply With Quote
  #14  
Old 09-17-2008, 12:03 PM
vietfancy's Avatar
vietfancy vietfancy is offline
 
Join Date: Feb 2005
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
-Top (Newest member, top poster, top thanked, most viewed threads, most popular forum)
This can't be disable bro. I tried to disable this, and its still showing.
Reply With Quote
  #15  
Old 09-18-2008, 03:07 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Few fix for validation:
Code:
<form action="" name="getmenu">
Code:
<script language="JavaScript" type="text/javascript">
<!--
function hshow()
{
if (hsb.handler.readyState == 4 && hsb.handler.status == 200)
	{
	document.getElementById('changcontent').innerHTML = hsb.handler.responseText;
document.getElementById('tdtprogress').style.display="none";
	}
}
function changstats()
{
document.getElementById('tdtprogress').style.display="inline";
  hsb = new vB_AJAX_Handler(true);
  hsb.onreadystatechange(hshow);
  fcmenu = document.getmenu.chooseview.value;
  fcresult = document.getmenu.choosekq.value;
  hsb.send('ajax.php?do='+fcmenu+'&result='+fcresult);
}
changstats();
<if condition="$vboptions[top_autorefresh] > 0">
autoref=setInterval("changstats()", 1000*$vboptions[top_autorefresh]);
</if>
//-->
</script>
Code:
<br />
Reply With Quote
  #16  
Old 09-19-2008, 12:04 AM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You forgot cache templates: changuondyu_advancedtop, changuondyu_choosekq, changuondyu_chooseview.
Reply With Quote
  #17  
Old 09-19-2008, 07:25 AM
spitb19 spitb19 is offline
 
Join Date: Nov 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

parse_templates ~ cache_templates

@vietfancy: i don't know. i tested well :-?? (ne^u' la` nguoi` Vietnam thi` lien he^. Ym cho tje^n. )
Reply With Quote
  #18  
Old 09-19-2008, 02:44 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did so...
Reply With Quote
  #19  
Old 09-23-2008, 03:45 AM
z3rol0ve z3rol0ve is offline
 
Join Date: Dec 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got a problem that if the nickname has ' sign or \ sign post the new post, the statistic won't work. I used firebug, a addon of firefox and found out the code went wrong at
PHP Code:
Invalid SQL:

SELECT userid,usergroupid,displaygroupid FROM user WHERE username 'p3'hi3u'' LIMIT 1;

MySQL Error   You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL

 server version 
for the right syntax to use near 'hi3u'' LIMIT 1' at line 1 
so I try to fix it.

Go to plugin Chang - Advanced Top - Get Data
find
PHP Code:
$qinfo $db->query_first("SELECT userid,usergroupid,displaygroupid FROM "TABLE_PREFIX ."user WHERE username = '$clastposter' LIMIT 1"); 
replace by
PHP Code:
$qinfo $db->query_first("SELECT userid,usergroupid,displaygroupid FROM "TABLE_PREFIX ."user WHERE username = '".addslashes($clastposter)."' LIMIT 1"); 
find
PHP Code:
$clastposter htmlspecialchars($clastposter); 
replace by
PHP Code:
// $clastposter = htmlspecialchars($clastposter); 
Reply With Quote
  #20  
Old 10-14-2008, 12:34 AM
qbn720's Avatar
qbn720 qbn720 is offline
 
Join Date: Mar 2007
Location: New York
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What should I do if I would like this to appear on my vB Advanced Home Page? By adding "$changtop", it really doesn't do anything. It seems to work on other pages, by any chance is there a method around this?

Edit: Also, I was wondering if you guys could include "Latest Blogs" as an item, but I mean that'll have to wait until another upgrade or when you guys fine-tune this product.
Reply With Quote
  #21  
Old 11-13-2008, 02:14 PM
Neo_obs Neo_obs is offline
 
Join Date: Mar 2006
Location: Disneyland, CA
Posts: 363
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can we get the cache templates fixed?

Also I have an blank drop down... do I have to put custom forums?

ok I created a new plugin

Hook location: Cache_templates

Title: Chang - Advanced Top - Cache Templates

Execution Order: 5

PHP Code:
PHP Code:
$globaltemplates array_merge($globaltemplates, array('changuondyu_advancedtop''changuondyu_alltop''changuondyu_choosekq''changuondyu_chooseview''changuondyu_latestpost''changuondyu_latestpostinforum''changuondyu_latestpost_bit''changuondyu_mostpopular''changuondyu_mostview''changuondyu_newestmember''changuondyu_topposter''changuondyu_topthank')); 
How can I make it so it will only cache them if the hack in enabled?
Answered my own question and added this code to all plugin's
PHP Code:
if ($vbulletin->options['top_turn'])
        {
###PUT ORIGINAL CODE HERE###

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 09:01 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.05430 seconds
  • Memory Usage 2,324KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (9)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete