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
  #12  
Old 01-16-2002, 01:49 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JTMON
Hey buddy,

Your claim to fame comes from assaulting innocent soda machines to get free drinks leased:
oh, my secret shame - who told you!!
Reply With Quote
  #13  
Old 01-17-2002, 11:34 AM
Arathorn Arathorn is offline
 
Join Date: Nov 2001
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be difficult to a 2nd smiley box? i.e. leave the current one for often used smilies, and have another one for random smilies.
Reply With Quote
  #14  
Old 01-17-2002, 12:24 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good idea
Reply With Quote
  #15  
Old 01-17-2002, 07:49 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It'd be nice to be able to weigh the smilies as well. Some smilies would have a greater chance of coming up than others. This would allow some to always be there, and others to never be there...very useful if you have irregularly sized smilies
Reply With Quote
  #16  
Old 01-27-2002, 06:39 PM
NYI Fan's Avatar
NYI Fan NYI Fan is offline
 
Join Date: Oct 2001
Location: Long Island, NY
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
quick and easy, as always, and soemthing my users asked for more than a few times!

The idea about giving the smilies weight is great! Kind of give them higher rank for X number of uses....
Reply With Quote
  #17  
Old 01-27-2002, 06:54 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DarkReaper
It'd be nice to be able to weigh the smilies as well. Some smilies would have a greater chance of coming up than others. This would allow some to always be there, and others to never be there...very useful if you have irregularly sized smilies
id agree with this
Reply With Quote
  #18  
Old 01-30-2002, 11:32 PM
Snake~eyes Snake~eyes is offline
 
Join Date: Oct 2001
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this hack looks very cool

I was wondering if there'd be a way to maybe insert an if statement so it would just use 15x15pixel smiles for this. Because if i use some of my bigger ones it'd mess up the tables.

help appreciated.

thx
Reply With Quote
  #19  
Old 02-17-2002, 06:48 PM
tanster's Avatar
tanster tanster is offline
 
Join Date: Feb 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this, and it was sooo easy!

Thank you!
Jennie
Reply With Quote
  #20  
Old 02-20-2002, 08:51 PM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have one question Firefly, does it work with 2.2.2? Please let me know! I have lots of smilies showing out of like 100 LOL, so this would be a great hack to add on my site.
Reply With Quote
  #21  
Old 02-21-2002, 07:54 AM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know??
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 03:53 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.08989 seconds
  • Memory Usage 2,294KB
  • Queries Executed 25 (?)
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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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