PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   This topic is locked: you cannot edit posts or make replies.
Author Message
TheosEleos
Life Cycles Becoming CPU Cycles


Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Thu Oct 16, 2003 3:29 pm Reply with quote Back to top

18-delta wrote:
did this change work?


The answer is yes.

I have no red Xs at my site. I have no idea what will happen when someone tries to use a gallery image as thier avatar though. Most people that come to my site will upload something anyway.

Here is my new site. It will probably "go live" sometime next week. It should get pretty busy.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address ICQ Number
18-delta
Hangin' Around


Joined: Oct 08, 2003
Posts: 36
Location: U.S.

PostPosted: Thu Oct 16, 2003 10:21 pm Reply with quote Back to top

TheosEleos, great job on your site.

As you mentioned you have no red x's but you can't choose an avatar from the gallery in Your Info. If you select "List" it lists them but they do not show up as selections in the entry box. You have done as I have, made it functional and thats what counts at this point and time. Like i said, site looks great.
View user's profile Send private message Visit poster's website
TheosEleos
Life Cycles Becoming CPU Cycles


Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Thu Oct 16, 2003 10:23 pm Reply with quote Back to top

Now I understand.


Thanks for the compliments.
View user's profile Send private message Visit poster's website AIM Address ICQ Number
johnnycard
New Member
New Member


Joined: Oct 25, 2003
Posts: 19

PostPosted: Sat Oct 25, 2003 9:59 am Reply with quote Back to top

I've just applied the SQL query as of Page 1 of this topic as described by Raven, after testing it with one user

Quote:
UPDATE nuke_users
set user_avatar = 'gallery/'||user_avatar
where user_avatar not like 'gallery%';


It has fixed some users (some of the newest ones) but for the majority of users it has replaced their avatar as either "0" or "1" minus the quote marks

I made a backup as suggested and would like to *reinstall* the previous nuke_users table but am unsure on how to do this

I copied all the user info and pasted into the Run query section on PHPMyAdmin but it gave errors saying that they already existed

Anyone got any suggestions, any help would be greatly appreciated

JC
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Sat Oct 25, 2003 10:04 am Reply with quote Back to top

Drop the table and then, using the SQL window, paste the code from your backup in the SQL window and click Go. You will lose any new users since your backup, of course.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
johnnycard
New Member
New Member


Joined: Oct 25, 2003
Posts: 19

PostPosted: Sat Oct 25, 2003 10:23 am Reply with quote Back to top

Many thanks Raven, that did the trick

I think I'll be better off just changing the avatars individually now in PHPMyAdmin
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Mon Oct 27, 2003 9:14 am Reply with quote Back to top

I fixed my own problem by copying all the avatar images from the 'gallery' folder to the (up one level) 'avatar' folder.

I revisited the Forum/Config settings page and noticed that although it says quite clearly on the page that the default forum avatar path is:
modules/Forums/images/avatars/gallery
The default path in the editable text box is:
modules/Forums/images/avatars
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


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

PostPosted: Mon Oct 27, 2003 9:23 am Reply with quote Back to top

Try changing the avatar in the Your Info panel and also uploading an avatar (Forum Profile) to see if it works in all cases. Then see if the avatar is visible in the Your Account page.


Last edited by Raven on Mon Oct 27, 2003 3:23 pm; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
TheosEleos
Life Cycles Becoming CPU Cycles


Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Mon Oct 27, 2003 3:21 pm Reply with quote Back to top

My uploaded avatar shows up in the gallery now.
View user's profile Send private message Visit poster's website AIM Address ICQ Number
TheosEleos
Life Cycles Becoming CPU Cycles


Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Wed Oct 29, 2003 5:41 am Reply with quote Back to top

This is now the second time I had to replace the blank.gif file in avatars/gallery. For some reason it keeps getting deleted.
View user's profile Send private message Visit poster's website AIM Address ICQ Number
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Nov 04, 2003 2:49 am Reply with quote Back to top

After a few weeks trying the impossible, I simply followed step by step Raven's instructions. AND MY PROBLEM IS OVER!
So, friends, let's trust our Nuke expert and not try to mix his fixes with our stubborn ideas! He's (almost Cool ) always right ehehehe Very Happy
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Nov 04, 2003 4:56 am Reply with quote Back to top

As the thread will demonstrate, there is still a problem. If Your Info is used to make other changes, the avatar can still get messed up. gallery keeps getting added to the path. I know where in the code it happens but see no way, yet, to fix it Sad. Anyway, it's better than it was.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Nov 04, 2003 5:10 am Reply with quote Back to top

Raven wrote:
As the thread will demonstrate, there is still a problem. If Your Info is used to make other changes, the avatar can still get messed up. gallery keeps getting added to the path. I know where in the code it happens but see no way, yet, to fix it Sad. Anyway, it's better than it was.


And what if we copy the avatars being in the gallery folder into the avatars folder too?
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Nov 04, 2003 5:23 am Reply with quote Back to top

