Simple Machine Codes
March 22, 2010, 01:40:29 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Affiliates Code Index Staff List Calendar Members Login Register  

Karma Image


Pages: [1]   Go Down
  Print  
Author Topic: Karma Image  (Read 219 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,668



View Profile WWW
« on: May 11, 2009, 07:38:50 am »

Footers:
Code:
<script type="text/javascript">
var RepName = "NAME";

var RepImg = new Array();var a = 0;
RepImg[a++] = ["KARMA","IMAGE"];

var di = document.getElementsByTagName("div");
//Created by Agent Moose
for(v=0;v<di.length;v++){
for(x=0;x<RepImg.length;x++){
if(di[v].parentNode.width == "16%" && di[v].innerHTML.match(RepName + ": (.*)<")){
if(RegExp.$1 == RepImg[x][0]){
di[v].innerHTML = di[v].innerHTML.replace(RepName + ": " + RegExp.$1, RepName + ": " + RegExp.$1 + "<br /><img src='" + RepImg[x][1] + "' />");
};};};};
</script>
Original Request: http://revolutionx.smfforfree3.com/index.php/topic,553.0.html


You have to have the Karma mode in the ACP set to "enable karma total" in the Drop down box.

this will add an image under the karma if you have a certain amount.

NAME = The Name you have the Karma Label.
KARMA = How much karma you need for that image to show.
IMAGE = The image for the certain amount of karma specified.

Enjoy Smiley
Share Report Spam   Logged



Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting