PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
BrianG
New Member
New Member


Joined: May 05, 2004
Posts: 7

PostPosted: Wed May 05, 2004 9:22 am Reply with quote Back to top

I am using Nuke 7.2
When a user deletes his Avatar, and does not replace it with something else.
They get the dreaded Red X.
Doesn't look like it points to anything but the Home Directory.

I looked in the Database at the users, and User Avatar type is set to 0.
Is there a way to make users that have it set to zero display a default Avatar instead of the Red X??

I've looked all over this forum for a fix to no prevail.
When I goto my Profile here at this site and delete my Avatar, it does not do it here.
So I was hoping you would have a quick fix for this.

Thanks Everyone.
View user's profile Send private message
BrianG
New Member
New Member


Joined: May 05, 2004
Posts: 7

PostPosted: Wed May 05, 2004 1:17 pm Reply with quote Back to top

I put the uploaded avatar fixes in place from chatserv. That didn't change anything on this issue.
Just can't figure out why if you decide to delete the avatar in your profile, it is giving me a Red X..

Please help..
View user's profile Send private message
BrianG
New Member
New Member


Joined: May 05, 2004
Posts: 7

PostPosted: Wed May 05, 2004 8:53 pm Reply with quote Back to top

After searching all day I finially came up with this.

// Default Avatar MOD
//
$images['default_avatar'] = "$current_template_images/no_avatar.gif";
$images['guest_avatar'] = "$current_template_images/guest_avatar.gif";

Goes into the Forum.cfg file.
Took care of it right away.

Why can't they just put this s**t in there to start with.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Wed May 05, 2004 10:13 pm Reply with quote Back to top

Thanks for sharing this. Today has been a crazy day (more crazy than usual) and it's been hard to keep up with all the new posts Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
blith
Life Cycles Becoming CPU Cycles


Joined: Jul 18, 2003
Posts: 937

PostPosted: Thu May 06, 2004 7:38 am Reply with quote Back to top

So this is something I need to put into my cfg file then? Where does it go? I have the same setup and problem...
View user's profile Send private message Visit poster's website
diabluntd
Hangin' Around


Joined: Mar 19, 2004
Posts: 31

PostPosted: Thu May 06, 2004 7:10 pm Reply with quote Back to top

oh my GOD you don't understand how much i love you!!!! This has been an issue for a long d*** time on our site and we'd tried EVERYTHING!

YOU RULE! THANK YOU SIR!!!!!!!!!!!!!!!!!!!!!!!!!
View user's profile Send private message
JGNYC
New Member
New Member


Joined: Oct 17, 2002
Posts: 5

PostPosted: Thu May 06, 2004 7:11 pm Reply with quote Back to top

THANK YOU!
This fix should be posted on the front page.

No more red x's!!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Thu May 06, 2004 9:15 pm Reply with quote Back to top

Ah yes, another sticky promotion. Thanks!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
BrianG
New Member
New Member


Joined: May 05, 2004
Posts: 7

PostPosted: Thu May 06, 2004 9:39 pm Reply with quote Back to top

Glad this info helped everyone!!! Very Happy Very Happy
View user's profile Send private message
ballymuntrev
Hangin' Around


Joined: Mar 22, 2004
Posts: 49

PostPosted: Fri May 07, 2004 5:30 am Reply with quote Back to top

Just to add, in case anyone (like me) was confused, the code...

Code:
// Default Avatar MOD
//
$images['default_avatar'] = "$current_template_images/no_avatar.gif";
$images['guest_avatar'] = "$current_template_images/guest_avatar.gif";


goes into your .cfg file within your actual theme, so, for instance, in the subSilver theme there is a file there called subSilver.cfg edit that file and enter the above code in there somewhere, underneath the other "$images" lines would suffice I'm sure.

At least this is what I'm presuming and have just tried it myself and it's working Smile

Thanks.
View user's profile Send private message Visit poster's website
ballymuntrev
Hangin' Around


Joined: Mar 22, 2004
Posts: 49

PostPosted: Fri May 07, 2004 5:31 am Reply with quote Back to top

Or "forums.cfg" file in your Theme itself. Actually that'd probably be preferred rather than changing the subSilver.cfg file Confused
View user's profile Send private message Visit poster's website
blith
Life Cycles Becoming CPU Cycles


Joined: Jul 18, 2003
Posts: 937

PostPosted: Fri May 07, 2004 7:05 am Reply with quote Back to top

ballymuntrev wrote:
Just to add, in case anyone (like me) was confused, the code...

Code:
// Default Avatar MOD
//
$images['default_avatar'] = "$current_template_images/no_avatar.gif";
$images['guest_avatar'] = "$current_template_images/guest_avatar.gif";


goes into your .cfg file within your actual theme, so, for instance, in the subSilver theme there is a file there called subSilver.cfg edit that file and enter the above code in there somewhere, underneath the other "$images" lines would suffice I'm sure.

At least this is what I'm presuming and have just tried it myself and it's working Smile

Thanks.


My code actually had to include "modules/Forums/" So it would look like this:
Code:
// Default Avatar MOD
//
$images['default_avatar'] = "modules/Forums/$current_template_images/no_avatar.gif";
$images['guest_avatar'] = "modules/Forums/$current_template_images/guest_avatar.gif";
View user's profile Send private message Visit poster's website
diabluntd
Hangin' Around


Joined: Mar 19, 2004
Posts: 31

PostPosted: Fri May 07, 2004 8:03 am Reply with quote Back to top

Same here blith. For other users please take note that you may have to add the modules/Forums part.

I woke up with a smile on my face because of this. NO RED X'S!!!!!
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

PostPosted: Fri May 07, 2004 9:28 am Reply with quote Back to top

Problem with this particular mod as with most is that many require changes to theme files and since it is not or wasn't a standard nuke mod not all themes include it
View user's profile Send private message Visit poster's website
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

PostPosted: Tue May 11, 2004 7:58 pm Reply with quote Back to top

Ok, I edited forums.cfg that was in my theme folder and added the text as directed. Below is a clip of where I put it:

Quote:
$images['voting_graphic'][0] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][1] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][2] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][3] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][4] = "$current_template_images/voting_bar.gif";

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

//
// Vote graphic length defines the maximum length of a vote result
// graphic, ie. 100% = this length
//


If I did the above right, now where do I put the no_avatar.gif image?
Do I need to edit the file in the subsilver folder too?
View user's profile Send private message Send e-mail
blith
Life Cycles Becoming CPU Cycles


Joined: Jul 18, 2003
Posts: 937

PostPosted: Wed May 12, 2004 7:26 am Reply with quote Back to top

the no_avatar.gif image is already in the images folder, it should work...
View user's profile Send private message Visit poster's website
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

PostPosted: Wed May 12, 2004 7:31 am Reply with quote Back to top

nope, it's not working. Did I insert the code properly and in the correct file?
View user's profile Send private message Send e-mail
blith
Life Cycles Becoming CPU Cycles


Joined: Jul 18, 2003
Posts: 937

PostPosted: Wed May 12, 2004 8:31 am Reply with quote Back to top

What theme do you use? Do you allow theme changes on your site? It will need to go in every .cfg file that you use for your forums. Mine is the subsilver.cfg and that is where I changed it Also it doesn't remove existing red xs at least on my site, it just prevents new ones from happening. If I am incorrect in this can someone tell me...
View user's profile Send private message Visit poster's website
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

PostPosted: Wed May 12, 2004 10:11 am Reply with quote Back to top

I'm still getting the red "x", even on new posts. I made the change to my subsilver.cfg file also.
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum