Site Visitor Block

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Site Visitor Block
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
What I want to do is display the Avatar in the Site Visitor Block regardless of where it is. Currently the Avatar has to be in the gallery, but our private members avatars where being used by the public so I moved them to an alternate image/avatar folder on the site. This however caused the avatar to not be displayed in the block.

Here is the code:

// Display all information
if (is_user($user) )
{
   // Determine how many READ Messages and how many UNREAD Messages
   $result = sql_query( "select user_id from $prefix"._users." where username='$username'", $dbi);
   list( $user_id ) = sql_fetch_row( $result, $dbi );
   $result2 = sql_query( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='1' or privmsgs_type='5')", $dbi );
   $MesUnread = sql_num_rows( $result2 );
   $result3 = sql_query( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='0')", $dbi );
   $MesRead = sql_num_rows( $result3 );

   // Info for users which is logged in
    if ($userinfo[user_avatar]) {
      $content .= "<br><center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center><br>\n";
   }
   $content .= "<img src=images/visitors/anon.gif>"._SV_WELCOME."<b>&nbsp;".$username."</b><br>\n";
   $content .= "<img src=images/visitors/arrow.gif>&nbsp&nbsp<a href=\"modules.php?name=Your_Account&op=logout\">Logout</a>\n";
   $content .= "<hr color=\"#000000\" size=\"1\">\n";
   $content .= "<img src=images/visitors/priv.gif>&nbsp<a href=\"modules.php?name=Private_Messages\"><b>"._SV_PRIVMSG."</b></a><br>\n";
   $content .= "<img src=images/visitors/upriv.gif>"._SV_UNREAD."<b>".$MesUnread."</b><br>\n";
   $content .= "<img src=images/visitors/rpriv.gif>"._SV_READ."<b>".$MesRead."</b><br>\n";
   $content .= "<hr color=\"#000000\" size=\"1\">\n";


I would like to change this to display the avatar based on what the user has selected in the Avatar contol panel that I have installed.



_________________
Back to top Reply with quote
#2   re: Site Visitor Block
aUsTiN
CZ Active Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
Do you allow avatar uploading?
Do you allow offsite linking?
If you allow uploading, whats the directory?
What is the new folder the avatars are in?

Answer that & i will see about getting you a script to show all the different avatars =-)



Back to top Reply with quote
#3   re: Site Visitor Block
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
I do have avatar uploading enabled, and offsite linking enabled.

Avatar storage path is modules/Forums/images/avatars.

I guess thats where any uploaded avatars would go. Nobody has yet uploaded any.

I placed all of our private members avatars in the following directory [ Register or login to view links on this board. ]


All this would be alot easier if I could figure out how to create multiple gallerys. I could just make a public gallery and a 3rdID_Only gallery.
It should be obvious not to use any 3rdID_Only avatars.

I don't know however, if the Site Visitor block avatar image would work with multiple galleries to choose from.



Back to top Reply with quote
#4   re: Site Visitor Block
aUsTiN
CZ Active Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
If you will set your board up how you want it, multiple galleries, then update this post letting me know you have, i will check your site. If it will not work with multiple galleries i can make you a small code fix, to remedy that.



Back to top Reply with quote
#5   re: Site Visitor Block
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
That is just it. I have tried countless of times to create another gallery in addition to the default one, but have had no luck. I have searched several forums for some instruction but could not find any.

Running 6.5 on the site now.



Back to top Reply with quote
#6   re: Site Visitor Block
aUsTiN
CZ Active Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
All you have to do, unless Nuke altered their ripped of codes..lol... is add another folder in the avatars, then in the phpBB ACP enable gallery avatars.



Back to top Reply with quote
#7   re: Site Visitor Block
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
Enable gallery avatars Yes
Enable remote avatars Yes
Avatars linked to from another website Yes
Enable avatar uploading Yes


...and have also created public and 3rdID directories under avatar in the following path.

/public_html/modules/Forums/images/avatars/gallery

I also created 3rdID directory under avatars
/public_html/modules/Forums/images/avatars/3rdID

Nothing works. I can't see any new gallery under any of these setups.

All I get is the default gallery shown, which is empty



Back to top Reply with quote
#8   re: Site Visitor Block
aUsTiN
CZ Active Member
usa.gif georgia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 09, 2003
0.02 posts per day
Posts: 142
Points: 57
  MSN Messenger 
I see the "Gallery" & "3rdId" galleries.
[ Register or login to view links on this board. ]

The above is one of the 6 broken images in the 3rdId gallery.



Back to top Reply with quote
#9   re: Site Visitor Block
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
WTH...I had tried this several time in the past but not lately. Now I try it and poof, it happens.

*wipes egg off of face*

Why would I have broken images?



Back to top Reply with quote
#10   re: Site Visitor Block
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
Well , If anybody can help me get my 3rd ID avatars to display in other than the default gallery I'd apprieciate it.

Thanks for your help aUsTiN.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum