NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 10-26-2005 00:10:03

nickjuly4
New member

how do you add a avatar

How do you add avatars to Wax Poteto?

Last edited by nickjuly4 (10-26-2005 00:10:21)

Offline

#2 10-28-2005 06:13:02

Pinkie
Member

Re: how do you add a avatar

Hey, are you from my forum? PWF? If so... hi! smile

Take a look here: http://www.suteki.nu/community/viewthread.php?tid=1719

Offline

#3 10-29-2005 23:03:02

nickjuly4
New member

Re: how do you add a avatar

yea i'm, thanks for the help pinkie.

Last edited by nickjuly4 (10-29-2005 23:04:00)

Offline

#4 10-29-2005 23:41:08

nickjuly4
New member

Re: how do you add a avatar

I did all the things it said and it works but because my oekaki host has ads it put a ad in the avatar include iframe but I can still see the avatar if I click and drag to the bottom. How do you get the avatar_include iframe to load at the bottom.

Offline

#5 10-30-2005 05:21:07

Pinkie
Member

Re: how do you add a avatar

I can host the avatar_include.php thing for you... and you could just link to mine instead of yours.... or try using this code in index.php (instead of the one Kameloh posted)

Code:

<?php
$result = mysql_query("SELECT smallavatar FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$user'");
$row = mysql_fetch_array($result);


?>


<div align="left"><img src="<?=$row['smallavatar']?>" width="50" height="50" border="1"
/></div>

I don't pretend to be an expert when it comes to mySQL, so it may not work. If it doesn't, perhaps just try this:

Code:

<div align="left"><img src="<?=$row['smallavatar']?>" width="50" height="50" border="1"
/></div>

Again... I'm not sure this'll work, but to avoid the ads you have to ditch the Iframes for sure.

Offline

#6 10-30-2005 22:25:52

nickjuly4
New member

Re: how do you add a avatar

I found a way to get it to load at the bottom but the web page has to fully loas for it to work. I added <meta http-equiv="refresh" content="0; url=#bottom"> at the top of the code and I added a anchor tag at the bottom of the code (<a name="bottom"></a>)

inclde_avatar.php

<meta http-equiv="refresh" content="0; url=#bottom">
<BODY STYLE="background-color:transparent" leftmargin="0" topmargin="0">
<?php
include('dbconn.php');
$result = mysql_query("SELECT smallavatar FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$user'");
$row = mysql_fetch_array($result);
?>
<div align="center"><img src="<?=$row['smallavatar']?>" width="50" height="50" border="1" /></div>
<a name="bottom"></a>

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB