Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • InvisionFree and Zetaboards Support
  • [ZB] Code Identification?
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[ZB] Code Identification?
Tweet Topic Started: Apr 21 2010, 03:20 PM (583 Views)
SlyCooperFan1 Apr 21 2010, 03:20 PM Post #1
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
I'm working on improving the speed of my ZetaBoards board, so if anyone could help me identify these unknown codes, that'd be great! Thanks in advance for any and all help!
Code:
 
<script type='text/javascript'>
$('#stats_legend > a').each(function () {
this.href = main_url + 'members/?group=' + this.href.split('g=')[1];
});
</script>
Code:
 
<script type="text/Javascript">function showDiv(objectID) {
var theElementStyle = document.getElementById(objectID);

if(theElementStyle.style.display == "none")
{
theElementStyle.style.display = "block";
}
else
{
theElementStyle.style.display = "none";
}
}</script>
Code:
 
<script type="text/javascript">
var _staff = "mod";

document.write("<script src='http://divinitycoding.net/scripts/FRM.js'><\/script>");
</script>
Code:
 
<script type='text/javascript'>
// <![CDATA[
$(function(){
var _splitter = " ·";
if (location.href.indexOf("/topic/")!=-1) {
var _holder = $('table.topic:first thead tr th[colspan=2]');
_holder.html(_holder.html().replace("; <small>",_splitter + " <small>"));
}})
// ]]>
</script>
Edited by SlyCooperFan1, Apr 21 2010, 03:21 PM.
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
Reid Apr 21 2010, 03:29 PM Post #2
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Remove this script:
Code:
 
<script type="text/javascript">
var _staff = "mod";

document.write("<script src='http://divinitycoding.net/scripts/FRM.js'><\/script>");
</script>
The rest of the scripts will have no speed impact.

If you want to know anyways:
1. Force online user legend to display all group members
2. Not a complete code, that code must power something else - i.e. don't remove it
3. Fast reply moderation - that code is broken, i.e. no longer hosted; remove it
4. Replace the ; in the topic title box on topic pages with · - that is, replace the divider for the topic title/description
The Resource Board
Offline Profile Goto Top
 
SlyCooperFan1 Apr 21 2010, 03:59 PM Post #3
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
The 2nd code had this above it, maybe this is the other part?

Code:
 
<script type="text/javascript">$(document).ready(function() {$("DT:contains('Member')").hide().next().hide();});</script>

<script type="text/Javascript">function showDiv(objectID) {
var theElementStyle = document.getElementById(objectID);

if(theElementStyle.style.display == "none")
{
theElementStyle.style.display = "block";
}
else
{
theElementStyle.style.display = "none";
}
}</script>


Thanks for the others!
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
Reid Apr 21 2010, 10:44 PM Post #4
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
The first part of that code hides the member number. The second part is powering some other code. At any rate, they don't have a speed impact at all, unless you can discern milliseconds with your bare eyes. :P
The Resource Board
Offline Profile Goto Top
 
Dorith Apr 21 2010, 10:47 PM Post #5
Member Avatar
Has just entered the Matrix

Posts:
2,069
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
:glare: Are you implying that I can't tell a site is loading a millisecond slower than before?
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Goto Top
 
SlyCooperFan1 Apr 22 2010, 12:07 AM Post #6
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
I thought he was talking to me about the milliseconds, but w/e. :P

Guess I'll keep the unknown code then - if I remove it, might not let another code work. Thanks, Reid!
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
SlyCooperFan1 May 5 2010, 11:34 PM Post #7
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
Sorry for the double post, but...
Quote:
 
<script type="text/Javascript">function showDiv(objectID) {
var theElementStyle = document.getElementById(objectID);

if(theElementStyle.style.display == "none")
{
theElementStyle.style.display = "block";
}
else
{
theElementStyle.style.display = "none";
}
}</script>
This unknown code, I may have identified? I looked on Google and this code has been used to show/hide images under a <div> tag. Am I correct or did I read Google wrong too? LOL.
Edited by SlyCooperFan1, May 5 2010, 11:34 PM.
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
Kitsueki May 6 2010, 09:20 AM Post #8
Member Avatar
♠ Aizu

Posts:
742
Group:
Dedicated
Member
#3,453
Joined:
Aug 31, 2009
From reading it looks as if its telling the board to block anything that's styled as display: none
Thats my guess though~
Kingdom of Etruria
Spoiler: click to toggle
Kingdom of Etruria


Starring in the Medieval times, this Kingdom is an isolated territory not bothered by any other Kingdoms.
The military has recently caught on to something big, and its their job to stop it.
Will you walk your own path, or aid the Etrurian Military in exterminating the evil that is about to come forth?
It's Ready!

Kingdom of Etruria is a Roleplaying forum I created, also with the help of a few friends.
You can pick from many classes, fight any way you want, and gain rank in the military, or even start your own Faction.
It all starts with a Character Registration, if you're interested in taking part of this RP, PM me and I'll be sure to give you the link when I open it.
There are many things to do at Kingdom of Etruria, so be sure to find out for yourself
Thanks for reading!

Offline Profile Goto Top
 
RedBldSandman May 6 2010, 02:25 PM Post #9
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
It contains a function which toggles between showing and hiding and element with a given ID. It must be used in another script since the function isn't called in the script you provided so I would suggest keeping it as Reid already said :)
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
SlyCooperFan1 May 6 2010, 03:35 PM Post #10
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
But that's the weird thing! I found every script on my Board Template and I know which one is which. None of the other scripts on my board need THIS script. This one is all by itself in my Javascripts (except for the hide member number script). No other script, by my knowledge, is in need of this script.

I use
Code: HTML
 
<div id="whatever" style="display: none">Text text test</div>
all the time on my board and I make links that, on click, show one of those divisions. So if Kit's right, then that code makes the division I link to appear/disappear but makes it disappear when the page loads.

...I don't know if that made any sense. xD
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Enjoy forums? Start your own community for free.
Learn More · Sign-up Now
Go to Next Page
« Previous Topic · InvisionFree and Zetaboards Support · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 3:37 AM Jul 11
Hosted for free by ZetaBoards · Privacy Policy