Agent Moose
|
|
« on: May 10, 2009, 06:55:43 pm » |
|
Footers: <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.htmlYou 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
|
|
« Last Edit: May 11, 2009, 07:38:42 am by Agent Moose »
|
Report Spam
Logged
|
|
|
|
|
Andrew
|
|
« Reply #1 on: May 10, 2009, 07:04:26 pm » |
|
Very nice Moosey. Don't mean to be picky, but any luck on the adding comments for rep?
|
|
|
|
|
Agent Moose
|
|
« 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.
|
|
|
|
Andrew
|
|
« Reply #3 on: May 11, 2009, 07:35:02 am » |
|
Cool cant wait to see it! thanks so much for making this
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
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?
|
|
|
|
Andrew
|
|
« 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.
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #6 on: June 15, 2009, 06:53:30 am » |
|
Alright... Thanks I'll be using it.
|
|
|
|
|
|