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.2
Author Message
BrianG
New Member
New Member



Joined: May 05, 2004
Posts: 7

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

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







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

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..
 
BrianG







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

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.
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

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

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
blith
Client



Joined: Jul 18, 2003
Posts: 977

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

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

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

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

No more red x's!!
 
View user's profile Send private message
Raven







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

Ah yes, another sticky promotion. Thanks!
 
BrianG







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

Glad this info helped everyone!!! Very Happy Very Happy
 
ballymuntrev
Hangin' Around



Joined: Mar 22, 2004
Posts: 49

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

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







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

Or "forums.cfg" file in your Theme itself. Actually that'd probably be preferred rather than changing the subSilver.cfg file Confused
 
blith







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

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";
 
diabluntd







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

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!!!!!
 
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

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

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

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







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

the no_avatar.gif image is already in the images folder, it should work...
 
sqzdog







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

nope, it's not working. Did I insert the code properly and in the correct file?
 
blith







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

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...
 
sqzdog







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

I'm still getting the red "x", even on new posts. I made the change to my subsilver.cfg file also.
 
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.2

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 ©