SMF For Free Support Forum
Signup For Free Forum
September 05, 2008, 03:31:41 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: My many problems, AARGH!  (Read 367 times)
0 Members and 1 Guest are viewing this topic.
akl
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
« on: July 13, 2008, 03:32:40 pm »

Forum Url: http://8thgrade.smfforfree4.com
Okay, I have many problems, so first I'll type down my header & my footer. Smiley



Headers
Code:
<center><a href="http://www.easycounter.com/">
<img src="http://www.easycounter.com/counter.php?amr"
border="0" alt="Calculated hits on the 8Grade site x:D"></a>
<br><a href="http://www.easycounter.com/FreeCounter3.html">page counter</a>
<script src="/jquery.js"></script></center>
<link rel="shortcut icon" href="http://i299.photobucket.com/albums/mm286/evilspell2/9.jpg" type="image/x-icon">
<center><a href="http://s299.photobucket.com/albums/mm286/evilspell2/?action=view¤t=8thgrade1.jpg" target="_blank"><img src="http://i299.photobucket.com/albums/mm286/evilspell2/8thgrade1.jpg" border="0" alt="Photobucket"></a></center>
<script type="text/javascript" src="http://buttercup.spellingcow.com/spell/scayt"></script>
<script type="text/javascript">
<!--

var sc_ayt_params = {ayt_default : 'off'} ;

//-->
</script>
<script>
function warning_system(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var warn = new Array()
warn[0] = ["USERNAME","IMAGE","COLOR OF TEXT","TEXT"]

if(location.href.match(/topic./)){
for(j=0;j<warn.length;j++){
$("td b a:contains("+warn[j][0]+")").after("<br><br><img src='"+warn[j][1]+"' /><font color='"+warn[j][2]+"'>"+warn[j][3]+"</font>")
};};});}
warning_system();
<script type="text/javascript">
group_name_one = "Admin"
group_color_one = "red"
group_name_two = "Global Mod"
group_color_two = "green"
group_name_three = "Mod"
group_color_three = "darkgreen"
group_name_four = "vip"
group_color_four = "orange"
group_name_five = "member"
group_color_five = "black"
</script>
<script>
var username = $('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)").html();
if(username){
var name = "+username+, Thanks for signing in! Enjoy your stay here, and get more members. You might get a staff position ;)"
}else{
var name = "Guest, I would appreciate it if you signed up for our forums. Please don't just take a look around sign up!"
}
$("#bodyarea").before(name)
</script>



Problem of this: I can't get the
Code:
<script>
var username = $('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)").html();
if(username){
var name = "+username+, Thanks for signing in! Enjoy your stay here, and get more members. You might get a staff position ;)"
}else{
var name = "Guest, I would appreciate it if you signed up for our forums. Please don't just take a look around sign up!"
}
$("#bodyarea").before(name)
</script>
Working.
Neither the gorgeous legend to work.



Footers:
Code:
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="500" height="81" align="left" valign="top">
<img src="http://i177.photobucket.com/albums/w201/samsam007/images/header_11.jpg" width="500" height="81" alt="" /></td>
<td width="500" height="81" align="left" valign="top">
<img src="http://i177.photobucket.com/albums/w201/samsam007/images/header_12.jpg" width="500" height="81" alt="" /></td>
</tr>
</table>
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["saad","Saad","red","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/admin.gif' />"];
vfour[vfour.length] = ["OLD NAME","NEW NAME","purple","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/modcrownaw2.png' />"];
vfour[vfour.length] = ["OLD NAME","NEW NAME","","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod.gif' />"];
for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>
<script>
function smc_money_code(name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
c = document.getElementsByTagName("div");
for(v=0;v<c.length;v++){
if(c[v].className=="smalltext" && c[v].innerHTML.match(/Posts: (\d+)/)){
var total = amount * RegExp.$1;
c[v].innerHTML+="<br />" + name+": " + sign + total;
};};}
smc_money_code("Cash","$","2")
</script>
<script creator="Agent Moose" at="smcodes.smfforfree3.com">
var boardname = "General Forum"
var News = "10 Members = Moderator Position
20 Members = Global moderator Position!
The G. Mod. has more powers here, if you get the following amount you get the position."
$("#bodyarea").before('<div id="news_box"><div class="tborder" style="margin-top: 1ex;"><div class="catbg" style="padding: 5px 5px 5px 10px;">'+boardname+' News</div><table id="upshrinkHeader2" width="100%" cellpadding="4" cellspacing="0" border="0"><tr><td class="titlebg2"></td></tr><div class="windowbg"><span id="section">'+News+'</span></div></table></div>');
</script>
<script src="http://h1.ripway.com/smcodes/other/gorgeouslegendv1.js"></script>
<script type="text/javascript">
//How's My Post v1
//By slayer766 of thecodingzone.com

var $_Set = new Array();
$_Set = [50,125,200,250,345,500]


var $get_name = document.getElementsByTagName("span")[0].innerHTML;
if(location.href.match(/action=post/i)){

//Word Counter By Godkillah of phantom-designs.net
function countChars(heyslay){
cookie=heyslay.split(" ").length-1
heyslay=heyslay.length
heyslay=heyslay-cookie
return heyslay
}
function Counting(heyslay){
chocolate=heyslay.split(" ");
heyslay=0;
for(da=0;da<chocolate.length;da++){
if(chocolate[da].length>0){
heyslay++;
}}
return heyslay;
}
//Word Counter By Godkillah of phantom-designs.net

document.forms.postmodify.message.parentNode.innerHTML+="<br /><span id='showit'>"+$get_name+" - <span style='color:red'><b>How's my post code!</b></span><br />Total Characters typed: <b>0</b> || Total words typed: <b>0</b></span>";
document.forms.postmodify.message.onkeyup = function(){
var _counter = countChars(document.forms.postmodify.message.value);
_counter+=" || Total words typed: "+Counting(document.forms.postmodify.message.value)+""
var $_number = $_Set[5]-$_Set[4]
var _object=document.getElementById("showit");
if(document.forms.postmodify.message.value.length == 0){
_object.innerHTML= $get_name+" - <span style='color:red'><b>How's my post code!</b></span><br />Total Characters typed: <b>0</b> || Total words typed: <b>0</b>";
}
else if(document.forms.postmodify.message.value.length <= $_Set[0] && document.forms.postmodify.message.value.length >0){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>You can do better than this!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[0] && document.forms.postmodify.message.value.length <= $_Set[1]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>You are getting better!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[1] && document.forms.postmodify.message.value.length <= $_Set[2]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>Keep going! You are doing great!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[2] && document.forms.postmodify.message.value.length <= $_Set[3]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>Wonderfully done! Now, do even better!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[3] && document.forms.postmodify.message.value.length <= $_Set[4]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>HURRAY! You are quite the novelist!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[4] && document.forms.postmodify.message.value.length <= $_Set[5]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>Wow, only "+$_number+" more characters and you will have the longest post!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[5]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>WOAH! You better tell me about this! Best post ever!</span><br />Total Characters typed: "+_counter+"";
}}}
</script>
<script>
var loc = window.location.href.split("/index.php")[0]
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match(/action=mlist;sort=posts;sa=TopTen/i)) $("a[title*='View the profile of']").parent().parent("tr:gt(10),tr:first").hide();
$("#upshrinkHeader").find("td.windowbg2[colspan='2']").append("<a href='" + loc + "/index.php?action=mlist;sort=posts;sa=TopTen'>View Top Ten Posters</a>");
</script>



Problems here: The gorgeous legend and
Code:
<script creator="Agent Moose" at="smcodes.smfforfree3.com">
var boardname = "General Forum"
var News = "10 Members = Moderator Position
20 Members = Global moderator Position!
The G. Mod. has more powers here, if you get the following amount you get the position."
$("#bodyarea").before('<div id="news_box"><div class="tborder" style="margin-top: 1ex;"><div class="catbg" style="padding: 5px 5px 5px 10px;">'+boardname+' News</div><table id="upshrinkHeader2" width="100%" cellpadding="4" cellspacing="0" border="0"><tr><td class="titlebg2"></td></tr><div class="windowbg"><span id="section">'+News+'</span></div></table></div>');
</script>
This working.
Please help, I desperately need these functions running, thanks.


Logged
akl
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
« Reply #1 on: July 14, 2008, 03:55:03 am »

Can someone please help?
Logged
akl
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
« Reply #2 on: July 14, 2008, 03:56:04 am »

Woops, I just reliased, I put this in the wrong section.. was really busy, sorry guys, I'll move it.
Lol, SS moved it, thanks SimplySibyl.
So anything?
« Last Edit: July 14, 2008, 04:00:11 am by akl » Logged
akl
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
« Reply #3 on: July 14, 2008, 05:51:48 am »

an someone please HELP!?
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 625


Do not PM me for Code Support or Request


View Profile WWW
« Reply #4 on: July 14, 2008, 09:02:04 am »

Headers:
Code:
<script src="/jquery.js"></script>

<center><a href="http://www.easycounter.com/">
<img src="http://www.easycounter.com/counter.php?amr"
border="0" alt="Calculated hits on the 8Grade site x:D"></a>
<br><a href="http://www.easycounter.com/FreeCounter3.html">page counter</a>
<script src="/jquery.js"></script></center>
<link rel="shortcut icon" href="http://i299.photobucket.com/albums/mm286/evilspell2/9.jpg" type="image/x-icon">
<center><a href="http://s299.photobucket.com/albums/mm286/evilspell2/?action=view¤t=8thgrade1.jpg" target="_blank"><img src="http://i299.photobucket.com/albums/mm286/evilspell2/8thgrade1.jpg" border="0" alt="Photobucket"></a></center>
<script type="text/javascript" src="http://buttercup.spellingcow.com/spell/scayt"></script>

<script>
function warning_system(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var warn = new Array()
warn[0] = ["USERNAME","IMAGE","COLOR OF TEXT","TEXT"]

if(location.href.match(/topic./)){
for(j=0;j<warn.length;j++){
$("td b a:contains("+warn[j][0]+")").after("<br><br><img src='"+warn[j][1]+"' /><font color='"+warn[j][2]+"'>"+warn[j][3]+"</font>")
};};});}
warning_system();
</script>

