|
Agent Moose
|
 |
« on: August 13, 2007, 09:40:59 pm » |
|
Add this to the top of your headers if you don't have it: <script src="/jquery.js"></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("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. 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 »
|
Logged
|
Eternal Flame Coming SoonSMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.
|
|
|
|
|
Hermione47
SMF For Free Member
Offline
Posts: 98
I am THE ~Hermione Fan~
|
 |
« 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?
|
|
|
|
|
Logged
|
|
|
|
|
Agent Moose
|
 |
« 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: smc_money_code("SMF For Free Codes","Money","$","2") smc_money_code("SMF For Free Codes Requests","RAWR","$","4")
|
|
|
|
|
Logged
|
Eternal Flame Coming SoonSMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.
|
|
|
Hermione47
SMF For Free Member
Offline
Posts: 98
I am THE ~Hermione Fan~
|
 |
« 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?
|
|
|
|
|
Logged
|
|
|
|
|
Agent Moose
|
 |
« 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>
|
|
|
|
|
Logged
|
Eternal Flame Coming SoonSMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.
|
|
|
Hermione47
SMF For Free Member
Offline
Posts: 98
I am THE ~Hermione Fan~
|
 |
« 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
|
|
|
|
|
Logged
|
|
|
|
|
Agent Moose
|
 |
« Reply #6 on: August 17, 2007, 03:09:31 am » |
|
Try this for your 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("Defence Agaianst the Dark Arts","Galleons","G$","5") </script>
|
|
|
|
|
Logged
|
Eternal Flame Coming SoonSMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.
|
|
|
UnitedMommies
SMF For Free Newbie
Offline
Posts: 7
~*Moms Rock*~
|
 |
« 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?
|
|
|
|
|
Logged
|
Join UnitedMommies today! All Moms, All ages & stages welcome.
|
|
|
|
Kimmie
|
 |
« 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).
|
|
|
|
|
Logged
|
|
|
|
Batista Smack
SMF For Free Newbie
Offline
Posts: 3
|
 |
« Reply #9 on: September 16, 2007, 11:49:35 am » |
|
Frist of all , I Would Love to know what the Money Code is For ?
|
|
|
|
|
Logged
|
|
|
|
Alex
SMF For Free Full Member
Offline
Posts: 116
|
 |
« 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
|
|
|
|
|
Logged
|
sig coming soon!
|
|
|
|
Kimmie
|
 |
« 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 »
|
Logged
|
|
|
|
TigerBeachMom
SMF For Free Newbie
Offline
Posts: 5
|
 |
« 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! 
|
|
|
|
« Last Edit: September 27, 2007, 11:20:39 am by TigerBeachMom »
|
Logged
|
|
|
|
|
|
|
|
|
|
|