Author Topic: Question Related to money code  (Read 964 times)

0 Members and 0 Guests are viewing this topic.

Offline Lucky

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
  • Gender: Male
  • http://Lucky4m.tk
  • Location: India
    • View Profile
    • Lucky4m.tk
Question Related to money code
« on: March 03, 2012, 04:42:49 pm »
i had apply money code and i have a question related this. my question is how to reset the earning of one member . . . .  code link:  http://support.createaforum.com/5/(code)-money-code-(simple)/msg2549/#msg2549
« Last Edit: March 03, 2012, 04:49:22 pm by Lucky »

Share on Facebook Share on Twitter


Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Question Related to money code
« Reply #1 on: March 03, 2012, 04:47:44 pm »
Good question...... I think Agent Moose would need to remake his code for that then
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline jie9

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
    • 000webhost
Re: Question Related to money code
« Reply #2 on: March 13, 2012, 11:40:39 am »
i have a problem with that too.

Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile
Re: Question Related to money code
« Reply #3 on: March 14, 2012, 02:03:17 pm »
this is a very simple code, so you will probably not like this answer, but: to reset a persons money, you have to lower their post count.

How much money they ahve depends on their post couint.  If they have zero posts, they will have no money.
Code: [Select]
//Hint hint :)
if(/action=profile;u=(.*);sa=UserPage/i.test(location.href)){
var number = RegExp.$1;
var username = (smf_id_member !== "0") ? document.getElementById("upper_section").getElementsByTagName("li")[0].getElementsByTagName("span")[0].innerHTML : void(0);

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
3360 Views
Last post December 02, 2014, 06:57:57 pm
by CyanProductions
13 Replies
2097 Views
Last post November 13, 2011, 02:21:42 pm
by Samuel IceWind
2 Replies
1040 Views
Last post March 13, 2016, 05:53:07 pm
by mr.brain
2 Replies
1141 Views
Last post March 13, 2016, 08:11:08 pm
by mr.brain
0 Replies
1440 Views
Last post March 13, 2016, 08:00:59 pm
by CreateAForum