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
[CODE] Contest Results; By tpaldino
Topic Started: Jan 23 2010, 12:49 AM (91 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: tpaldino
[CODE
 
Contest Results]Code Name: Contest Results Page
Description: Puts a contest results page onto your forums!

Instructions

First make a new category and call it Contest Results. Under the pulldown, choose hidden from forum list. Next, make a new forum under that category you just made and call it Contest Results. Then, edit the forum rules for that forum you made by clicking on the yellow triangle! In the pulldown, choose Show Link Only. For the Rules Title type the following:
Code:
 
<center>Contest Results</center>


Then under the Rules Text, copy and paste the following code:
Code:
 
<table border=1 width=100%><td><u><b>Contest Name</b></u></td><td><u><b>Contest Description</b></u></td><td><u><b>Contest Winner</b></u></td><td><u><b>Prize</b></u></td></table>


To add additional contest results, replace
Code:
 
</table>
from the above code with
Code:
 
<tr>
and add this code under the above code:

Code:
 
<td><b>Name of Contest</b></td><td>Contest Description</td><td><img src="http://i5.ifrm.com/1081/166/pip/trophy.gif"></a> <b>Contest Winner</b></td><td><b>Contest Prize</b></td></table>


Remember to keep replacing </table> with <tr> every time you add a new row! Now to add the link. First, before you add the link, get the link to the contest page, then add this code under Board Wrappers -> Header & Body -> Board

Code:
 
<script>
/*
Adding NaviBar Links
By Webworldx
*/
var aLink=new Array()
aLink[0]='<img src="http://i5.ifrm.com/1081/166/pip/trophy.gif" border="0" alt="" width="15" height="15" />&nbsp;<a href="URL of your Contest Page">Contest Results</a>'

var uCell = document.getElementsByTagName('TD')
for (i=0;i<uCell.length;i++){
if (uCell[i].align=="right" && uCell[i].innerHTML.match("act=calendar") && uCell[i].innerHTML.match("act=Help")){
var addLink=""
for (j=0;j<aLink.length;j++){
addLink+=aLink[j]+" &nbsp; &nbsp;&nbsp;"
}

uCell[i].innerHTML=addLink+uCell[i].innerHTML
}}
</script>


That is all, have a nice time! Oh, and click here to see the preview!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply