Full Version : N00b
llamatronics >>Other Programming >>N00b


<< Prev | Next >>

sniperatic- 08-14-2005
OK, i done the shop now, i have made it like SCB's, its the best you can do with what forumer offer you,

LlamaTronics- 08-14-2005
Hey snipe... Only 1 thing wrong with yuor shop.... Because the money is completely based off of # of posts... you can't descrease there money, without decreasing thier post count!

so, Paying 1000 LP$ for 10 posts is not possible! The will just gain more LP$ instead of going down 1000 and up 10 posts!!

For a system like this to work, the money field can not be directly related to the post count... If you had access to the database, you could add an LP$ field, but we don't on forumer, so you can't.

sniperatic- 08-14-2005
Yeah i know, ive thought of a way round it smile.gif, and btw, ure now moderator smile.gif thx

+ is there a way to edit <--- The part on the left? Like you have added ONlon/Offline? or is that the skin?

LlamaTronics- 08-14-2005
Yes, you can make changes to it... Just be carefull it effects the whole post section!

Admin CP --> HTML Templates --> Manage HTML --> Topic View Section --> Then click "Edit Single" next to what you want to change.... which probably is "Post Entry"

Hope that helps!

sniperatic- 08-14-2005
Did you add that Online/Offline thing? or is it the skin?

Mr. Grim- 08-14-2005
you have to edit it. I will post the code up in a sec. biggrin.gif

Go to Admin CP > Skins & Templates > HTML Templates > Manage HTML > Topic View Section > Footer. At the end, put:

CODE
<script language="javascript" type="text/javascript">
<!-- Online Status Indicator for Forumer - by Markup

onlineStatus = "<p style='color:green;font-weight:bold'><img src='http://img86.exs.cx/img86/6840/useronline6oh.gif' alt='Online'> Online</p>"
offlineStatus = "<p style='color:red;font-weight:bold'><img src='http://img91.exs.cx/img91/5369/useroffline9qd.gif' alt='Offline'> Offline</p>"

document.write("<iframe name='index' src='" + location.href.split("?")[0] + "' style='display:none' onload='harvest()'></iframe>")

function harvest()
{
var div = window.frames["index"].document.getElementsByTagName("div")
for(var i = 0; i < div.length; i++)
   if(div[i].className == "thin")
       break
var a = div[i].getElementsByTagName("A")
var names = new Array(a.length)
for(i = 0; i < a.length; i++)
   names[i] = a[i].innerHTML.replace(/<[^>]+>/g, "")
updateStatus(names)
}

function updateStatus(names)
{
var td = document.getElementsByTagName("td")
for(i = 0; i < td.length; i++)
   if((td[i].className == "post1" || td[i].className == "post2") && td[i].cellIndex == 0 && !td[i].innerHTML.match("Unregistered"))
   {
       var found = false
       var postDetails = td[i].getElementsByTagName("span")[0]
       for(j = 0; j < names.length; j++)
           if(td[i - 2].innerHTML.replace(/<[^>]+>/g, "") == names[j])
           {
                 postDetails.innerHTML += onlineStatus
                 found = true
           }
       if(!found)
           postDetails.innerHTML += offlineStatus
   }
}

// -->
</script>


To replace the icon for On/Off, change these links with your own:

CODE
onlineStatus = "<p style='color:green;font-weight:bold'><img src='http://img86.exs.cx/img86/6840/useronline6oh.gif' alt='Online'> Online</p>"
offlineStatus = "<p style='color:red;font-weight:bold'><img src='http://img91.exs.cx/img91/5369/useroffline9qd.gif' alt='Offline'> Offline</p>"


Hope it helps biggrin.gif

sniperatic- 08-14-2005
OK, thnx

Mr. Grim- 08-14-2005
no prob.

balrogdandd- 08-15-2005
i used to use invisionfree boards, and i recall that the RPG hacks would store the player data in the user's signature. would it be possible to do this with a money hack on forumer? this would allow for decreasing the money without editing the user's post count

Mr. Grim- 08-15-2005
no idea, never heard of the RPG hack, so i can't say. But maby.

balrogdandd- 08-15-2005
people on invisionfree forums were always looking for a RPG that they could play on the forums. people finally began to code their own and they were essentially just more code on pages. some people went as far as making it JavaScript based, and hosting it offsite, so the only things on the forums were the data was stored in the users signatures and the code in the footer that led to the javascripts. i havent seen any for use in forumer, but they did not require editing any files that we do not have access to.

Mr. Grim- 08-15-2005
well, perhaps. But i have no idea.

LlamaTronics- 08-15-2005
Hmm .. I don't think that is possible with Forumer.... mainly because we don't have file access... Just access to parts of files...

Mr. Grim- 08-15-2005
why cant forumer make a free version of vBulletin. They could ad more ads for all i care. I woundn't mind.

sniperatic- 08-16-2005
Yeah there is no way that yyou can make an RPG hack on forumer boards,

Free Forum Hosting by Forumer.comTM!