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:
Locked Topic
[ C ] Awards in Mini profile
Topic Started: Jan 31 2010, 06:55 PM (820 Views)
Luda007
Member Avatar
Member
[ *  *  * ]
Board Address: one-warrior-nation.com
Type of Request:???
Description: I was wondering if someone can explain how to make this code work?
It is an old topic and there are a couple responses saying it isnt working.

http://resources.zetaboards.com/topic/607986/1/

Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

Fixed; it was due to BBCode formatting. I believe it will work now.
Offline Profile Goto Top
 
Luda007
Member Avatar
Member
[ *  *  * ]
It does work now, but when you edited the post if you did. It converted what the TC posted as well.

IE his "RED" name and URL links show that way. and they do not work in the code.

Thank you for your help!!!!
Actually I have an additional question for this:

I have a question and i dont know the correct terminology to go along with it.

I have just added the code to the footers of board wrappers.


Here is what I am using:
Code:
 

<script>
NCA = [];
NCA[NCA.length] = ["Username","IMG","Award Name"]




for(i=0; i<NCA.length; i++){
if(location.href.match("showtopic=")){
spans = document.getElementsByTagName("span")
for (s=0; s<spans.length; s++){
if(spans[s].innerHTML.match(NCA[i][0]) && spans[s].className == "normalname"){
spans[s+3].innerHTML += "<br><img src='"+NCA[i][1]+"'> "+NCA[i][2];
}
}
}
}
</script>



This is what is editable:
Code:
 
["Username","IMG","Award Name"]


Now for my question.

I can add as many editable fields as I like. I know eventually I am going to run out of BW space. So my question is if I were to have 5 awards for each member is it possible for me to store that info with an out side source and install it with in the code?

I see a lot of codes with
<script name="S.S.S." src="http://i4.ifrm.com/12221/196/upload/p1260011.ibf"></script>
for example and the link takes you to some code of some sort. So I assume the link is a condensed version so it takes up less BW characters.

I have a ripway account if that helps matters?

Any help is appreciated.
Edited by Luda007, Feb 1 2010, 02:02 AM.
Offline Profile Goto Top
 
Lout-ZNR
Member Avatar
He came, he saw...
[ *  *  * ]
OK, lets say your code looked like this:-
Spoiler: click to toggle


You would take this part:-
Spoiler: click to toggle


(so everything except the <script> tags), and paste it into notepad. Then save the file as something like mycode.js and change the "Save as type" to "All files".

Next make a post in the staff room and click Browse by the attatchments part, which will allow you to upload the code you just saved to your forum.

Right click and select "copy link location" then add this to the relevant section of your board template:-
Code:
 
<script type="text/javascript" src="Paste_the _code_location_link_here"></script>


And that's it, a potentially massive code has just been reduced to one line.
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

That's just about as a succinct guide as I've ever seen.
Offline Profile Goto Top
 
Lout-ZNR
Member Avatar
He came, he saw...
[ *  *  * ]
Reid
Feb 1 2010, 04:31 PM
That's just about as a succinct guide as I've ever seen.
Why thank you kind sir B)
Offline Profile Goto Top
 
Luda007
Member Avatar
Member
[ *  *  * ]
Thank you guys!!!!
Learning something new everyday!!!!!
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

Completed!

Your code request has been completed.

Thank you for using our Member Request system here at Zathyus Networks Resources! If you have any questions regarding this topic, feel free to PM the code creator or post a new topic in the request forum. :)

Have a nice day!
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic