vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Smilie Info: Smilie Usage in Posts (https://vborg.vbsupport.ru/showthread.php?t=137287)

zompus 01-31-2007 11:47 PM

Installing now, wish me luck. ;)

Trana 02-02-2007 06:27 AM

I have 230k posts and allI get is a white screen when the page finally loads.

Any ideas?

WEBDosser 02-02-2007 06:45 AM

uploaded and working.. ;)

calorie 02-02-2007 08:34 AM

@Trana: That's an awful lot of posts for this mod to handle. Untested, but try replacing:
Code:

$smilie_infos = $db->query_read("SELECT COUNT(t1.postid) AS smiliecount,
                t2.smilietext, t2.smiliepath, t2.title AS smilietitle
        FROM " . TABLE_PREFIX . "post AS t1, " . TABLE_PREFIX . "smilie AS t2
        WHERE t1.allowsmilie = 1
                AND BINARY t1.pagetext LIKE CONCAT('%',REPLACE(REPLACE(t2.smilietext,'%','\%'),'_','\_'),'%')
        GROUP BY BINARY t2.smilietext
        ORDER BY smiliecount DESC
");

With the following to get a measure of the smilies used in about the last 1000 threads.
Code:

cache_ordered_forums(1);
$smilie_numthreads = 0;

if (is_array($vbulletin->forumcache))
{
        foreach ($vbulletin->forumcache AS $smilie_foruminfo)
        {
                $smilie_numthreads += $smilie_foruminfo['threadcount'];
        }
}

// change 1000 in this line to 500 if 1000 is too many
$smilie_cutpoint = max(0, $smilie_numthreads - 1000);

$smilie_infos = $db->query_read("SELECT COUNT(t1.postid) AS smiliecount,
                t2.smilietext, t2.smiliepath, t2.title AS smilietitle
        FROM " . TABLE_PREFIX . "post AS t1, " . TABLE_PREFIX . "smilie AS t2
        WHERE t1.threadid > " . intval($smilie_cutpoint) . "
                AND t1.allowsmilie = 1
                AND BINARY t1.pagetext LIKE CONCAT('%',REPLACE(REPLACE(t2.smilietext,'%','\%'),'_','\_'),'%')
        GROUP BY BINARY t2.smilietext
        ORDER BY smiliecount DESC
");


Dream 04-08-2007 10:06 PM

this is interesting. took 5 minutes to process 130k posts, but it worked.

some smilies show only their title and not the image though.

Shelley_c 04-08-2007 10:34 PM

Quote:

Originally Posted by Rich (Post 1165670)
This may be a stupid question, but what purpose does this mod serve? (Other than showing how many smilies have been used on the site.)

I am not knocking this mod, I am just curious what usage this info would be good for. (I may be missing this mods usage completely.)

It's purpose/usefullness isn't as great as many of the top mods but for me I was curious on which were the most populour smilies used on my board. Plus, being a graphics resource, it serves as an indicator in which emoticons people like due to the amount of times it's used.

thepub 04-09-2007 12:05 AM

some of the smileys do not show in the image box only a name for the smiley (i.e. "wink" instead of ;) ) How can I fix this?

Allan 04-11-2007 08:28 AM

It's possible to make a template version ?

Anne Lise 04-12-2007 08:27 PM

edited

Anne Lise 10-21-2007 05:02 PM

My smilies is just a red X.


All times are GMT. The time now is 05:26 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.00967 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete