Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Code Requests
  • Completed Requests
  • [Completed] [ZB] Emotes
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[Completed] [ZB] Emotes
Tweet Topic Started: Nov 5 2009, 07:36 PM (536 Views)
IncomingGank Nov 5 2009, 07:36 PM Post #1
Member Avatar


Posts:
275
Group:
Dedicated
Member
#3,556
Joined:
Nov 5, 2009
Coding language
None
Howdy,

Can someone make me a code that does the same thing as this code ...BTW can you use the same emotes and make the box draggable .

http://s9.invisionfree.com/iFusion/index.php?showtopic=3216

Thanks.
Posted Image
Offline Profile Goto Top
 
Gorgor Nov 5 2009, 08:38 PM Post #2
Hello

Posts:
1,187
Group:
Former Staff
Member
#2,728
Joined:
Apr 2, 2009
Coding language
PHP
Try this:
Code:
 
<script type='text/javascript'>
$(function(){
function addsmiley(code) {
$("#fast-reply dd textarea").val($("#fast-reply dd textarea").val()+code)
}
$("#fast-reply dd textarea").after("<div id='smiles'></div>")
function add(code,image){
$("#smiles").append("<img src='"+image+"' onclick='addsmiley(\""+code+"\")'>")
}
add("Smiley code","Smiley Image URL")

})
</script>

To add more, just keep adding this to the end before the }):
Code:
 
add("Smiley code","Smiley Image URL")
Offline Profile Goto Top
 
IncomingGank Nov 5 2009, 09:19 PM Post #3
Member Avatar


Posts:
275
Group:
Dedicated
Member
#3,556
Joined:
Nov 5, 2009
Coding language
None
Can you make it so it Like grabs all the emotes used like on Choco's Smilies code?
Posted Image
Offline Profile Goto Top
 
Lout Nov 6 2009, 03:26 AM Post #4
Member Avatar


Posts:
402
Group:
Dedicated
Member
#2,400
Joined:
Feb 19, 2009
Why not just use Choco's smiley code?
Posted Image
Offline Profile Goto Top
 
IncomingGank Nov 6 2009, 10:47 PM Post #5
Member Avatar


Posts:
275
Group:
Dedicated
Member
#3,556
Joined:
Nov 5, 2009
Coding language
None
Cause I don't want to have to click smilies everytime.
Posted Image
Offline Profile Goto Top
 
Gorgor Nov 7 2009, 12:49 PM Post #6
Hello

Posts:
1,187
Group:
Former Staff
Member
#2,728
Joined:
Apr 2, 2009
Coding language
PHP
Ok, I'm working on this now. This will use one extra ad credit per topic view, is that ok?
Offline Profile Goto Top
 
IncomingGank Nov 7 2009, 06:25 PM Post #7
Member Avatar


Posts:
275
Group:
Dedicated
Member
#3,556
Joined:
Nov 5, 2009
Coding language
None
Gorgor
Nov 7 2009, 12:49 PM
Ok, I'm working on this now. This will use one extra ad credit per topic view, is that ok?
ad credits doesn't matter.
Posted Image
Offline Profile Goto Top
 
IncomingGank Nov 11 2009, 02:48 AM Post #8
Member Avatar


Posts:
275
Group:
Dedicated
Member
#3,556
Joined:
Nov 5, 2009
Coding language
None
Any updates ?
Posted Image
Offline Profile Goto Top
 
Gorgor Nov 11 2009, 07:16 AM Post #9
Hello

Posts:
1,187
Group:
Former Staff
Member
#2,728
Joined:
Apr 2, 2009
Coding language
PHP
Add this below the board/above the copyright:
Code:
 
<script type='text/javascript'>
$("#fast-reply dd textarea").after("<div id='smiles'></div>")
function add(code,image){
$("#smiles").append("<img src='"+image+"' onclick='smile(\""+code+"\")'>")
}

a = $(".topic-buttons a:first").attr("href")
$.get(a, function(data){
$("#emot_list li img", data).each(function(){
add(this.alt,this.src)
})
})
function smile(code) {
$("#fast-reply dd textarea").val($("#fast-reply dd textarea").val()+code)
}
</script>
Offline Profile Goto Top
 
IncomingGank Nov 12 2009, 01:16 AM Post #10
Member Avatar


Posts:
275
Group:
Dedicated
Member
#3,556
Joined:
Nov 5, 2009
Coding language
None
Can you make it appear on the right side , like the example I provided?
Posted Image
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Completed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 2:27 PM Jul 11
Hosted for free by ZetaBoards · Privacy Policy