You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 299 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - missing 'default avatar' for guests/anonymous [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
intel352
Lieutenant
Lieutenant


Joined: Mar 11, 2003
Posts: 180


PostPosted: Wed Aug 20, 2003 3:39 am Reply with quoteBack to top

in viewtopic.php, around line ~897:

Code:
        if ( empty($poster_avatar) && $poster_id != ANONYMOUS)
        {
                $poster_avatar = '<img src="'.  $images['default_avatar'] .'" alt="" border="0" />';
        }
        if ( $poster_id == ANONYMOUS )
        {
                $poster_avatar = '<img src="'.  $images['guest_avatar'] .'" alt="" border="0" />';
        }


apparently $images['guest_avatar'] << is not defined, and i have no idea where that array is filled, so i hacked it with this code as a replacement:

Code:
        if ( empty($poster_avatar) && $poster_id != ANONYMOUS)
        {
                $poster_avatar = '<img src="'.  $images['default_avatar'] .'" alt="" border="0" />';
        }
        if ( $poster_id == ANONYMOUS )
        {
                //$poster_avatar = '<img src="'.  $images['guest_avatar'] .'" alt="" border="0" />'; //changed by intel352
                $poster_avatar = '<img src="modules/Forums/images/avatars/blank.gif" alt="" border="0" />';
        }


i hacked it so that Guests in my forums don't keep showing the broken images (it would try to display just site url, since there is no value for that variable)

if someone more familiar with Forums 2.0.5/2.0.6 would please inform me as to where that array is defined, i would be very appreciative

_________________
Image
CSMapCentral || NukeBBMods
Find all posts by intel352View user's profileSend private messageVisit poster's websiteICQ Number
jsterling
Nuke Soldier
Nuke Soldier


Joined: Aug 02, 2003
Posts: 15


PostPosted: Thu Aug 21, 2003 4:28 am Reply with quoteBack to top

Info provided by Q

Quote:
modules\Forums\templates\[Template Name]\[Template Name].cfg

and add the following to the bottom (before ?>):

$images['default_avatar'] = "modules/Forums/$current_template_images/no_avatar.gif";

you can change [no_avatar.gif] to what ever you want to use for guests


Try that. Not sure if thats what your looking for. Also, theres a Default/No Avatar hack on phpbbhacks.com but I dont remember the specifics, but it will also do the trick.
Find all posts by jsterlingView user's profileSend private message
intel352
Lieutenant
Lieutenant


Joined: Mar 11, 2003
Posts: 180


PostPosted: Thu Aug 21, 2003 4:41 am Reply with quoteBack to top

okay, thanks, i appreciate it Wink

for every1 else's info, i defined the following:
Code:
$images['default_avatar'] = "modules/Forums/$current_template_images/blank.gif";
$images['guest_avatar'] = "modules/Forums/$current_template_images/blank.gif";

_________________
Image
CSMapCentral || NukeBBMods
Find all posts by intel352View user's profileSend private messageVisit poster's websiteICQ Number
maximus
Private
Private


Joined: Mar 18, 2003
Posts: 47

Location: Tulsa, Ok

PostPosted: Sat Aug 23, 2003 7:25 am Reply with quoteBack to top

i'm having this problem even after using the hacks above.
the red X shows a path of: modules/Forums/images/avatars/gallery/

where do i specify to point it to no_avatar.gif or, better yet, if the user hasn't specified an avatar, leave the space blank beneath their name?
Find all posts by maximusView user's profileSend private messageVisit poster's website
ThunderbirdJL
Nuke Cadet
Nuke Cadet


Joined: May 12, 2003
Posts: 4

Location: St. Louis, MO

PostPosted: Sun Aug 24, 2003 6:17 pm Reply with quoteBack to top

Thanks guys, I was having this problem with my clean install of Phpnuke 6.9 and this fixed it.
Find all posts by ThunderbirdJLView user's profileSend private message
intel352
Lieutenant
Lieutenant


Joined: Mar 11, 2003
Posts: 180


PostPosted: Sun Aug 24, 2003 7:05 pm Reply with quoteBack to top

point it to blank.gif, as i mentioned in my previous post

and, you edit the modules/Forums/templates/subSilver/subSilver.cfg file, as was already mentioned in this thread as well

_________________
Image
CSMapCentral || NukeBBMods
Find all posts by intel352View user's profileSend private messageVisit poster's websiteICQ Number
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Sun Aug 24, 2003 9:03 pm Reply with quoteBack to top

I got a little different twist on this problem. I'm testing a clean install of PHP-Nuke 6.9 on my beta site and didn't have a problem until I installed NSN Your Account 650. When I looked at my production site, which is running Nuke 6.5, I found out I had the same problem there too, but just didn't notice it until now. Everyone that signed up since I installed YAT has a red-x for an avatar, unless they picked a custom avatar since they reg'ed.

I posted the problem on Bob's board, so we'll see if he can offer any insights.

I've been picking through code for two days now, and everything is getting a little fuzzy... Shocked

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
intel352
Lieutenant
Lieutenant


Joined: Mar 11, 2003
Posts: 180


PostPosted: Mon Aug 25, 2003 1:57 pm Reply with quoteBack to top

isn't there a newer version of YAT by now?

_________________
Image
CSMapCentral || NukeBBMods
Find all posts by intel352View user's profileSend private messageVisit poster's websiteICQ Number
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Mon Aug 25, 2003 6:19 pm Reply with quoteBack to top

intel352 wrote:
isn't there a newer version of YAT by now?

No, but Bob is working on one...

Brujo wrote:

will be YAT recognize/updated to use the new features wif the gfx (0-7) in the [Nuke 6.9] config.php ?



Bob Marion wrote:

The new YAT that will be released after NSN-Nuke is released will go far beyond FB's config.php setting and will not use it at all.



Hrm... Cool

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Aug 25, 2003 6:51 pm Reply with quoteBack to top

Tried all the stuff above, same problem.

http://www.chicagobase.com/ftopic11.html
See the use Enigma's avatar is broken?
No Idea why in the #$%%^^&UHHGOGGOH JHO J

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Aug 25, 2003 9:34 pm Reply with quoteBack to top

You what people, screw everything, this is what I did.
I went to sql admin section, the default avatar is not in the database so I added blank.gif as default avatar in nuke_users database and guess what???
IT WORKS!!

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Tue Aug 26, 2003 12:26 am Reply with quoteBack to top

I finally figured out the problem with YAT 650 and came up with a fix. Here's the thread in case anyone is interested:

http://www.nukescripts.net/modules.php?name=Forums&file=viewtopic&p=2558

You never know who might be cruisin' around looking for an answer... Wink

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Tue Aug 26, 2003 9:11 am Reply with quoteBack to top

Oh wow, this is funny, we both ended up with same answer but posted in our own ways Very Happy

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
maximus
Private
Private


Joined: Mar 18, 2003
Posts: 47

Location: Tulsa, Ok

PostPosted: Tue Aug 26, 2003 3:47 pm Reply with quoteBack to top

k well i still can't get this to work, can you guys direct me to the correct version of the Your Account Tweak please?

also, Mesum, are you saying that you inserted blank.gif into your nuke_users table for each user that you have? i must be missing that part cuz i what would happen when new users sign up?

thanks for your help.
Find all posts by maximusView user's profileSend private messageVisit poster's website
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Tue Aug 26, 2003 7:43 pm Reply with quoteBack to top

Ok this is are the change I made.
Insead of
Code:

CREATE TABLE `nuke_users` (
  `user_id` int(11) NOT NULL auto_increment,
  `name` varchar(60) NOT NULL default '',
  `username` varchar(25) NOT NULL default '',
  `user_email` varchar(255) NOT NULL default '',
  `femail` varchar(255) NOT NULL default '',
  `user_website` varchar(255) NOT NULL default '',
  `user_avatar` varchar(255) NOT NULL default '',
  `user_regdate` varchar(20) NOT NULL default '',
  `user_icq` varchar(15) default NULL,
  `user_occ` varchar(100) default NULL,
  `user_from` varchar(100) default NULL,
  `user_interests` varchar(150) NOT NULL default '',
  `user_sig` varchar(255) default NULL,
  `user_viewemail` tinyint(2) default NULL,
  `user_theme` int(3) default NULL,
  `user_aim` varchar(18) default NULL,
  `user_yim` varchar(25) default NULL,
  `user_msnm` varchar(25) default NULL,
  `user_password` varchar(40) NOT NULL default '',
  `storynum` tinyint(4) NOT NULL default '10',
  `umode` varchar(10) NOT NULL default '',
  `uorder` tinyint(1) NOT NULL default '0',
  `thold` tinyint(1) NOT NULL default '0',
  `noscore` tinyint(1) NOT NULL default '0',
  `bio` tinytext NOT NULL,
  `ublockon` tinyint(1) NOT NULL default '0',
  `ublock` tinytext NOT NULL,
  `theme` varchar(255) NOT NULL default '',
  `commentmax` int(11) NOT NULL default '4096',
  `counter` int(11) NOT NULL default '0',
  `newsletter` int(1) NOT NULL default '0',
  `user_posts` int(10) NOT NULL default '0',
  `user_attachsig` int(2) NOT NULL default '0',
  `user_rank` int(10) NOT NULL default '0',
  `user_level` int(10) NOT NULL default '1',
  `broadcast` tinyint(1) NOT NULL default '1',
  `popmeson` tinyint(1) NOT NULL default '0',
  `user_active` tinyint(1) default '1',
  `user_session_time` int(11) NOT NULL default '0',
  `user_session_page` smallint(5) NOT NULL default '0',
  `user_lastvisit` int(11) NOT NULL default '0',
  `user_timezone` tinyint(4) NOT NULL default '10',
  `user_style` tinyint(4) default NULL,
  `user_lang` varchar(255) NOT NULL default 'english',
  `user_dateformat` varchar(14) NOT NULL default 'D M d, Y g:i a',
  `user_new_privmsg` smallint(5) unsigned NOT NULL default '0',
  `user_unread_privmsg` smallint(5) unsigned NOT NULL default '0',
  `user_last_privmsg` int(11) NOT NULL default '0',
  `user_emailtime` int(11) default NULL,
  `user_allowhtml` tinyint(1) default '1',
  `user_allowbbcode` tinyint(1) default '1',
  `user_allowsmile` tinyint(1) default '1',
  `user_allowavatar` tinyint(1) NOT NULL default '1',
  `user_allow_pm` tinyint(1) NOT NULL default '1',
  `user_allow_viewonline` tinyint(1) NOT NULL default '1',
  `user_notify` tinyint(1) NOT NULL default '1',
  `user_notify_pm` tinyint(1) NOT NULL default '1',
  `user_popup_pm` tinyint(1) NOT NULL default '0',
  `user_avatar_type` tinyint(4) NOT NULL default '3',
  `user_sig_bbcode_uid` varchar(10) default NULL,
  `user_actkey` varchar(32) default NULL,
  `user_newpasswd` varchar(32) default NULL,
  `user_group_cp` int(11) NOT NULL default '2',
  `user_active_cp` enum('YES','NO') NOT NULL default 'YES',
  `user_lastvisit_cp` datetime NOT NULL default '0000-00-00 00:00:00',
  `user_regdate_cp` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`user_id`),
  KEY `uid` (`user_id`),
  KEY `uname` (`username`),
  KEY `user_session_time` (`user_session_time`)
) TYPE=MyISAM AUTO_INCREMENT=22 ;


I have
Code:

CREATE TABLE `nuke_users` (
  `user_id` int(11) NOT NULL auto_increment,
  `name` varchar(60) NOT NULL default '',
  `username` varchar(25) NOT NULL default '',
  `user_email` varchar(255) NOT NULL default '',
  `femail` varchar(255) NOT NULL default '',
  `user_website` varchar(255) NOT NULL default '',
  `user_avatar` varchar(255) NOT NULL default 'blank.gif',
  `user_regdate` varchar(20) NOT NULL default '',
  `user_icq` varchar(15) default NULL,
  `user_occ` varchar(100) default NULL,
  `user_from` varchar(100) default NULL,
  `user_interests` varchar(150) NOT NULL default '',
  `user_sig` varchar(255) default NULL,
  `user_viewemail` tinyint(2) default NULL,
  `user_theme` int(3) default NULL,
  `user_aim` varchar(18) default NULL,
  `user_yim` varchar(25) default NULL,
  `user_msnm` varchar(25) default NULL,
  `user_password` varchar(40) NOT NULL default '',
  `storynum` tinyint(4) NOT NULL default '10',
  `umode` varchar(10) NOT NULL default '',
  `uorder` tinyint(1) NOT NULL default '0',
  `thold` tinyint(1) NOT NULL default '0',
  `noscore` tinyint(1) NOT NULL default '0',
  `bio` tinytext NOT NULL,
  `ublockon` tinyint(1) NOT NULL default '0',
  `ublock` tinytext NOT NULL,
  `theme` varchar(255) NOT NULL default '',
  `commentmax` int(11) NOT NULL default '4096',
  `counter` int(11) NOT NULL default '0',
  `newsletter` int(1) NOT NULL default '0',
  `user_posts` int(10) NOT NULL default '0',
  `user_attachsig` int(2) NOT NULL default '0',
  `user_rank` int(10) NOT NULL default '0',
  `user_level` int(10) NOT NULL default '1',
  `broadcast` tinyint(1) NOT NULL default '1',
  `popmeson` tinyint(1) NOT NULL default '0',
  `user_active` tinyint(1) default '1',
  `user_session_time` int(11) NOT NULL default '0',
  `user_session_page` smallint(5) NOT NULL default '0',
  `user_lastvisit` int(11) NOT NULL default '0',
  `user_timezone` tinyint(4) NOT NULL default '10',
  `user_style` tinyint(4) default NULL,
  `user_lang` varchar(255) NOT NULL default 'english',
  `user_dateformat` varchar(14) NOT NULL default 'D M d, Y g:i a',
  `user_new_privmsg` smallint(5) unsigned NOT NULL default '0',
  `user_unread_privmsg` smallint(5) unsigned NOT NULL default '0',
  `user_last_privmsg` int(11) NOT NULL default '0',
  `user_emailtime` int(11) default NULL,
  `user_allowhtml` tinyint(1) default '1',
  `user_allowbbcode` tinyint(1) default '1',
  `user_allowsmile` tinyint(1) default '1',
  `user_allowavatar` tinyint(1) NOT NULL default '1',
  `user_allow_pm` tinyint(1) NOT NULL default '1',
  `user_allow_viewonline` tinyint(1) NOT NULL default '1',
  `user_notify` tinyint(1) NOT NULL default '1',
  `user_notify_pm` tinyint(1) NOT NULL default '1',
  `user_popup_pm` tinyint(1) NOT NULL default '0',
  `user_avatar_type` tinyint(4) NOT NULL default '3',
  `user_sig_bbcode_uid` varchar(10) default NULL,
  `user_actkey` varchar(32) default NULL,
  `user_newpasswd` varchar(32) default NULL,
  `user_group_cp` int(11) NOT NULL default '2',
  `user_active_cp` enum('YES','NO') NOT NULL default 'YES',
  `user_lastvisit_cp` datetime NOT NULL default '0000-00-00 00:00:00',
  `user_regdate_cp` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`user_id`),
  KEY `uid` (`user_id`),
  KEY `uname` (`username`),
  KEY `user_session_time` (`user_session_time`)
) TYPE=MyISAM AUTO_INCREMENT=22 ;


Notice the difference in the user_avatar?
Now since people were not picking an avatar and as you can see, you should not be leaving this field blank, that's why person's avatar was pointing to modules/Forums/ThemeName/images/avatar or whatever you have configed in your Forums config area.
Now, since I add the image, every time when someone signs up for the website and does not pick an avarat, the Nuke will give that user a defualt avatar...... so no more pointing to some URL anymore Very Happy

*Edited for Code Correction.

_________________
Only FREE Dating site for Desis.

Last edited by Mesum on Tue Aug 26, 2003 9:19 pm; edited 1 time in total
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.155 Seconds - 447 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::