Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Topic Icons; Add icons to your topic titles
Topic Started: Dec 20 2010, 02:01 AM (9,087 Views)
Quozzo
Member Avatar
Only in death does duty end
[ *  *  *  *  * ]
The topic starter can add an icon to the topic title

Preview - You can start a topic too :D

Place it Below the Board
Code:
 
<script type="text/javascript">
var topicicon = new Array(); t=0;
topicicon[t++] = new Array("BA","http://z5.ifrm.com/5917/152/0/f5022841/bloodangelsfavi.png");
topicicon[t++] = new Array("DA","http://z5.ifrm.com/5917/152/0/f5022844/DarkAngelsfavi.png");
topicicon[t++] = new Array("BT","http://z5.ifrm.com/5917/152/0/f5022843/blacktemplarsfavi.png");
topicicon[t++] = new Array("SW","http://z5.ifrm.com/5917/152/0/f5022842/spacewolvesfavi.png");
</script>
<script type='text/javascript' src='http://z4.ifrm.com/30095/43/0/p1097072/TopicIcons.js'></script>
Code:
 
topicicon[t++] = new Array("BA","http://z5.ifrm.com/5917/152/0/f5022841/bloodangelsfavi.png");
The first text is the icon ID, make it short and sweet as this will go in the topic title which has a 100 character limit, the second part is the url for the image.

Replace the last line with this so your members have the option to include Topic Icons with a URL (note: there is no size restriction for the images, but the class "topicicon" can be used in your CSS to restrict the image size to your choosing.)
Code:
 

<script type='text/javascript' src='http://z4.ifrm.com/30095/43/0/p1066137/topic_icon.js'></script>
Edited by Quozzo, Aug 6 2011, 11:59 AM.
Offline Profile Quote Post Goto Top
 
badtzmaru-ZNR
Member Avatar
Member
[ *  * ]
Thank you!! :D It seems to be working fine.

This might help organize the topics in my forums. :)

P.S. Where do I put this code?
Edited by badtzmaru-ZNR, Dec 20 2010, 02:24 AM.
Offline Profile Quote Post Goto Top
 
Pando
Member Avatar
Member
[ *  *  *  *  *  * ]
Awesome code Quozzo :yes: I can see many boards using it :up:
Offline Profile Quote Post Goto Top
 
Quozzo
Member Avatar
Only in death does duty end
[ *  *  *  *  * ]
badtzmaru
Dec 20 2010, 02:22 AM
P.S. Where do I put this code?
It goes below the board.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
Very nice code :) .
Offline Profile Quote Post Goto Top
 
wissaboo-ZNR
Member Avatar
Member
[ *  *  * ]
I've been waiting for a code like this, but it looks like some of the icons aren't working.
Offline Profile Quote Post Goto Top
 
Quozzo
Member Avatar
Only in death does duty end
[ *  *  *  *  * ]
on your board or mine? could you give me link to your board if the problem is on yours. and what browser are you using?
Offline Profile Quote Post Goto Top
 
Nimor
Member Avatar
Fireman
[ *  *  *  * ]
Good idea for a code! I had seen somewhere where you can put an emoticon as an image to the topic. Nice!
Offline Profile Quote Post Goto Top
 
IllegallySniped
Member Avatar
The FSC is coming!
[ *  *  *  * ]
Woah, it's just like InvisionFree! Awesome work!
Offline Profile Quote Post Goto Top
 
maytads
Member Avatar
Rich Girl~ Nararananaranarana~
[ *  * ]
Woooooaaaahhhhhhhh!!! Thank you very much quozzo, now try to install it .o *instaling*
Offline Profile Quote Post Goto Top
 
Patrick
Member Avatar
PatrickFTW
[ *  *  *  *  * ]
Very neat code. Great submission.
Offline Profile Quote Post Goto Top
 
Quozzo
Member Avatar
Only in death does duty end
[ *  *  *  *  * ]
I noticed a bug when guests post, its fixed now in the Original Post :yes:
Offline Profile Quote Post Goto Top
 
badtzmaru-ZNR
Member Avatar
Member
[ *  * ]
There's a bug in the portal where the icons don't show up next to the topic title. :(
Offline Profile Quote Post Goto Top
 
wissaboo-ZNR
Member Avatar
Member
[ *  *  * ]
Quozzo
Dec 20 2010, 12:31 PM
on your board or mine? could you give me link to your board if the problem is on yours. and what browser are you using?
it was your board and I'm using IE
Offline Profile Quote Post Goto Top
 
Xero
Member Avatar
Wielder of Light and Darkness
[ *  *  *  * ]
How long have you been coding? It seems you have surpassed me. -.-

Oh, well. Good code. I'm sure many boards will get use out of this.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply