1
Style Support / Re: [Stylesheet] Dark Modern
« on: August 19, 2010, 01:12:37 pm »
Very nice.

Create A Forum Installed
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Well, is there a way I can set up a custom profile, so to speak; where I'm able to create a new rank like.. 'Donator' or maybe even 'Elite' well, you get the picture.. just so i can inline it? or should i just merge the images together with a slight gap?
[IMG]IMAGE_URL_HERE[/img]
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "ORIGINAL_IMAGE_URL" , "NEW_IMAGE_URL" ]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/dl_ranks2/rank_0.gif" , "http://i36.tinypic.com/af9d02.jpg" ]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
If you have good security, there wouldn't be any "hackers"....?
And really, hackers don't exist on these forums. Only people that you've made admin can takeover the forum.
You still have 2 backslashes.
Take one of the links and click on it... it doesn't show an image.
http://images.smfboards.com/ranks//staradmin.gif
If it doesn't show an image there, it won't work in the code.
<script type="text/javascript" src="http://smcodes.smfforfree3.com/jquery.js"></script>
<script type="text/javascript">
function GroupImage(Group, Image){
//Created by Agent Moose
var PostGroup = document.getElementsByTagName("li");
for(x=0;x<PostGroup.length;x++){
if(PostGroup[x].className === "membergroup" && PostGroup[x].innerHTML.toLowerCase() === Group.toLowerCase()){
$(PostGroup[x]).parent().prev().find("a:last").prepend("<img src='" + Image + "' />");
};
if(PostGroup[x].className !== "membergroup" && PostGroup[x].className === "postgroup" && PostGroup[x].innerHTML.toLowerCase() === Group.toLowerCase()){
$(PostGroup[x]).parent().prev().find("a:last").prepend("<img src='" + Image + "' />");
};
};
};
GroupImage("Owner", "http://i766.photobucket.com/albums/xx305/Lion2126/OWNER1.gif");
GroupImage("In-Game Admin", "http://i734.photobucket.com/albums/ww344/Iomsscape/Mega%20Forum%20Images/admincrown-1.jpg");
GroupImage("Forum Admin", "http://i734.photobucket.com/albums/ww344/Iomsscape/Mega%20Forum%20Images/admincrown-1.jpg");
GroupImage("In-Game Mod", "http://i8.photobucket.com/albums/a38/StSquiggy/Runescape/ModCrown.png");
GroupImage("Forum Mod", "http://i756.photobucket.com/albums/xx204/shad0w_bucket/forumsstaffcrown.jpg");
</script>
You should probably do that...
Actually, what about a Stop Sign when Activated says "New Post" and when Not Activated, says "No New Post"
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "ORIGINAL_URL_HERE" , "YOUR_REPLACEMENT_IMAGE_URL" ]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
img_b[img_b.length++] = [ "ORIGINAL_URL_HERE" , "YOUR_REPLACEMENT_IMAGE_URL" ]