.Josh
BB Beta
Joined: July 17th, 2009, 1:00 am

November 25th, 2009, 9:28 pm #11

Yes I would rather just have the award code hosted, As I will be always editing it.

So let me get this straight, If you guys host the award system for me I can have unlimited charcater on the board template? Because that was the problem before we got so far but I had to stop because they're was no more space left.. And will I be able to edit this code like normal to add new awards?
Quote
Like
Share

HelenaZF
BB Kappa
Joined: June 3rd, 2006, 5:21 am

November 25th, 2009, 9:54 pm #12

If you host a code, no matter how many characters it has in it, this is what you will put in your wrappers:

Code: Select all

<script type="text/javascript" src="http://68.13.999.99/9999/27/upload/p9999999.js"></script>
So yes, in effect you have unlimited space. However in reality, there is a limit to how much you can load your board down with codes without making it so slow to load that it would be detrimental.

The way you would edit the code is to copy the URL from with in the script above (http://68.13.999.99/9999/27/upload/p9999999.js) open it in a browser window, and then copy paste it to NotePad. Do you editing in NotePad, then save the code as a .js file and then attach it to a post on your board. Insert the URL of THAT file in the code above instead of the one you just opened in your browser. Then, each time you want to edit the code, do the same thing and replace the attached file in your post. You won't have to change anything in your board template if you do it that way.
Visit the Planet Nexus page!


Download some of my graphic sets HERE
Quote
Like
Share

.Josh
BB Beta
Joined: July 17th, 2009, 1:00 am

November 25th, 2009, 10:01 pm #13

Right, I also have a shoutbox on the forum which is taking up alot of characters and also a announcement box. What will I have to post here for you guys to host? so we can do that first before the award system..
Quote
Like
Share

HelenaZF
BB Kappa
Joined: June 3rd, 2006, 5:21 am

November 25th, 2009, 10:23 pm #14

If the announcement box contains tables, it would have to be hosted another way. But the best way to find out is to post up your codes and then we can sort it out. Use the code tags and add a note for us saying where you have each code installed in your board template.
Visit the Planet Nexus page!


Download some of my graphic sets HERE
Quote
Like
Share

.Josh
BB Beta
Joined: July 17th, 2009, 1:00 am

November 25th, 2009, 10:52 pm #15

Had to use table code because hen i used the code it cut alot of the codes out for some reason


Board URL: http://s10.zetaboards.com/The_Unstoppable_Army/index/

Above the board codes :-

These are the four images that I have at the top of the forum.

Code: Select all

<center><a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007395/"><img src="http://img257.imageshack.us/img257/8197/sqmpkc36xcode4.png"></a>
<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007396/"><img src="http://img41.imageshack.us/img41/9707/callofdutywaw.png"></a>
<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007397/"><img src="http://img30.imageshack.us/img30/8049/gqeggpmatcod6.png"></a>
<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007422/"><img src="http://img43.imageshack.us/img43/991/original1.png"></a></center>
Announcement Box

Code: Select all

<script name="A.T.M." src="http://z3.ifrm.com/1/22/0/p242/zetatopmenu.ibf"></script>

<br>


<div class="category">

<div class="announcement_head">
<table class="cat_head">
<tr><td>
<h2>Information Board</h2>
</td></tr></table></div>
<table cellpadding="0" cellspacing="0">
<tr>
<td style="width: 27%;" valign="top" rowspan="2">
<center><big style><b>Important Links</b></big><br><br><a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3006678/">Board Bulletin</a><br>
<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007489/">Medal System</a><br>

<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007454/">Halloween Special Event</a><br>

<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3006735/">Interviews</a><br>

<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3006680/">Clan Bulletin</a><br>

<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3004400/">Tournaments</a><br>

<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007504/">M.O.T.M</a><br>

<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3006784/">Contests</a><br>

<p><center><big style><b>Recruitment Links</b></big><br><br><a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007212/">MW Applications</a><br>
<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007218/">WAW Applications</a><br>

<a href="http://s10.zetaboards.com/The_Unstoppable_Army/forum/3007565/">MW2 Applications</a><br></p>
</center>


</td>
<td style="width: 50%;" valign="top">
<center><big style><b></b></big>
<center><big style><b>Halloween Special Event</b></big><br><br>
The Halloween Special Event has now started. The Halloween event will last until the end of November. Between now and to the end of November there will be daily contests and weekly events where members will be able to gain points. All points that members gain will be saved and put into a table. At the end of November all points will be counted and medals will be given out. Make sure you keep checking the Halloween event section for latest contests and events and make sure you take part in everything that's available.
<p>--------------------------------------------</p>
<center><big style><b>Warning to Guests!</b></big><br><br>
<b>Warning:</b> Guests can not view this forum, if you wish to join or to be apart of the community then you will need to register the forum. To register <a href="http://s10.zetaboards.com/The_Unstoppable_Army/register/">Click Here!</a><br></p>
<p>
<br>
</center>
</td>
<td style="width: 27%;" valign="top" rowspan="2">
<center><big style><b>Welcome</b></big><br><br>
<p>
Hello and welcome to the TuAForums. We are a world wide clan that mostly plays on call of duty along with other games. If you are here to apply please register the forum and also fill out a application for the game you wish to apply on. We are looking for active and dedicated members which are on both the forum and the PS3. Thanks & Enjoy!
<p>
<b>The Unstoppable Army</b>
</td>
</tr>
</table>
</div>
Shoutbox

Code: Select all

<center><object width="800" height="360" id="obj_1254241892843"><param name="movie" value="http://tuarmy.chatango.com/group"/><param name="wmode" value="transparent"/><param name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param name="flashvars" value="cid=1254241892843&a=333333&b=60&c=999999&d=A4A4A2&e=333333&f=50&g=E90F00&h=333333&j=E90F00&l=000000&p=10&q=000000&r=100&s=1"/><embed id="emb_1254241892843" src="http://tuarmy.chatango.com/group" width="800" height="360" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" allowFullScreen="true" flashvars="cid=1254241892843&a=333333&b=60&c=999999&d=A4A4A2&e=333333&f=50&g=E90F00&h=333333&j=E90F00&l=000000&p=10&q=000000&r=100&s=1"></embed></object><br>[ <a href="http://tuarmy.chatango.com/clonegroup?ts=1254241892843">Copy this</a> | <a href="http://chatango.com/creategroup?ts=1254241892843">Start New</a> | <a href="http://tuarmy.chatango.com">Full Size</a> ]<p><p></center>[/table]

[b]i cant figure out what sort of code this is, you know by anychance??[/b]
[table]<script type="text/javascript">
// Add To Topmenu (By Mwr247)

// New Section (Title,Link,Image)
var addtmt=['Menu','http://s10.zetaboards.com/The_Unstoppable_Army/index/','http://z3.ifrm.com/static/1/m_ucp.png'];

//Add Links (Title,Link)
var t=0;
var addtml=[];
addtml[t++]=['Search','http://s10.zetaboards.com/The_Unstoppable_Army/search/'];
addtml[t++]=['Members','http://s10.zetaboards.com/The_Unstoppable_Army/members/'];
addtml[t++]=['Calendar','http://s10.zetaboards.com/The_Unstoppable_Army/calendar/'];
addtml[t++]=['FAQ','http://s10.zetaboards.com/The_Unstoppable_Army/faq/'];
addtml[t++]=['Rules','http://s10.zetaboards.com/The_Unstoppable_Army/boardrules/'];
addtml[t++]=['Affiliates','http://s10.zetaboards.com/The_Unstoppable_Army/pages/affiliates/'];
addtml[t++]=['Roster','http://s10.zetaboards.com/The_Unstoppable_Army/pages/roster/'];
</script>

I'll post others when these are done, and can you tell me if they're is any disadvantages over this?
Quote
Like
Share

HelenaZF
BB Kappa
Joined: June 3rd, 2006, 5:21 am

November 26th, 2009, 3:01 am #16

The last code should produce a links dropdown like this:

http://i1.ifrm.com/9764/158/upload/p3870669.gif

If you dont' see that on your board, it's probable that either the code is not edited properly, or your theme coding is somehow preventing it from displaying.


You might try Mikes hosting tool:

http://mwr247.atwebpages.com/


The only disadvantages I can think of to hosting your codes is that you might forget where you uploaded the files. :D Host them on the board that is using them and the codes will never go down unless your board is down.
Visit the Planet Nexus page!


Download some of my graphic sets HERE
Quote
Like
Share

.Josh
BB Beta
Joined: July 17th, 2009, 1:00 am

November 26th, 2009, 3:19 am #17

This is the code that I've put into my board template which I used last time.. No awards have currently been added though, Will be starting to build on them soon this get's sorted.

Code: Select all

<script>
/*GK Awards V1.1
by godkillah and michael
phantom-designs.net*/
var sizeH=16
var sizeW=16
//User ID, Award Title, Reason, Image
var Award=[]
//SOTW
Award[Award.length]=[644842, 'SOTW Winner','Winner of the first SOTW','http://z3.ifrm.com/379/9/0/f382727/sotw1.png']

a=document.getElementsByTagName("tr")
for(i=0;i<a.length;i++){
if(a[i].id.match(/post-[0-9]/i) && a[i].getElementsByTagName("a")[0] && a[i].getElementsByTagName("a")[0].href.match(/\/profile\/(.*)\//i) && a[i].getElementsByTagName("td")[0].className=='c_username'){
ID=parseInt(RegExp.$1); i++;
o=a[i].getElementsByTagName("dl")[0]; aws='';
for(blah in Award){
if(Award[blah][0]==ID){
aws+='<a href="#" onclick="javascript:alert(\''+Award[blah][2]+'\');"><img width="'+sizeW+'" height="'+sizeH+'" src="'+Award[blah][3]+'" title="'+Award[blah][1]+'"  /></a>'
}}
if(aws==''){
o.innerHTML+='<fieldset><legend>Awards</legend><b>[None]</b></fieldset><div id="SHOWstat"></div>'
}else{
o.innerHTML+='<fieldset><legend>Awards</legend>'+aws+'</fieldset><div id="SHOWstat"></div>'
}}}
</script>
Quote
Like
Share

HelenaZF
BB Kappa
Joined: June 3rd, 2006, 5:21 am

November 26th, 2009, 3:34 am #18

I think this will be easiest for you . This was hosted on the hosting tool I linked you to above. { http://mwr247.atwebpages.com/ } When you want to edit it, just input your edited code into the input area there and use the code it generates in your template.

Code: Select all

<script name="Awards" src="http://mwr247.atwebpages.com/Awards693.js"></script>
Visit the Planet Nexus page!


Download some of my graphic sets HERE
Quote
Like
Share

.Josh
BB Beta
Joined: July 17th, 2009, 1:00 am

November 26th, 2009, 3:38 am #19

So I need to put the code into note pad save it as .js and then put that code into my board template which needs to go where? and how does this note pad thing get to the code.. sorry for being such a pain just getting a little confused :S
Quote
Like
Share

HelenaZF
BB Kappa
Joined: June 3rd, 2006, 5:21 am

November 26th, 2009, 3:44 am #20

I'm giving you a way to bypass the notepad method..just use the code hosting tool. :) It does it all for you.

However, to answer your question, the sequence is:

code to Notepad with <script> tags stripped off.
"Save as" to hard drive as .js file (choose all files from dropdown in save screen)
upload to post on your ZB board as a post attachment
Copy URL of attachement, and insert into this format:

Code: Select all

<script type="text/javascript" src="http://YOUR UPLOAD CODE URL.js"></script>
Place that in your template wherever the unhosted code would have gone.
Visit the Planet Nexus page!


Download some of my graphic sets HERE
Quote
Like
Share