Nope. If I remember correctly, gallery gets added every time so it becomes /gallery/gallery/gallery. You can avoid this by removing the Your Info option and just forcing users to use the forum profile, I think.

FB has known about this ever since he integrated phpbb into nuke. Personally, I think it is irresponsible of him to continue to add useless 'features' w/o first fixing long standing wrong programming.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Nov 04, 2003 5:26 am Reply with quote Back to top

Raven wrote:
Nope. If I remember correctly, gallery gets added every time so it becomes /gallery/gallery/gallery. You can avoid this by removing the Your Info option and just forcing users to use the forum profile, I think.


OK. I think this may help. If I deactivate Your Account Module, shall the users be able to enter the webmail or the PM sections in Nuke?
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Nov 04, 2003 5:29 am Reply with quote Back to top

You know what? You might try this. In my original instructions, I say this
Code:
Then on or about line 771 comment out this line
$userinfo[user_avatar] = ereg_replace("gallery/","",$userinfo[user_avatar]);
so it should look like this
//$userinfo[user_avatar] = ereg_replace("gallery/","",$userinfo[user_avatar]);
Instead of commenting that line out, modify it to read this
Code:
Then on or about line 771 modify this line
$userinfo[user_avatar] = ereg_replace("gallery/","",$userinfo[user_avatar]);
to read
$userinfo[user_avatar] = ereg_replace("gallery/gallery/","gallery/",$userinfo[user_avatar]);
Let me know if that works.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Nov 04, 2003 5:45 am Reply with quote Back to top

Ok, Raven, I'll try and let u know. Just a curiosity:

Quote:
If Your Info is used to make other changes, the avatar can still get messed up. gallery keeps getting added to the path.


Where should the avatar get messed up? In the Site Info Block and Your Info? or in the forum (post andprofile) too?


Last edited by morpheus_75 on Tue Nov 04, 2003 5:49 am; edited 1 time in total
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Nov 04, 2003 5:48 am Reply with quote Back to top

You will see it when you save your profile from Your Info a few times.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Nov 04, 2003 6:01 am Reply with quote Back to top

Raven wrote:
You will see it when you save your profile from Your Info a few times.


No, Raven. I don't get any error. And I haven't made the modifications u mentioned yet. The only error I get, now, is when i try to upload the avatar from the forum profile.

Code:
Warning: copy(./modules/Forums/images/avatars/3e657ed83fa794b0d589f.jpg): failed to open stream: Permission denied in D:\Inetpub\webs\whatisthematrixit\includes\usercp_avatar.php on line 267
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Nov 04, 2003 6:23 am Reply with quote Back to top

It's not an error that you will see. The image will be broken.

That other error is a permissions error and if you have set the permission to 777 on those folders as I mentioned to you, that should resolve that. It has to be set INDIVIDUALLY on each folder, as I mentioned.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Nov 04, 2003 6:31 am Reply with quote Back to top

Raven wrote:
It's not an error that you will see. The image will be broken.


I've been trying tons of times. The image is there. No broken link. U can see it In the Site Info block, in Tour Info and in forum (profile and posts). Confused
Try if u want...

Raven wrote:
That other error is a permissions error and if you have set the permission to 777 on those folders as I mentioned to you, that should resolve that. It has to be set INDIVIDUALLY on each folder, as I mentioned.


Yes, I know, but I think it depends on the server. I cannot change CHMOD preferences with my FTP account... Crying or Very sad
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Nov 04, 2003 6:35 am Reply with quote Back to top

PM me your ftp url, id, password. I'm not doubting you, I just want to try something Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Nov 04, 2003 6:40 am Reply with quote Back to top

Raven wrote:
PM me your ftp url, id, password. I'm not doubting you, I just want to try something Smile


I'll do it right now! Wink But Ive just talked to my provider help desk and I was told that there are 3 special folders that have not to be removed (cgi-bin, mdb-database and public). In these folders it i possible to write. Not in any other... Crying or Very sad
View user's profile Send private message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Nov 04, 2003 7:07 am Reply with quote Back to top

Ok, i was wrong. If i change avatar from the gallery in User Info, it updates Site info block, but not the forum profile and the forum posts. That's why in the forum posts I now get a broken image. The strange thing is the path when u rightclick on the broken avatar: there's no path at all!!! Only the domain name... Shocked
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Nov 04, 2003 7:11 am Reply with quote Back to top

I don't believe you ever mentioned that you were on a windows server (IIS 6.0) :YUCK: . .htaccess files will have no effect at all so don't bother wasting your time there. I assume you have already applied the header() fix too.

Anyway, have your host set the permissions on the folders as I explained to allow read/write. If they refuse then I would switch hosts, which I would do anyway to get to a *nix host. Raven Web Hosting would be an excellent choice Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   This topic is locked: you cannot edit posts or make replies.

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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum