April 18, 2024, 10:19:32 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Karma Image

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

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
Tenth year Anniversary Nineth year Anniversary Search
« on: May 10, 2009, 06:55:43 pm »

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
« Last Edit: May 11, 2009, 07:38:42 am by Agent Moose » Report Spam   Logged


Share on Facebook Share on Twitter

Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
Combination Topic Starter Poll Voter
« Reply #1 on: May 10, 2009, 07:04:26 pm »

Very nice Moosey. Smiley

Don't mean to be picky, but any luck on the adding comments for rep?
Report Spam   Logged

Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
Tenth year Anniversary Nineth year Anniversary Search
« Reply #2 on: May 11, 2009, 06:36:06 am »

I havn't worked on it yet.  If I am able to get on the computer at my house later, I will try.
Report Spam   Logged


Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
Combination Topic Starter Poll Voter
« Reply #3 on: May 11, 2009, 07:35:02 am »

Cool Cheesy cant wait to see it! thanks so much for making this Smiley
Report Spam   Logged

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #4 on: June 14, 2009, 02:18:55 am »

Thanks for this code. But i'm not sure.. does it do like this... http://thelandingforum.com when in a topic it has Up signs to karma+ and Down to karma-. does this do that?
Report Spam   Logged






Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
Combination Topic Starter Poll Voter
« Reply #5 on: June 14, 2009, 09:09:36 am »

Thanks for this code. But i'm not sure.. does it do like this... http://thelandingforum.com when in a topic it has Up signs to karma+ and Down to karma-. does this do that?

Yup
When a user has a certain amout of karma (using what you said, '+' and '-') it gives them an image, only if that have that EXACT amount of karma though.
Report Spam   Logged

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #6 on: June 15, 2009, 06:53:30 am »

Alright... Thanks I'll be using it.
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 © 2016, Simple Machines
Privacy Policy