September 06, 2010, 04:43:01 pm
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  

Awards System


Pages: [1]   Go Down
  Print  
Author Topic: Awards System  (Read 679 times)
0 Members and 2 Guests are viewing this topic.
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
« on: November 07, 2008, 06:48:17 pm »

Footers:
Code:
<script>
var Awards = new Array();
Awards[Awards.length] = ["USER ID","AWARD"];

$("a").each(function(){
//Created by Agent Moose (smcodes.smfforfree3.com)
if(this.href.match("profile;u=" + Awards[v] + "$")){
$(this).parent().next().append("<br><b>Awards</b>:" + Awards[v][1]);
};};);
</script>

USER ID = The User ID you would like to give awards to.
AWARD = What the award will be.  You may use HTML or Text.

Enjoy Smiley
Share Report Spam   Logged


anthony
Newcomers!
Newcomers!
Offline Offline

Gender: Male
Posts: 2


View Profile
« Reply #1 on: March 28, 2009, 05:30:09 pm »

Lol nice, I could use it, when I get more members on my forum, at least
Report Spam   Logged
Blighted
Blighted Mega Forums Owner
Newcomers!
Newcomers!
Offline Offline

Gender: Male
Posts: 8


View Profile WWW
« Reply #2 on: May 20, 2009, 08:17:08 am »

lol nice. Is there anything you need to add to the headers?
Report Spam   Logged
Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
« Reply #3 on: May 20, 2009, 02:42:04 pm »

Nope Smiley When it comes to codes on here, you only have to add what they tell you to add. Normally in the footers Wink
Report Spam   Logged

Global Mod, (sort of) at your service.

http://twitter.com/timothyaveni

Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
« Reply #4 on: May 21, 2009, 07:20:18 am »

lol nice. Is there anything you need to add to the headers?

It sotra matters Tongue  If you don't have the following code at the top of your headers, then yes, you will need to add it, if you already have if, then you don't need to add it again:
Code:
<script src="/jquery.js"></script>
Report Spam   Logged


Blighted
Blighted Mega Forums Owner
Newcomers!
Newcomers!
Offline Offline

Gender: Male
Posts: 8


View Profile WWW
« Reply #5 on: May 24, 2009, 11:11:34 am »

I've got that. Oh btw, where does the award appear?
Report Spam   Logged
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
« Reply #6 on: May 24, 2009, 01:23:33 pm »

Right under all the users stats on the side of a post.
Report Spam   Logged


Lyle
MeTube
Member
Member
Offline Offline

Gender: Male
Posts: 69



View Profile
« Reply #7 on: June 07, 2009, 04:02:25 pm »

may we use pictures?
Report Spam   Logged
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
« Reply #8 on: June 07, 2009, 05:05:19 pm »

Yes you may.  You need to use single quotes instead of double quotes for the src= part.
Report Spam   Logged


KrylonKrystals
Starter
Starter
Offline Offline

Gender: Male
Posts: 22


View Profile
« Reply #9 on: August 24, 2009, 09:52:23 pm »

Footers:
Code:
<script>
var Awards = new Array();
Awards[Awards.length] = ["USER ID","AWARD"];

$("a").each(function(){
//Created by Agent Moose (smcodes.smfforfree3.com)
if(this.href.match("profile;u=" + Awards[v] + "$")){
$(this).parent().next().append("<br><b>Awards</b>:" + Awards[v][1]);
};};);
</script>

USER ID = The User ID you would like to give awards to.
AWARD = What the award will be.  You may use HTML or Text.

Enjoy Smiley
Is there a way to make it so that either the user can automatically get the award or possibly add more users to the list?

EDIT: put a strikethrough on that part didn't read the code correctly Tongue
« Last Edit: August 24, 2009, 09:54:56 pm by KrylonKrystals » Report Spam   Logged

Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
« Reply #10 on: August 25, 2009, 01:36:54 am »

Once slayer releases the shop source code, I'm going to work on a simple item that adds the user's name onto a list- the list is then read and can be used by codes like this one. It might take a bit to develop.
Report Spam   Logged

Global Mod, (sort of) at your service.

http://twitter.com/timothyaveni


Your Ad Here
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