| Author |
Message |
jesus-squirrel
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17
|
Posted:
Sun Dec 14, 2003 9:17 am |
  |
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
http://s88920839.onlinehome.us/ |
|
|
    |
 |
djw2
Sergeant


Joined: Aug 28, 2003
Posts: 98
Location: St. Louis, MO
|
Posted:
Sun Dec 14, 2003 10:52 am |
  |
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.
PEACE! |
_________________ It has become appallingly obvious that our technology has exceeded our humanity.
--Albert Einstein |
|
     |
 |
jesus-squirrel
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17
|
Posted:
Sat Dec 20, 2003 5:35 pm |
  |
(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> <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> <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 |
|
    |
 |
jesus-squirrel
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17
|
Posted:
Fri Dec 26, 2003 10:12 am |
  |
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> <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> <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 |
|
    |
 |
jesus-squirrel
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17
|
Posted:
Fri Dec 26, 2003 10:20 am |
  |
Duplicate Post |
Last edited by jesus-squirrel on Sun Dec 28, 2003 2:53 pm; edited 1 time in total |
|
    |
 |
jesus-squirrel
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17
|
Posted:
Fri Dec 26, 2003 5:22 pm |
  |
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 |
|
    |
 |
andyr6381
Nuke Cadet


Joined: Oct 26, 2003
Posts: 2
|
Posted:
Sun Dec 28, 2003 5:39 am |
  |
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 |
|
|
   |
 |
jesus-squirrel
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17
|
Posted:
Sun Dec 28, 2003 7:53 am |
  |
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... |
|
|
    |
 |
Dr_Flex
Private


Joined: Dec 27, 2003
Posts: 45
|
Posted:
Sun Dec 28, 2003 10:22 am |
  |
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:::::.....
|
|
      |
 |
jesus-squirrel
Nuke Soldier


Joined: Dec 14, 2003
Posts: 17
|
Posted:
Sun Dec 28, 2003 10:54 am |
  |
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 |
|
|
    |
 |
andyr6381
Nuke Cadet


Joined: Oct 26, 2003
Posts: 2
|
Posted:
Thu Jan 01, 2004 2:42 pm |
  |
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 |
|
|
   |
 |
Getyousomeofthis
Sergeant


Joined: Jan 18, 2004
Posts: 128
Location: Tulsa Oklahoma
|
Posted:
Sat Feb 07, 2004 5:37 pm |
  |
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 You guys rock  |
|
|
    |
 |
|
|