Author |
Message |
tacops
New Member


Joined: Jul 31, 2005
Posts: 10
|
Posted:
Sun Jul 31, 2005 4:58 am |
|
Hey guys i need some help with user info block that im using. I managed to input the avatar showing option but when i logout the avatar is blank as in error image not the blank image any ideas im sure its simple thanks. Slowly learning
here is the link to the block i am currently using. +/- around line 195 i just need it so it shows the blank.gif for anonymous
Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Sun Jul 31, 2005 11:04 am |
|
maybe i understand your question wrong but the avatar only shows when your logged in.. |
|
|
|
 |
tacops

|
Posted:
Sun Jul 31, 2005 8:32 pm |
|
yes it only shows when im logged in , what i mean is that when im not or an anonymous user visits the site the pic is like an error box it does not know what pic to use as no user is logged in. All i want it to show when no one is logged in is the blank.gif until user registers or logs in. Take a look at www.tacopscheats.com thanks |
|
|
|
 |
hitwalker

|
Posted:
Mon Aug 01, 2005 3:58 am |
|
well im not shure if it changed (cant imagine) but your avatar seems to be at the wrong place.
ill explain..
the avatar used for the forums are located at :
modules\Forums\images\avatars
But yours is at :
images\avatars
Now the funny thing isyou have a avatar at :
http://www.tacopscheats.com/images/avatars/blank.gif
But thats not recoqnized for some reason.. |
|
|
|
 |
tacops

|
Posted:
Mon Aug 01, 2005 4:22 am |
|
ill change to location thanks  |
|
|
|
 |
tacops

|
Posted:
Mon Aug 01, 2005 5:57 am |
|
its that dam block hehe bad user i guess  |
|
|
|
 |
hitwalker

|
Posted:
Mon Aug 01, 2005 5:59 am |
|
|
|
 |
tacops

|
Posted:
Mon Aug 01, 2005 7:57 am |
|
nope i guess i need to tell it when no user is logged in show blank gif but i suck at php |
|
|
|
 |
hitwalker

|
Posted:
Mon Aug 01, 2005 8:17 am |
|
well that block is outdated as far as i can tell .. |
|
|
|
 |
tacops

|
Posted:
Tue Aug 02, 2005 1:58 am |
|
Yeah u think it could be a security risk? Im using phpnuke 7.4 , im always up to date with patches i dont want a block to send all that work to the sh*ts  |
|
|
|
 |
hitwalker

|
Posted:
Tue Aug 02, 2005 2:55 am |
|
no it doesnt have anything to do with any risk.
the avatar is allways been a big problem in blocks..
further when it works as it should then visitor shouldnt even see an avatar.
personally i dont like the block,and you have a choice of dozens outhere.. |
|
|
|
 |
tacops

|
Posted:
Tue Aug 02, 2005 5:32 am |
|
thanks for the help and quick response cheers m8 |
|
|
|
 |
hitwalker

|
Posted:
Tue Aug 02, 2005 5:36 am |
|
if you want a d*** good working one i suggest the czm module...its a block..lol |
|
|
|
 |
tacops

|
Posted:
Tue Aug 02, 2005 5:58 am |
|
I will look into it but the prob are all the other addons for user accounts and stuff i have added hehehe  |
|
|
|
 |
hitwalker

|
Posted:
Tue Aug 02, 2005 6:05 am |
|
well if your handy you can solve it yourself...
for example...download ravens Site Info block..
like here on the site it uses a avatar if your logged in..
look up the code and see whats the difference is with yours... |
|
|
|
 |
hitwalker

|
Posted:
Tue Aug 02, 2005 6:12 am |
|
It will be a litle like this,you might even try this one...
Code:
/* Info for users which is logged in */
if (is_user($user)) {
if ($userinfo[user_avatar]) {$content .= "<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=$TBLWIDTH><tr><td width=\"100%\" height=\"10\"></td></tr><tr><td width=\"100%\"><center><img src=\"modules/Forums/images/avatars/$GALLERY/$userinfo[user_avatar]\" alt=\"\"></center></td></tr>\n";}
|
|
|
|
|
 |
tacops

|
Posted:
Tue Aug 02, 2005 6:26 am |
|
Thanks m8 thats what we do when in rome ill give it a looksy and then try it out. |
|
|
|
 |
hitwalker

|
Posted:
Tue Aug 02, 2005 6:29 am |
|
|
|
 |
tacops

|
Posted:
Tue Aug 02, 2005 6:33 am |
|
Thanks  |
|
|
|
 |
|