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, 61 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Avatar 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 14, 2003 9:17 am Reply with quoteBack to top

Php-Nuke avatar location (gallery) inconsistencies..
Php-Nuke 6.9 avatar gallery locations(seen in 6.8 and 7.0)
/modules/Forums/images/avatars/gallery/(default gallery)
I have added gallery2 here also
/modules/Forums/images/avatars/gallery2/
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

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.

I will post code for this fix In a new post here after I have tested it further.....
Test AT Razz
http://s88920839.onlinehome.us/
Find all posts by jesus-squirrelView user's profileSend private messageSend e-mail
djw2
Sergeant
Sergeant


Joined: Aug 28, 2003
Posts: 98

Location: St. Louis, MO

PostPosted: Sun Dec 14, 2003 10:52 am Reply with quoteBack to top

Thanks.

I've been working on this for a while.

Seems like everytime I fix it in one area it screws something else up.

I feel like I'm going in circles.

Confused


PEACE!

_________________
It has become appallingly obvious that our technology has exceeded our humanity.
--Albert Einstein
Find all posts by djw2View user's profileSend private messageSend e-mailVisit poster's website
jesus-squirrel
Nuke Soldier
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17


PostPosted: Sat Dec 20, 2003 5:35 pm Reply with quoteBack to top

(fix) Php-Nuke avatar location (gallery) inconsistencies..

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


THIS LINE WAS LEFT OUT OF 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'><b>"._YICQ.":</b><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'><b>"._YICQ.":</b><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.

DOCUMENTATION IN ZIP FILE HAS BEEN UPDATED BECAUSE OF ERROR...
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 2:47 pm; 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 10:12 am Reply with quoteBack to top

ERROR ERROR..... 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'><b>"._YICQ.":</b><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'><b>"._YICQ.":</b><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 2:50 pm; edited 2 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:20 am Reply with quoteBack to top

Duplicate Post


Last edited by jesus-squirrel on Sun Dec 28, 2003 2:53 pm; 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:22 pm Reply with quoteBack to top

OOPs forgot 1 more thing Avatar

In your forum configuration ( from forum admin page)change both the
“Avatar Storage Path”
and
“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 2:57 pm; edited 2 times in total
Find all posts by jesus-squirrelView user's profileSend private messageSend e-mail
andyr6381
Nuke Cadet
Nuke Cadet


Joined: Oct 26, 2003
Posts: 2


PostPosted: Sun Dec 28, 2003 5:39 am Reply with quoteBack to top

why on earth the user account has a seperate section from the forum profile when they identical jobs.

Really the profile from the phpbb should be used in the account info as well, surely its possible to pull this code out and use it instead of the crappy phpnuke account info. Then there would be no problems faffing about with gallerys etc.

A
Find all posts by andyr6381View user's profileSend private message
jesus-squirrel
Nuke Soldier
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17


PostPosted: Sun Dec 28, 2003 7:53 am Reply with quoteBack to top

That was my original Idea Andy. But after looking at the code in the forum area Idecided that this simple fix was all I could manage ,now, at my current skill level with PHP and Php_Nuke...
Find all posts by jesus-squirrelView user's profileSend private messageSend e-mail
Dr_Flex
Private
Private


Joined: Dec 27, 2003
Posts: 45


PostPosted: Sun Dec 28, 2003 10:22 am Reply with quoteBack to top

It doesn't work... I downloaded your fix and applyed it but it still doesn't do the trick. In addition the forum's avatars stopped showing up. Do you know how to fix it?

_________________
.....:::::Life Is Money And Money Is Life:::::.....
Find all posts by Dr_FlexView user's profileSend private messageSend e-mailVisit poster's websiteICQ Number
jesus-squirrel
Nuke Soldier
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17


PostPosted: Sun Dec 28, 2003 10:54 am Reply with quoteBack to top

Dr_flex: This fix has been tested only for php-nuke version 6.9 only.....

Does the version you downloaded have avatarfix3.doc in it.
thats the latest version of the documentation

1. We added documentation about
Line 800 in modules\Your_Account\index.php
2. and ADMIN PAGE / FORUM CONFIG changes.

Pay close attention to where the various avatar gallerys(folders) are stored.
1. all gallerys(such as "gallery" the default avatar gallery folder) are stored in the "/modules/Forums/images/avatars/"
folder. Any extry gallerys will be in here too.

2. Uploaded avatars ( avatars that users uploaded from harddrive or the web .gif or .jpg files ) are stored in
"/modules/Forums/images/avatars/" folder.

This last change to the forum configuration under admin in important to use with this fix.

I have updated this post and it may be a little easyer to read.
http://nukecops.com/postt17345.html
and will update the post your on soon.

if you cant fix it send me your modules\Your_Account\index.php file by email and I will compare it to mine..

contact me here
E-mail : Webmaster@s88920839.onlinehome.us
Find all posts by jesus-squirrelView user's profileSend private messageSend e-mail
andyr6381
Nuke Cadet
Nuke Cadet


Joined: Oct 26, 2003
Posts: 2


PostPosted: Thu Jan 01, 2004 2:42 pm Reply with quoteBack to top

fair play,

im learning to slowly but surely, have 3 books here on my desk. Maybe I will do it at some point when I know enough.

As it is at the moment is silly, confusing to members , irritating and inconsistent, is it fixed in nuke 7 or is it the same.

I editied the avatar section in my account info, and removed the upload from there and added a link to the other phpbb page.

I think it would be useful to pull only the upload avatar section of phpbb and have this open in a new window all off its own from the account info page.

A
Find all posts by andyr6381View user's profileSend private message
Getyousomeofthis
Sergeant
Sergeant


Joined: Jan 18, 2004
Posts: 128

Location: Tulsa Oklahoma

PostPosted: Sat Feb 07, 2004 5:37 pm Reply with quoteBack to top

Nice work guys thanks a lot for the fix . At first i thought it was not working but all i had to do was go back in and chose my Avatar again and it showed Very Happy You guys rock Cool
Find all posts by GetyousomeofthisView 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.265 Seconds - 221 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::