Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Adding to Board Stats
Topic Started: Apr 22 2008, 01:21 PM (505 Views)
DragonHybrid
Member Avatar
Member
[ * ]
Here's the short story:

I added GenerationStudio's code for adding rows to Board Stats aaages ago, replaced the image and just put in random words just so I wouldn't forget to add it later on (my board's a looongtime WIP). However, after discovering that the code would stop being hosted in the future, I figured it would be best to just replace it - and there's Arrogant's code, which is cool, so I added that.

Two things.

1. After re-submitting the new code, the new row now comes up between Online Users and Board Statistics. ... why?

Code: HTML
 
<script>
title = "Affiliates"
content = "content!"
img = "http://img.photobucket.com/albums/v618/Sheemaraa/EfRBanner.jpg"
//Created by Agent Moose
$("div#stats table.forums tr:contains('Board Statistics')").before("<tr><th colspan='2'>"+title+"</th></tr><tr><td class='c_mark'><img src='"+img+"'/></td><td>"+content+"</td></tr>")
</script>

That's my code. Anything wrong with it?

2. Is there any way of putting linked images - can you guess I want to use it for affiliates? - in the 'content'? Nothing I've tried has worked, which doesn't say much because I'm pretty code illiterate :3

Thank youuuu!
Siki
Offline Profile Quote Post Goto Top
 
RyuraGS
Member Avatar
Member
[ *  *  * ]
1. That's the way his code works.
2. <a href="URL"><img src="URL" /></a>

If you want to continue using my code, you can simply copy the code and host it on your own.
Offline Profile Quote Post Goto Top
 
DragonHybrid
Member Avatar
Member
[ * ]
I seee, thanks. I'll go back to using yours - but, uh, don't know what it means to host it/don't know? I'm willing, just ignorant.
Offline Profile Quote Post Goto Top
 
DragonHybrid
Member Avatar
Member
[ * ]
I re-tested your code again - just, y'know, because I have time - and images simply don't work, but text does. Will this be a clash of codes? Solved this, but the above question still stands.
Edited by DragonHybrid, Apr 26 2008, 01:25 PM.
Offline Profile Quote Post Goto Top
 
RyuraGS
Member Avatar
Member
[ *  *  * ]
http://generationstudio.net/codes/zbboardstats2.js

Copy the text from that into notepad and save it as zbboardstats2.js . Then upload it in your user CP and get the URL of the file.

Now replace the script tag in my code:


<script type="text/javascript" src="http://generationstudio.net/codes/zbboardstats2.js">/* Add more boxes to Board Statistics */</script>

src="URL of your uploaded file"
Offline Profile Quote Post Goto Top
 
DragonHybrid
Member Avatar
Member
[ * ]
It says I don't have the appropriate program to open the link. What do I need?
Edited by DragonHybrid, Apr 27 2008, 03:57 AM.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Click Browse, then choose Notepad or Wordpad.
Edited by Viral, Apr 27 2008, 06:28 AM.
Offline Profile Quote Post Goto Top
 
DragonHybrid
Member Avatar
Member
[ * ]
Merci beaucoup Viral and Generation, I'm all sorted now!
Edited by DragonHybrid, Apr 27 2008, 09:02 AM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Coding & Modifications · Next Topic »
Add Reply