Php-Nuke 6.9 avatar gallery locations(seen in 6.8 and 7.0)
Place "blank.gif" in to each of your gallerys to handle all situations where some has a blank avatar, such as new users.
1.
/modules/Forums/images/avatars/gallery/(default gallery)
2.
I have added gallery2 here also
/modules/Forums/images/avatars/gallery2/
3.
location of avitars uploaded by user
/modules/Forums/images/avatars/
When Php-nuke is installed and the new user goes to Your_account/Your_info and selects an avatar from the dropdown list the avatar is assigned but the link is created to
/modules/Forums/images/avatars/
not
/modules/Forums/images/avatars/gallery(where default gallery actually is)
(From forum area)
If the user selects an avatar from the forum page using "Profile". Then the avatar is select correctly.. Also the avatar selection in Profile can see multiple gallerys....
(From Your_account area)
If users try to update user info under "Your_account/Your_info".. the avitar link may become invalid after the user exits with "select"from "Your_info".
I think I have fixed the problem by editing statements like this
src=\"modules/Forums/images/avatars/$userinfo[user_avatar]
found in "modules/your_account/index.php" and the java script function showimage() found in javascrip.php
After fix editing avatars from "Your_account/Your_info" will only allow you to select avatars from the default gallery but will not have undesired effects on other gallery selections. Users avatars will now display correctly from any gallery in areas in which avatars are displayed.
It is recommended that if this fix is used .. to make avatar changes under the forums "profile" tab.
Files updated:
modules\Your_Account\index.php
line number 771: force existing code to use path as its found in data base
new
Last edited by jesus-squirrel on Sun Dec 28, 2003 9:35 am; edited 3 times in total
jesus-squirrel Nuke Soldier
Joined: Dec 14, 2003
Posts: 17
Posted:
Fri Dec 26, 2003 10:30 am
ERROR ERROR..... ( if you did the fix manualy)This error only applies to the documentation .. the index.php and javascript.php files in the zip file are OK..
Last edited by jesus-squirrel on Sun Dec 28, 2003 9:33 am; edited 1 time in total
jesus-squirrel Nuke Soldier
Joined: Dec 14, 2003
Posts: 17
Posted:
Fri Dec 26, 2003 5:34 pm
OOPs forgot 1 more thing
FROM FORUM ADMIN PAGE / FORUM CONFIG
In your forum configuration change both paths
1. “Avatar Storage Path” and
2. “Avatar Gallery Path”
to: modules/Forums/images/avatars
To upload avatars the “avatar” directory must have write rights (CHMOD 777)(mine uses 755 for folders and 644 for image files).
(if you have more than one gallery on your server they should all be under the
path: modules/Forums/images/avatars)
Last edited by jesus-squirrel on Sun Dec 28, 2003 9:41 am; edited 1 time in total
djmaze Captain
Joined: Nov 29, 2003
Posts: 566
Location: Netherlands
Posted:
Sat Dec 27, 2003 9:30 am
well i fixed them all in my upcomming special Nuke6.5 release with loads of bugfixes and add-ons.
What i did was saving avatar in database as "gallery/blank.gif" changed all avatar settings to "modules/Forums/images/avatars/"
Also i modified the Your_Account module so it shows a directory list with containing jpg/gif/png images instead of only images like this:
gallery/blank.gif
gallery/001.gif
etc.
this way you can add more directories with images like "gallery2/image.png"
So all avatars can be setup in Forum profile and Your_Account
_________________ Famous people never give their signature http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please
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