Advertise Here

Author Topic: [Code] Money Code V2  (Read 11966 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Money Code V2
« on: August 13, 2007, 09:40:59 pm »
Add this to the top of your headers if you don't have it:
Code: [Select]
<script src="/jquery.js"></script>

Footers
Code: [Select]
<script>
function smc_money_code(forum,name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
$("a.nav").each(function(){
if(this.innerHTML.match(forum)){
c = $("div")
for (v=0;v<c.length;v++){
if((c[v].className=="smalltext")&&(c[v].innerHTML.match(/Posts: (\d+)/))){
total = amount*RegExp.$1
c[v].innerHTML+="<br />"+name+": "+sign+total+""
};};};});});}
smc_money_code("FORUM","NAME","SIGN","AMOUNT")
</script>
This lets you add the money code to a certain forum.  You can add more lines to let it add to more parts of the forum.
Code: [Select]
smc_money_code("FORUM","NAME","SIGN","AMOUNT")
FORUM = Put the name of the forum you want the money code to be for
NAME = Put the name of the money for the forum you want the money named.
SIGN = The sign you want for the forum your chose
AMOUNT = The ammount a user will get for a post for that forum.
« Last Edit: May 02, 2008, 04:14:33 pm by simply sibyl »
Check out Revolution X's Brand new Code Index!

Offline Hermione47

  • SMF For Free Member
  • *
  • Posts: 97
  • I am THE ~Hermione Fan~
    • View Profile
    • SnakeToothes School For Wizards And Witches

  • Total Badges: 16
    Badges: (View All)
    Windows User Topic Starter Combination Level 3 Level 2
Re: Money Code V2
« Reply #1 on: August 13, 2007, 11:30:39 pm »
Um Agent Moose? I was wondering if I could put more then ONE forum name in the "FORUM NAME"? Because I want the amount to be in more then ONE forum....help?
Wanna be a wizard? Come to SnakeToothes

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Money Code V2
« Reply #2 on: August 14, 2007, 10:15:16 am »
Yes you can.  That is what this is.

If I put it on Simple Machine Codes, I could do something like this:
Code: [Select]
smc_money_code("SMF For Free Codes","Money","$","2")
smc_money_code("SMF For Free Codes Requests","RAWR","$","4")
Check out Revolution X's Brand new Code Index!

Offline Hermione47

  • SMF For Free Member
  • *
  • Posts: 97
  • I am THE ~Hermione Fan~
    • View Profile
    • SnakeToothes School For Wizards And Witches

  • Total Badges: 16
    Badges: (View All)
    Windows User Topic Starter Combination Level 3 Level 2
Re: Money Code V2
« Reply #3 on: August 15, 2007, 01:04:13 pm »
um well the code still doesnt seem to work for me....I seem a bit confused I think.....what am I doing wrong? I put the code in like this:
Headers:
<script src="http://209.85.48.12/9581/134/upload/p4217340.ibf">//Jquery code</script>
Footers:
<script>
function smc_money_code(forum,name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
$("a.nav").each(function(){
if(this.innerHTML.match(forum)){
c = $("div")
for (v=0;v<c.length;v++){
if((c[v].className=="smalltext")&&(c[v].innerHTML.match(/Posts: (\d+)/))){
total = amount*RegExp.$1
c[v].innerHTML+="<br />"+name+": "+sign+total+""
};};};});});}
smc_money_code("All Codes","Galleons","G$","5")
smc_money_code("Defence Against the Dark Arts Class","Galleons","G$","5")

Is there something wrong with the two codes? I dont get it because it doesnt show the amount of money they have on ANY forum.....why doesnt it work?
Wanna be a wizard? Come to SnakeToothes

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Money Code V2
« Reply #4 on: August 16, 2007, 05:41:33 pm »
hmmm...

Why don't you just give me the info on which forums you want it to show on and I will see what I can do.

EDIT:
I see your problem, Add this tag to the end of the code:
</script>
Check out Revolution X's Brand new Code Index!

Offline Hermione47

  • SMF For Free Member
  • *
  • Posts: 97
  • I am THE ~Hermione Fan~
    • View Profile
    • SnakeToothes School For Wizards And Witches

  • Total Badges: 16
    Badges: (View All)
    Windows User Topic Starter Combination Level 3 Level 2
Re: Money Code V2
« Reply #5 on: August 16, 2007, 11:25:23 pm »
Um.....info? Im afraid I dont understand....sorry. I'll give you the LINK to the forums though THAT may not help....heres the link(to the topic IN the forum anyway....and I figured out that the actaully FORUM wasnt called Defence Against The Dark Arts CLASS its just that WITHOUT the class in it!LOL But the money doesnt show up where its supposed to or else Im just blind and I dont where the money IS....:( ):http://snaketoothesschool.smfforfree3.com/index.php/topic,2.msg39.html#new
Wanna be a wizard? Come to SnakeToothes

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Money Code V2
« Reply #6 on: August 17, 2007, 03:09:31 am »
Try this for your footers.
Code: [Select]
<script>
function smc_money_code(forum,name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
$("a.nav").each(function(){
if(this.innerHTML.match(forum)){
c = $("div")
for (v=0;v<c.length;v++){
if((c[v].className=="smalltext")&&(c[v].innerHTML.match(/Posts: (\d+)/))){
total = amount*RegExp.$1
c[v].innerHTML+="<br />"+name+": "+sign+total+""
};};};});});}
smc_money_code("Defence Agaianst the Dark Arts","Galleons","G$","5")
</script>
Check out Revolution X's Brand new Code Index!

Offline UnitedMommies

  • SMF For Free Newbie
  • *
  • Posts: 6
  • ~*Moms Rock*~
    • View Profile
    • United Mommies

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Money Code V2
« Reply #7 on: September 11, 2007, 02:40:58 am »
is there a way for ppl to "spend" the "money"? Like a shop that lets them instantly purchase pixels for their profiles or posts or a way admin can go in and take cash out of accounts manually?
Join UnitedMommies today! All Moms, All ages & stages welcome.

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] Money Code V2
« Reply #8 on: September 11, 2007, 01:28:44 pm »
is there a way for ppl to "spend" the "money"? Like a shop that lets them instantly purchase pixels for their profiles or posts or a way admin can go in and take cash out of accounts manually?

Currently there is no manual code that you can add to put a shop on your forum. Simple Machines has mods for different types of shops but SMF is the only one that can add them to our forums. He stated previously that he is currently working on one so hopefully he will have it finished soon. If you are using one of Moose's two money codes, and you want to remove someones "cash" the only way you can do it is by reducing their post count since the money they earn from these codes is based on post count.

In a nutshell.. for the time being.... you will just have to use your imagination and come up with creative ways your members can use their money (except to purchase a higher post count because you have to REDUCE their post count to take their money. Increasing their post count would also increase their money).

Offline Batista Smack

  • SMF For Free Newbie
  • *
  • Posts: 3
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Money Code V2
« Reply #9 on: September 16, 2007, 11:49:35 am »
Frist of all , I Would Love to know what the Money Code is For ?

Offline Alex

  • SMF For Free Full Member
  • *
  • Posts: 116
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Money Code V2
« Reply #10 on: September 16, 2007, 09:23:14 pm »
When you post it give you money which is under you posts or above. if smf had the shop mod you use this as money.

This is what i think it is i don't use it much tho lol
sig coming soon!

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] Money Code V2
« Reply #11 on: September 16, 2007, 11:52:39 pm »
The "money code" is a way for you to be creative on your forum and let your members earn money, or whatever else you want to let them earn, based on how often they post. Ive seen alot of creative names for them....Money, Dubloons, Gold Coins, and even Scooby Snacks..lol. In order for them to "spend" the money you would have to come up with something creative. The only way to redude their money when they spend it is to reduce their post count though, which kind of defeats the purpose of having it.

This code (and the 1st version of it), was made because alot of people wanted SMF to add a shop/cash mod on our forums (which is he considering doing), so Moose was able to come up with something to keep everyone happy until he does. The only problem with this money code is that it wont work with a shop mod that SMF installs because both would have to be linked together in the same mod so they can communicate (when someone buys something, it reduces their money).


Right now, the benefit from the money codes are: Its an incentive to get your forum members to post more because they are earning something for doing it.
« Last Edit: September 16, 2007, 11:54:51 pm by Kimmie »

Offline TigerBeachMom

  • SMF For Free Newbie
  • *
  • Posts: 4
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Money Code V2
« Reply #12 on: September 25, 2007, 07:51:04 am »
I have a question...how come the money shows up 2 or 3 times in a board.  If you take a look at World News on our forum, you'll see my posts I made today where the forum money is showing up 3 times.  I want the members to earn forum money in all posts they make.  Do I have to add the child boards in this part of the code -----> FORUM = Put the name of the forum you want the money code to be for  Any help would be greatly appreciated!   :smitten: :smitten:
« Last Edit: September 27, 2007, 11:20:39 am by TigerBeachMom »

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Money Code V2
« Reply #13 on: September 25, 2007, 07:54:05 pm »
If you want it all around the forum, you would want to use this version:
http://smcodes.smfforfree3.com/index.php/topic,31.0.html
Check out Revolution X's Brand new Code Index!

Offline TigerBeachMom

  • SMF For Free Newbie
  • *
  • Posts: 4
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Money Code V2
« Reply #14 on: September 25, 2007, 08:07:43 pm »
If you want it all around the forum, you would want to use this version:
http://smcodes.smfforfree3.com/index.php/topic,31.0.html

ty ty ty ty so much hun!   :smitten: :smitten: :smitten:

 

Related Topics

  Subject / Started by Replies Last post
40 Replies
18760 Views
Last post August 10, 2012, 10:21:39 pm
by LittleMsLily
money code help

Started by guest2694 « 1 2 3 » SMF For Free Codes and Support

31 Replies
5687 Views
Last post March 17, 2008, 07:21:15 pm
by simply sibyl