» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 64
0 members and 64 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on Assign avatar for Guest or Anonymous within the FAQ/Fixes forums, part of the Nukemods category; If you allow guest posting in your Forums, then you may want to add this little hack in order for ...



Go Back   Nukemods Forum » Nukemods » FAQ/Fixes

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-25-2003, 09:54 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Assign avatar for Guest or Anonymous
If you allow guest posting in your Forums, then you may want to add this little hack in order for your Guest/Anonymous user to have an assigned default avatar.
To make this work do the following.

open modules/Forums/viewtopic.php
Find this line
Code:
if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )
change it to this
Code:
if ( $postrow[$i]['user_avatar_type'] && $postrow[$i]['user_allowavatar'] )
Now you need to assign an Avatar to the Anonymous user in the Database.
Go to your Database table _users.
I recommend using phpMyadmin
Browse the users and select the Anonymous. This is usually user_id number 1.
The user_avatar field needs to be changed to whatever.gif (your guest avatar image name) Make sure you upload this Guest Avatar to both the modules/Forums/images/avatars and modules/Forums/images/avatars/gallery folders just in case your pathing is screwy. :wink:

If it doesn't work up to this point then open viewtopic.php and comment out or remove the following lines:

Code:
if ( $poster_id == ANONYMOUS )
{
$poster_avatar = '[img]'.  $images['guest_avatar'] .'[/img]';
 }
mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow Anonymous to Posting killtodeath Nuke 7.x - General 1 10-13-2006 06:08 PM
Guest post / icon under assigned avatar kow_patt Open topics 3 02-25-2005 05:14 PM
subBlack3dBlue Guest Image is blank with an X submit2s Theme packs 9 10-18-2004 10:47 AM
How do I assign an avatar to a forum guest poster? evapor8 Theme packs 2 07-27-2003 11:04 AM
KISGB (keep it simple guest book) v5.0 Module Martin Purged Topics 0 01-20-2003 09:14 AM


All times are GMT -5. The time now is 07:32 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31