vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Random smilies available on new replies. (https://vborg.vbsupport.ru/showthread.php?t=33073)

JTMON 12-09-2001 12:34 PM

Here's one that I'm not even sure how easy/hard it is. One of my members wanted to have it so when you click to reply to a thread, the smilies box on the left will have random ones from your total collection so that they would be encouraged to use different smilies and not have to click the get more button. I would love this hack as increasing the number of smilies in that box breaks my table border so I had to only allow 18 smilies in that box vs. 30

Admin 12-09-2001 12:47 PM

In functions.php replace this:
Code:

        if ($smtotal > 0) {

                $smilies = $DB_site->query("SELECT title, smilietext, smiliepath FROM smilie");

with:
Code:

        if ($smtotal > 0) {

                $smilies = $DB_site->query("SELECT title, smilietext, smiliepath FROM smilie [high]ORDER BY RAND()[/high]");


JTMON 12-09-2001 12:49 PM

Chen, Chen, Chen,



THANK YOU!!!!!!
THANK YOU!!!!!!
THANK YOU!!!!!!

JTMON 12-09-2001 01:10 PM

Working like a Charm!!

Admin 12-09-2001 01:14 PM

No problem. :D

JTMON 12-09-2001 01:17 PM

Are you going to release this? It's a big help to those of us that have 120+ smilies hehehe.......

Kewl 10-29-2003 09:22 AM

I have used this hack forever but now just won't work anymore with 2.3.2 hmmm did i do something

assassingod 10-29-2003 09:42 AM

[QUOTE=Kewl]I have used this hack forever but now just won't work anymore with 2.3.2 hmmm did i do something


All times are GMT. The time now is 07:33 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.01006 seconds
  • Memory Usage 1,717KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete