Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.4
Author Message
tacops
New Member
New Member



Joined: Jul 31, 2005
Posts: 10

PostPosted: Sun Jul 31, 2005 4:58 am Reply with quote

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 Smile

here is the link to the block i am currently using. +/- around line 195 Smile i just need it so it shows the blank.gif for anonymous Smile

http://tacops.spymac.net/block-Data_Center.rar
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sun Jul 31, 2005 11:04 am Reply with quote

maybe i understand your question wrong but the avatar only shows when your logged in..
 
View user's profile Send private message
tacops







PostPosted: Sun Jul 31, 2005 8:32 pm Reply with quote

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 [ Only registered users can see links on this board! Get registered or login! ] thanks
 
hitwalker







PostPosted: Mon Aug 01, 2005 3:58 am Reply with quote

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 : [ Only registered users can see links on this board! Get registered or login! ]
But thats not recoqnized for some reason..
 
tacops







PostPosted: Mon Aug 01, 2005 4:22 am Reply with quote

ill change to location thanks Smile
 
tacops







PostPosted: Mon Aug 01, 2005 5:57 am Reply with quote

its that dam block hehe Smile bad user i guess Smile
 
hitwalker







PostPosted: Mon Aug 01, 2005 5:59 am Reply with quote

Is it solved?
 
tacops







PostPosted: Mon Aug 01, 2005 7:57 am Reply with quote

nope Smile i guess i need to tell it when no user is logged in show blank gif but i suck at php
 
hitwalker







PostPosted: Mon Aug 01, 2005 8:17 am Reply with quote

well that block is outdated as far as i can tell ..
 
tacops







PostPosted: Tue Aug 02, 2005 1:58 am Reply with quote

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 Smile
 
hitwalker







PostPosted: Tue Aug 02, 2005 2:55 am Reply with quote

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







PostPosted: Tue Aug 02, 2005 5:32 am Reply with quote

thanks for the help and quick response Smile cheers m8
 
hitwalker







PostPosted: Tue Aug 02, 2005 5:36 am Reply with quote

if you want a d*** good working one i suggest the czm module...its a block..lol
 
tacops







PostPosted: Tue Aug 02, 2005 5:58 am Reply with quote

I will look into it but the prob are all the other addons for user accounts and stuff i have added hehehe Smile
 
hitwalker







PostPosted: Tue Aug 02, 2005 6:05 am Reply with quote

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







PostPosted: Tue Aug 02, 2005 6:12 am Reply with quote

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







PostPosted: Tue Aug 02, 2005 6:26 am Reply with quote

Thanks m8 thats what we do when in rome Smile ill give it a looksy and then try it out.
 
hitwalker







PostPosted: Tue Aug 02, 2005 6:29 am Reply with quote

good luck...
 
tacops







PostPosted: Tue Aug 02, 2005 6:33 am Reply with quote

Thanks Smile
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.4

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©