vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Extra Smilies in Quick Reply - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Extra Smilies in Quick Reply (29th Apr 08 at 7:16pm UTC)
This code will allow you to add extra smiles to the quick reply smilies. Please note that you have to have the smilies added in the Image => Extra smilies.

Edit as below:

l: [
    ["http://virtualforums.co.uk/images/smiley.gif",": P"],
    ["http://virtualforums.co.uk/images/smiley.gif",": P"],
    ["http://virtualforums.co.uk/images/smiley.gif",": P"]
],


l: [
    ["http://virtualforums.co.uk/images/smiley.gif",": P"],
    ["http://virtualforums.co.uk/images/smiley.gif",": P"],
    ["http://virtualforums.co.uk/images/smiley.gif",":P"],
    ["http://virtualforums.co.uk/images/smiley.gif",": P"],

    ["http://virtualforums.co.uk/images/smiley.gif",": P"]
],


Remember the last line doesn't have a comma. Also, It's link to the smilie first, and then the 'code'. The top red part is the one to edit. The 2nd one is the editted one, with more smilies added.

<script>
/*Extra Smilies in Quick Reply
Created By Wrighty
Do Not: Rip, Repost or Claim*/

var s = {

    l: [
        ["http://virtualforums.co.uk/images/smiley.gif",": P"],
        ["http://virtualforums.co.uk/images/smiley.gif",": P"],
        ["http://virtualforums.co.uk/images/smiley.gif",": P"]
    ],

    h: get('quick_reply_ubbc','id').getElementsByTagName('center')[1],
    do: function(){
        if(get('quick_reply_ubbc','id')){
            this.h.appendChild(document.createElement('br'));
            this.h.appendChild(document.createElement('br'));
            for(a=0;a<this.l.length;a++){
                var i = document.createElement('img');
                i.src = this.l[a][0];
                var x = document.createElement('a');
                x.onclick = "add_ubbc('"+this.l[a][1]+"')";
                x.style.cssText = "vertical-align: bottom; cursor: pointer;";
                x.appendChild(i);
                this.h.appendChild(x);
            }
        }
    }
};
s.do();
</script>


Global Footer
 Printable View

All times are GMT+0 :: The current time is 5:19am
Page generated in 0.1873 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums