![]() |
Random smilies in posts/reply
I edited the original 3.0.7 code, by BluPheonix, a bit to comply with 3.5.
Tetsed it with my 3.5 site and it works fine. In includes/functions_editor.php find: Code:
$smilies = $vbulletin->db->query_read(" Code:
$smilies = $vbulletin->db->query_read(" |
I want to do this so bad, but i'd hate to have to edit files...
[high]* jugo goes to find a way to trick it into a hook.... [/high] [high]* jugo found it!!! [/high] I hope I'm not stepping on toes here, but i released the plugin version here: https://vborg.vbsupport.ru/showthread.php?t=99435 :ermm: |
OUCH!!
*sees toes get crushed* :P |
Installed!
|
Dont forget to click INSTALL pls :D
|
find the code, where to change it, you did not say where to change or add
' |
Quote:
Change To:- PHP Code:
|
Hehe..sorry, will add it in the main post...
|
worked perfectly........thanks. hotwheels clicks *installs*
|
I will give this one a try
|
that worked for me too , where nothing else did
|
Could there be a way to exclude certain categories of smilies by user preference? For example we have dancing bananas, and it's either a love/hate thing - I'd love to be able to let the members screen what smilies go in the random rotation by category...
|
Welp.. working on 3.5.3 as for some reason all '1' do not rotate mine.. but this did the trick.. just hate that its a file edit..
good job and thanks.. |
works like a charm;)
:clicks install:: |
Quote:
|
anyway to exclude some smilie categories?
I have some that are HUGE (and in a HUGE smilie category). Don't want them showing up suddenly and stretching the page. :/ :eek: |
Quote:
thats the same problem i am having. i need to exclude the big smilies |
Yip. Create a second smilie category named "Big smilies" or something, and move the large smilies to it, then put:
WHERE smilie.imagecategoryid =1 above the ORDER BY line in the query, that will select smilies only from the default smilie category. Of course that means the big smilies will only be accessible via viewing all of them. Also I'm not one to critisise others, especially on matters such as php file hacking, but: This is a tiny tiny file edit. I know everyone has become ultra sensitive about file hacks since the plugin system came out, but this is a 10 second job. Upgrade, Re-replace it. If you clicked install it'll show up in your profile so you can quickly find it again. |
Where do I find this in the Admin CP? I can't seem to locate it. :(
In includes/functions_editor.php |
Easy to overwrite, nice job ;)
|
quick and easy.
installed on vb 3.5.3 |
Quote:
This also works with 3.6 Gold. |
yes, it works perfectly on 3.6
|
GREAT - very nice thanx
Jacquii. |
Great! Works in 3.6.4 as well!
Thanx, Jacquii. |
Any way to do this with a plugin ?
|
Works on 3.6.5.
Just replace the last line of the code. |
Works with 3.6.8
Replaced this part of the code Code:
With this Code:
Works like a charm :) |
Quote:
|
Yea. Seems to work, you just have to reapply the change after upgrading, which sucks. lol
|
Quote:
|
Quote:
|
All times are GMT. The time now is 02:00 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|