<script>
var username = $('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)").html();
if(username){
var name = "+username+, Thanks for signing in! Enjoy your stay here, and get more members. You might get a staff position ;)"
}else{
var name = "Guest, I would appreciate it if you signed up for our forums. Please don't just take a look around sign up!"
}
$("#bodyarea").before(name);
</script>

Footers:
Code:
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="500" height="81" align="left" valign="top">
<img src="http://i177.photobucket.com/albums/w201/samsam007/images/header_11.jpg" width="500" height="81" alt="" /></td>
<td width="500" height="81" align="left" valign="top">
<img src="http://i177.photobucket.com/albums/w201/samsam007/images/header_12.jpg" width="500" height="81" alt="" /></td>
</tr>
</table>

<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["saad","Saad","red","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/admin.gif' />"];
vfour[vfour.length] = ["OLD NAME","NEW NAME","purple","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/modcrownaw2.png' />"];
vfour[vfour.length] = ["OLD NAME","NEW NAME","","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod.gif' />"];
for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>

<script>
function smc_money_code(name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
c = document.getElementsByTagName("div");
for(v=0;v<c.length;v++){
if(c[v].className=="smalltext" && c[v].innerHTML.match(/Posts: (\d+)/)){
var total = amount * RegExp.$1;
c[v].innerHTML+="<br />" + name+": " + sign + total;
};};}
smc_money_code("Cash","$","2")
</script>

<script creator="Agent Moose" at="smcodes.smfforfree3.com">
var boardname = "General Forum"
var News = "10 Members = Moderator Position<br>20 Members = Global moderator Position!"
The G. Mod. has more powers here, if you get the following amount you get the position."
$("#bodyarea").before('<div id="news_box"><div class="tborder" style="margin-top: 1ex;"><div class="catbg" style="padding: 5px 5px 5px 10px;">'+boardname+' News</div><table id="upshrinkHeader2" width="100%" cellpadding="4" cellspacing="0" border="0"><tr><td class="titlebg2"></td></tr><div class="windowbg"><span id="section">'+News+'</span></div></table></div>');
</script>


<script type="text/javascript">
//How's My Post v1
//By slayer766 of thecodingzone.com

var $_Set = new Array();
$_Set = [50,125,200,250,345,500]


var $get_name = document.getElementsByTagName("span")[0].innerHTML;
if(location.href.match(/action=post/i)){

//Word Counter By Godkillah of phantom-designs.net
function countChars(heyslay){
cookie=heyslay.split(" ").length-1
heyslay=heyslay.length
heyslay=heyslay-cookie
return heyslay
}
function Counting(heyslay){
chocolate=heyslay.split(" ");
heyslay=0;
for(da=0;da<chocolate.length;da++){
if(chocolate[da].length>0){
heyslay++;
}}
return heyslay;
}
//Word Counter By Godkillah of phantom-designs.net

document.forms.postmodify.message.parentNode.innerHTML+="<br /><span id='showit'>"+$get_name+" - <span style='color:red'><b>How's my post code!</b></span><br />Total Characters typed: <b>0</b> || Total words typed: <b>0</b></span>";
document.forms.postmodify.message.onkeyup = function(){
var _counter = countChars(document.forms.postmodify.message.value);
_counter+=" || Total words typed: "+Counting(document.forms.postmodify.message.value)+""
var $_number = $_Set[5]-$_Set[4]
var _object=document.getElementById("showit");
if(document.forms.postmodify.message.value.length == 0){
_object.innerHTML= $get_name+" - <span style='color:red'><b>How's my post code!</b></span><br />Total Characters typed: <b>0</b> || Total words typed: <b>0</b>";
}
else if(document.forms.postmodify.message.value.length <= $_Set[0] && document.forms.postmodify.message.value.length >0){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>You can do better than this!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[0] && document.forms.postmodify.message.value.length <= $_Set[1]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>You are getting better!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[1] && document.forms.postmodify.message.value.length <= $_Set[2]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>Keep going! You are doing great!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[2] && document.forms.postmodify.message.value.length <= $_Set[3]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>Wonderfully done! Now, do even better!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[3] && document.forms.postmodify.message.value.length <= $_Set[4]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>HURRAY! You are quite the novelist!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[4] && document.forms.postmodify.message.value.length <= $_Set[5]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>Wow, only "+$_number+" more characters and you will have the longest post!</span><br />Total Characters typed: "+_counter+"";
}
else if(document.forms.postmodify.message.value.length > $_Set[5]){
_object.innerHTML = "<span style='color:red'><b>How's my post?</b></span>: <span style='color:red'>WOAH! You better tell me about this! Best post ever!</span><br />Total Characters typed: "+_counter+"";
}}}
</script>

<script>
var loc = window.location.href.split("/index.php")[0]
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match(/action=mlist;sort=posts;sa=TopTen/i)) $("a[title*='View the profile of']").parent().parent("tr:gt(10),tr:first").hide();
$("#upshrinkHeader").find("td.windowbg2[colspan='2']").append("<a href='" + loc + "/index.php?action=mlist;sort=posts;sa=TopTen'>View Top Ten Posters</a>");
</script>
Logged

Eternal Flame Coming Soon

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.
akl
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
« Reply #5 on: July 14, 2008, 12:30:32 pm »

Code:
<script>
var username = $('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)").html();
if(username){
var name = "+username+, Thanks for signing in! Enjoy your stay here, and get more members. You might get a staff position ;)"
}else{
var name = "Guest, I would appreciate it if you signed up for our forums. Please don't just take a look around sign up!"
}
$("#bodyarea").before(name);
</script>
I'm confused. I cannot get this to work, I'm not sure where it will appear too.
If it's at the top, then I can't get it to work.. Please Agent! Reply soon!
Thanks for the help too!
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 625


Do not PM me for Code Support or Request


View Profile WWW
« Reply #6 on: July 15, 2008, 04:02:06 pm »

Ah, that goes in the footers Tongue
Logged

Eternal Flame Coming Soon

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.
akl
SMF For Free Member
*
Offline Offline

Posts: 63


View Profile
« Reply #7 on: July 16, 2008, 10:09:34 am »

Still doesn't work. Could you please redo it again, with all the corrections? The gorgeous legend and the guest and user news thing still doesn't work.
Please reply soon, thanks for the help till now.
Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.527 seconds with 18 queries.