Advertise Here

Author Topic: money code/ with member group post background  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

guest2694

  • Guest
money code/ with member group post background
« on: January 23, 2008, 11:42:44 am »
Forum Url: http://ourhangout.smfforfree4.com
I added the option to change background post area..I am only putting that for full members and this is working great! However now my money code only shows on non full members who do not have the  background being used? What did I do wrong this time :o

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: money code/ with member group post background
« Reply #1 on: January 23, 2008, 12:02:37 pm »
Hi Isaiahs Grandma   
Im not familiar with that code -  Im sure someone who is will help out.
In the meantime Im going to move this on over to the Codes Section.

guest2694

  • Guest
Re: money code/ with member group post background
« Reply #2 on: January 23, 2008, 12:11:25 pm »
Forum Url: http://ourhangout.smfforfree4.com
ok thank you so much!

Offline Celebrus

  • SMF For Free Hero
  • *
  • Posts: 941
    • View Profile
    • Vikhyat Korrapati

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: money code/ with member group post background
« Reply #3 on: January 24, 2008, 10:00:30 am »
Hi Isaiahs Grandma   
Im not familiar with that code -  Im sure someone who is will help out.
In the meantime Im going to move this on over to the Codes Section.

The post background code is from SMCodes. ;D

guest2694

  • Guest
Re: money code/ with member group post background
« Reply #4 on: January 25, 2008, 07:15:38 am »
Forum Url: http://ourhangout.smfforfree4.com
It is a code I got from here. I am using it in my full members profile area, where I have the option to post your own background. It is being used as a reward system for post count. The problem is that I wanted to add the money code, and show banana dollars for the post count beings it fits the monkey theme of my site. This and the normal post count does not show up on members using a custom background. How would I fix this?

guest2694

  • Guest
Re: money code/ with member group post background
« Reply #5 on: January 28, 2008, 11:36:28 am »
Forum Url: http://ourhang out.smfforfree4.com
The code I am using is this:

<script>
if(location.href.match(/topic,/i)) {
feild = document.getElementsByTagName("div");
//Created by Agent Moose (smcodes.smfforfree3.com)
for(q=0;q<feild.length;q++) {
if(feild[q].innerHTML.match(/Post Background: (.+?)</i) && feild[q].className == "smalltext") {
feild[q].parentNode.parentNode.parentNode.style.backgroundImage = "url('"+RegExp.$1+"')";
feild[q].parentNode.parentNode.parentNode.style.backgroundRepeat = "no-repeat";
feild[q].parentNode.parentNode.parentNode.style.backgroundPosition ="center center";
feild[q].innerHTML = feild[q].innerHTML.replace(/Post Background: (.*)/i, "");
};};};
</script>

However I would like to use this as well!

<script>
function smc_money_code(name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
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("Post Bananas","$","5")
</script>

Both codes do work, However The members using their own backgrounds in the custom profile area, do not have the post count or my Banana money visable. Is there a way these two codes could be used together or combined?

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: money code/ with member group post background
« Reply #6 on: January 28, 2008, 11:48:55 am »
Since the codes (the script codes)  change things on your forum keep in mind that not all of the codes are going to work well together.     

 As far as combining them goes that would of course be a question for Agent Moose or someone else who knows coding and knows how to do it.   

guest2694

  • Guest
Re: money code/ with member group post background
« Reply #7 on: January 28, 2008, 12:14:47 pm »
Forum Url: http://ourhangout.smfforfree4.com
Ok no real emergency, just thought it would look nice on the board. I'll sit tight and wait to see if he can update it! Thank You! :)

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: money code/ with member group post background
« Reply #8 on: January 28, 2008, 12:18:52 pm »
Forum Url: http://ourhangout.smfforfree4.com
Ok no real emergency, just thought it would look nice on the board. I'll sit tight and wait to see if he can update it! Thank You! :)

yeah maybe he can do so.
I don't like playing aroudn with java.
I have (abit) for a code on my own forum and it works sweet but I won't mess with codes for others forums lol

guest2694

  • Guest
Re: money code/ with member group post background
« Reply #9 on: January 28, 2008, 12:40:19 pm »
Forum Url: http://ourhangout.smfforfree4.com
Me either, I have tried sever things on my test site, and to no avail! :D

 

Related Topics

  Subject / Started by Replies Last post
18 Replies
18691 Views
Last post August 16, 2010, 12:28:58 am
by Inferno-Legion
2 Replies
1893 Views
Last post October 14, 2007, 12:42:22 pm
by valadi
2 Replies
1177 Views
Last post June 09, 2008, 02:00:34 pm
by Sparkwattclock
3 Replies
1546 Views
Last post February 15, 2009, 09:46:06 am
by simply sibyl
1 Replies
16587 Views
Last post September 23, 2019, 06:43:36 pm
by SMF For Free