Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: 1.00, by JTMON JTMON is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-15-2002 Last Update: Never Installs: 44
 
No support by the author.

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

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!

Show Your Support

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

Comments
  #42  
Old 03-02-2003, 03:50 AM
Jethro
Guest
 
Posts: n/a
Default

Well after wiping the sweat from my brow, praying to the gods it wouldn't explode ... l installed it No problems, except now l have members +++++ing about the screen resizing, guess we have the same problem with varied sized smilies others are reporting. Nice and easy though.
Reply With Quote
  #43  
Old 04-23-2003, 01:12 PM
mwhoob's Avatar
mwhoob mwhoob is offline
 
Join Date: Jan 2002
Location: UAE
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can see screen shot
Reply With Quote
  #44  
Old 04-24-2003, 08:38 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 09:12 AM mwhoob said this in Post #42
can see screen shot
A screenshot is not needed, because it doesn't look any different, besides the fact that instead of the smilies always being in the same positions, they rotate randomly, so there will always be a different smilie in the same spot.
Reply With Quote
  #45  
Old 06-06-2003, 02:21 PM
Leah's Avatar
Leah Leah is offline
 
Join Date: Aug 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
10-08-02 at 10:08 PM snyx said this in Post #35
I have like 500+ smilies (yeah I know, I know) and some are just STOOPID sizes and whatnot.. would there be anyway to have it just randomize certain smilies and exclude others?
I have the same situation here and would love it if someone made that possible.
Reply With Quote
  #46  
Old 06-13-2003, 03:12 PM
Salazar's Avatar
Salazar Salazar is offline
 
Join Date: May 2003
Location: Austria
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack.

[high]* Salazar clicks install[/high]
Reply With Quote
  #47  
Old 06-13-2003, 03:26 PM
Session Session is offline
 
Join Date: Mar 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks install!
Reply With Quote
Reply

Thread Tools

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:27 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.04029 seconds
  • Memory Usage 2,253KB
  • Queries Executed 21 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (7)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