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, 63 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 - (fix)6.9 avatar problems location(gallery)inconsistencies [ ]
 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
jesus-squirrel
Nuke Soldier
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17


PostPosted: Sun Dec 21, 2003 1:18 pm Reply with quoteBack to top

Razz Razz 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
Code:
// $userinfo[user_avatar] = ereg_replace("gallery/","",$userinfo[user_avatar]);
---
old
Code:
$userinfo[user_avatar] = ereg_replace("gallery/","",$userinfo[user_avatar]);

line number 797: display from the the default "gallery" folder only, here.
new
Code:
echo "<option value=\"gallery/$file\">$file</option>";

---
old
Code:
echo "<option value=\"$file\">$file</option>";


ERRROR THIS HAS BEEN ADDED AFTER THE ORIGINAL DOCUMENTATION
line number 800 :
new :
Code:
echo "</select>&nbsp;&nbsp;<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" name=\"avatar\" width=\"32\" height=\"32\" alt=\"\"></td></tr>"
."<tr><td bgcolor='$bgcolor2'>"._YICQ.":<br>"._OPTIONAL."</td>"

old :
Code:
echo "</select>&nbsp;&nbsp;<img src=\"modules/Forums/images/avatars/gallery/$userinfo[user_avatar]\" name=\"avatar\" width=\"32\" height=\"32\" alt=\"\"></td></tr>"
."<tr><td bgcolor='$bgcolor2'>"._YICQ.":<br>"._OPTIONAL."</td>"



line number 983: here, any path after the avatar folder is found in data base "gallery/" not needed

new
Code:
// $user_avatar = 'gallery/'."$user_avatar";
---
old
Code:
 $user_avatar = 'gallery/'."$user_avatar";

file:
\includes\javascript.php

line number 49 make js script display avatar from any gallery in the database ( used in "your_info" update.
new
Code:
echo "'$nukeurl/modules/Forums/images/avatars/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value\n";

---
old
Code:
 echo "'$nukeurl/modules/Forums/images/avatars/gallery/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value\n";


How the "user_avatar" field appears in the "nuke_users" database table

blank.gif -- new user that has not been assigned an avatar

gallery2/canim.gif -- avatar assigned from my second gallery

18855497743fda2c784f26b.gif -- avatar from the web or users hard drive

gallery/045.gif -- avatar from default gallery.

Download zip file with avatarfix.doc,, index.php and .. javascript.php at
http://s88920839.onlinehome.us/modules.php?name=Downloads
questions to
Webmaster@s88920839.onlinehome.us


Last edited by jesus-squirrel on Sun Dec 28, 2003 9:35 am; edited 3 times in total
Find all posts by jesus-squirrelView user's profileSend private messageSend e-mail
jesus-squirrel
Nuke Soldier
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17


PostPosted: Fri Dec 26, 2003 10:30 am Reply with quoteBack to top

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

Add change in index.php in modules\Your_Account\

line number 800 :
new :
Code:
echo "</select>&nbsp;&nbsp;<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" name=\"avatar\" width=\"32\" height=\"32\" alt=\"\"></td></tr>"
."<tr><td bgcolor='$bgcolor2'>"._YICQ.":<br>"._OPTIONAL."</td>"

old :
Code:
echo "</select>&nbsp;&nbsp;<img src=\"modules/Forums/images/avatars/gallery/$userinfo[user_avatar]\" name=\"avatar\" width=\"32\" height=\"32\" alt=\"\"></td></tr>"
."<tr><td bgcolor='$bgcolor2'>"._YICQ.":<br>"._OPTIONAL."</td>"


ZIP FILE HAS BEEN UPDATED
You can download the latest release of this fix from Chris Colberg Solutions.
Internet : http://s88920839.onlinehome.us/modules.php?name=Downloads
E-mail : Webmaster@s88920839.onlinehome.us


Last edited by jesus-squirrel on Sun Dec 28, 2003 9:33 am; edited 1 time in total
Find all posts by jesus-squirrelView user's profileSend private messageSend e-mail
jesus-squirrel
Nuke Soldier
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17


PostPosted: Fri Dec 26, 2003 5:34 pm Reply with quoteBack to top

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)

ZIP FILE HAS BEEN UPDATED
You can download the latest release of this fix from Chris Colberg Solutions.
Internet : http://s88920839.onlinehome.us/modules.php?name=Downloads
E-mail : Webmaster@s88920839.onlinehome.us


Last edited by jesus-squirrel on Sun Dec 28, 2003 9:41 am; edited 1 time in total
Find all posts by jesus-squirrelView user's profileSend private messageSend e-mail
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Sat Dec 27, 2003 9:30 am Reply with quoteBack to top

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 Rolling Eyes
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please Exclamation
Find all posts by djmazeView user's profileSend private messageVisit poster's website
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
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.209 Seconds - 183 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::