Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2009, 12:32 PM
WNM07 WNM07 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Smilies

Before I updated to 3.8.1, my smilies in quick reply would rotate several times per day. Now they are stagnant and they only time they rotate is when I delete a smilie. Any ideas?
Reply With Quote
  #2  
Old 02-06-2009, 04:54 PM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm pretty sure they rotate if all of their display orders are set to '1'. Unless that got changed with 3.8....
Reply With Quote
  #3  
Old 02-06-2009, 05:10 PM
WNM07 WNM07 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dismas View Post
I'm pretty sure they rotate if all of their display orders are set to '1'. Unless that got changed with 3.8....
thay are all set to 1, but are not changing which is my dilemma! Thanks for the reply.
Reply With Quote
  #4  
Old 02-06-2009, 05:16 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look at includes/functions_editor.php at the query around line 588 (it says // query smilies there) and compare the file from your old version and the new version. See how the ORDER part has changed.
Reply With Quote
  #5  
Old 02-06-2009, 05:33 PM
WNM07 WNM07 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Take a look at includes/functions_editor.php at the query around line 588 (it says // query smilies there) and compare the file from your old version and the new version. See how the ORDER part has changed.
thank you very much!

--------------- Added [DATE]1233949123[/DATE] at [TIME]1233949123[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
Take a look at includes/functions_editor.php at the query around line 588 (it says // query smilies there) and compare the file from your old version and the new version. See how the ORDER part has changed.
it says:

// query smilies
$smilies = $vbulletin->db->query_read_slave("
SELECT smilieid, smilietext, smiliepath, smilie.title,
imagecategory.title AS category
FROM " . TABLE_PREFIX . "smilie AS smilie
LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
");

I think I overwrote the original file. Does this look right? Thanks again!

--------------- Added [DATE]1233949279[/DATE] at [TIME]1233949279[/TIME] ---------------

Since it's happening in the clickable smilie area below the quick reply bar, I wonder if this is the area I should be looking at?

// clickable smilie box
if ($vbulletin->options['smtotal'])
{
$vbulletin->db->data_seek($smilies, 0);
$i = 0;
$bits = array();
while ($smilie = $vbulletin->db->fetch_array($smilies) AND $i++ < $vbulletin->options['smtotal'])
{
$smiliehtml = "<img src=\"$smilie[smiliepath]\" id=\"{$editorid}_smilie_$smilie[smilieid]\" alt=\"" . htmlspecialchars_uni($smilie['smilietext']) . "\" title=\"" . htmlspecialchars_uni($smilie['title']) . "\" border=\"0\" class=\"inlineimg\" />";
eval('$bits[] = "' . fetch_template('editor_smilie') . '";');

if (sizeof($bits) == $vbulletin->options['smcolumns'])
{
$smiliecells = implode('', $bits);
eval('$smiliebits .= "' . fetch_template('editor_smiliebox_row') . '";');
$bits = array();
}
}
Reply With Quote
  #6  
Old 02-06-2009, 05:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should be able to download an old copy from vb.com of whatever version you were running and compare the query then. You need to compare the area where the query is made, not where it is spit out in the template.
Reply With Quote
  #7  
Old 02-06-2009, 07:00 PM
WNM07 WNM07 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You should be able to download an old copy from vb.com of whatever version you were running and compare the query then. You need to compare the area where the query is made, not where it is spit out in the template.
Both files completely the same. Back to square one.
Reply With Quote
  #8  
Old 05-26-2009, 11:55 PM
eglyntine eglyntine is offline
 
Join Date: Jun 2008
Location: Nevada
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know this post is pretty old but I just upgraded to 3.8.2 and noticed that my smilies weren't rotating like they should so I went searching and found this article. Of course it didn't have the answer but I figured it out so I thought I would pass it on for those of you that are still having the problem.

In includes/functions_editor.php find:

Code:
// query smilies
            $smilies = $vbulletin->db->query_read_slave("
                SELECT smilieid, smilietext, smiliepath, smilie.title,
                    imagecategory.title AS category
                FROM " . TABLE_PREFIX . "smilie AS smilie
                LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
                ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
            ");
Replace with:

Code:
// query smilies
            $smilies = $vbulletin->db->query_read_slave("
                SELECT smilieid, smilietext, smiliepath, smilie.title,
                    imagecategory.title AS category
                FROM " . TABLE_PREFIX . "smilie AS smilie
                LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
                ORDER BY rand()
            ");
It works like it should now.
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 12:50 AM.


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.06494 seconds
  • Memory Usage 2,235KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete