News:

Create A Forum Installed

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

0 Members and 1 Guest are viewing this topic.

Offline Lucky

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
  • Gender: Male
  • http://Lucky4m.tk
  • Location: India
    • View Profile
    • Lucky4m.tk

Badges: (View All)
Topic Starter Level 1 First Post
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

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
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

Badges: (View All)
Topic Starter Level 1 First Post
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

Badges: (View All)
Linux User Mobile User Level 5
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
4496 Views
Last post December 02, 2014, 06:57:57 pm
by CyanProductions
13 Replies
2695 Views
Last post November 13, 2011, 02:21:42 pm
by Samuel IceWind
2 Replies
1293 Views
Last post March 13, 2016, 05:53:07 pm
by mr.brain
2 Replies
1452 Views
Last post March 13, 2016, 08:11:08 pm
by mr.brain
0 Replies
1792 Views
Last post March 13, 2016, 08:00:59 pm
by CreateAForum