vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Random Smilies in box on New Thread/Reply (https://vborg.vbsupport.ru/showthread.php?t=34161)

JTMON 01-15-2002 10:00 PM

Ok first, 100% of the credit for this goes to FireFly aka Chen:D

I had requested this and he answered. I have tested this on 2.2.0 through 2.2.5 and with vbPortal and it has worked great. This was my original question:

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

I posted this here so I could have it on my install list and for anyone else wanting this.

The file you edit is admin/functions.php

Replace:

Code:

if ($smtotal > 0) {

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

With this:

Code:

if ($smtotal > 0) {

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

Once again, my thanks to FireFly and all the Hackers!

Martz 01-16-2002 08:40 AM

Great little hack, a lot out for not much in. Just how I like it. :)

fonzerelli_79 01-16-2002 12:30 PM

works great

definately reccomend this hack to other members

cheers JTMON (and of course firefly)

Rose 01-16-2002 12:47 PM

Quote:

Parse error: parse error in /home/simpson/public_html/admin/functions.php on line 810

Fatal error: Call to undefined function: vbdate() in /home/simpson/public_html/admin/sessions.php on line 357


Awww. :( I changed the line of code in my admin/functions.php and this is what happens when I try to bring up the board. ^

JTMON 01-16-2002 12:51 PM

Make sure there are no extra spaces and that it is exactly like above. I can't see this causing issues any other way since it's so simple but then again, I'm no php guru like FireFly:D Line 810 is way before this addition.

Admin 01-16-2002 01:11 PM

Thanks for posting this for me JTMON. :)

JTMON 01-16-2002 01:23 PM

You should repost it so it doesn't say I released it:p

I had to rehack everything because I put vbPortal, upgraded to 2.2.1, changed to php vs. php3 and moved my forums into a forums subfolder all in one upgrade! Worked though, but this one wasn't on my install list:D

Bald Bouncer 01-16-2002 01:29 PM

Thanks for that, Great idea and works really well.

fonzerelli_79 01-16-2002 01:33 PM

Quote:

Originally posted by JTMON
You should repost it so it doesn't say I released it:p

or repost it to say that i released it - lol :pleased:

JTMON 01-16-2002 01:43 PM

Hey buddy,

Your claim to fame comes from assaulting innocent soda machines to get free drinks :pleased:


All times are GMT. The time now is 03:41 PM.

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.01097 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)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