Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

iiPod

iiPod Avatar

*****
ProNation

401


October 2009
What I really want to do with a skin is have a box in the little table I've done that has your avvy. I have a nice 200x200 cell for it, and everything else is done. No matter how hard I have tried, I haven't been able to write a piece of JS for it. I don't know whether I'll have to use Cookies or just do something like:


<script type="text/javascript">

document.write(''pb_avatar'');

</script>


I know that is really wrong, but I just don't have any other ideas. Can anyone help me? In fact, like it is on the 'Module Lite' skin of here, the avatar section.

Also, anyone who manages to help me will get a mention, don't worry. :P


Last Edit: Dec 28, 2009 12:15:57 GMT by iiPod
Looking for a coder, PM me.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
forum.sz-ex.com/index.cgi?action=display&board=opensrc&thread=5914

You could use that, but otherwise yes, you'd need to use cookies. It's not regularly available on every page without storing it.

iiPod

iiPod Avatar

*****
ProNation

401


October 2009
Ahh, right, thanks for that, that's a lovely code there. One thing... How would I get it to work in a table in this code:

<td
style="border: 1px solid rgb(207, 207, 207); height: 80px; text-align: left; vertical-align: top; class="windowbg"; background-repeat: repeat-x; width: 200px; background-color: rgb(228, 228, 228);"><script type="text/Javascript" src="http://iycatacombs.com/codes/os/rankholder.js"></script></td>


Sorry if I'm being seriously n00bish and annoying, sorry.
Looking for a coder, PM me.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Whereever that table is:
<td
style="border: 1px solid rgb(207, 207, 207); height: 80px; text-align: left; vertical-align: top; class="windowbg"; background-repeat: repeat-x; width: 200px; background-color: rgb(228, 228, 228);" id="avatar_holder"></td>



Global footers:
<script type="text/Javascript" src="http://iycatacombs.com/codes/os/rankholder.js"></script>
<script type="text/Javascript">
document.getElementById("avatar_holder").innerHTML = ($get("avatar")?"<img src='"+$get("avatar")+"'>":"");
</script>


That'll set it to the avatar if there is one or nothing if there isn't... well, it should anyways.

iiPod

iiPod Avatar

*****
ProNation

401


October 2009
Hmmm... Doesn't work, thanks for your help anyway.

Edit: Found a code on ProVision


Last Edit: Dec 30, 2009 19:29:36 GMT by iiPod
Looking for a coder, PM me.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
iiPod Avatar
Hmmm... Doesn't work, thanks for your help anyway.

Edit: Found a code on ProVision


alright. :) Well, sorry I couldn't help too much. :P

newBookmarkLockedFalling