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, 120 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 - Avatar: a solution that seems to work! [ ]
 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
baraxas
Nuke Soldier
Nuke Soldier


Joined: Oct 09, 2003
Posts: 16


PostPosted: Thu Oct 09, 2003 12:17 pm Reply with quoteBack to top

Environment, in order of installation:

    phpnuke 6.5 (downloaded from sourceforge)

    Service Pack 8-14-03 (downloaded from nukecops)

    BBtoNuke NC-2.0.5 (downloaded from nukecops)

    BBtoNuke NC-2.0.5 to NC-2.0.6 Diff Pack (downloaded from nukecops)

    Downloads/Web Links security patch for Nuke 6.5 & up (downloaded from nukecops)


Procedure:

Modify the file modules/your_account/index.php line 804 from:

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


to

Code:
        echo "</select>&nbsp;&nbsp;<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" name=\"avatar\" width=\"32\" height=\"32\" alt=\"\"></td></tr>"


then modify includes/javascript.php line 49 from:

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


to

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


Forum configuration:

Domain Name: http://www.yourdomain.com
Script path: /
Smilies Storage Path: modules/Forums/images/smiles
Avatar Storage Path: modules/Forums/images/avatars
Avatar Gallery Path: modules/Forums/images/avatars

Finally copy all the images in modules/Forums/images/avatars/gallery in modules/Forums/images/avatars.

That's all! Very Happy

Tested and working on www.panoramatic.com.

--
Visit my site www.zuddas.com
Find all posts by baraxasView user's profileSend private message
VinDSL
Site Admin
Site Admin


Joined: Jul 08, 2003
Posts: 1193

Location: Arizona (USA) Site Admin: Lenon.com Admin: Disipal Designs

PostPosted: Thu Oct 09, 2003 3:39 pm Reply with quoteBack to top

LoL! I like your logo. I never sleep either. I pass out... Wink

Anyway, you are basically doing the same thing I do. The only difference is, I leave the 'Domain Name:' line blank. I don't know where I picked this up. I think it was on the official phpBB board. However, it seems to work either way, so I guess one way isn't any better than the other - just different.

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::.
Find all posts by VinDSLView user's profileSend private messageVisit poster's websiteICQ Number
bigdaddyebk
Sergeant
Sergeant


Joined: Oct 14, 2003
Posts: 94

Location: San Diego, CA

PostPosted: Fri Oct 24, 2003 3:01 am Reply with quoteBack to top

I just wanna say THANKS baraxas for your "Bug Fix" you posted on 10/09!! Very Happy
I struggled for 3 days trying to find the right solution so my avatar gallery would (at least) show up, then my users(co-workers) can choose what they want!! Cool

_________________
"Unix" for Longevity
"AS/400" for Nostalgia
"Linux" for Productivity
"MAC" for Multimedia
"Windows" for Solitaire Twisted Evil

Do I need a computer to use your software?
Find all posts by bigdaddyebkView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerICQ Number
Nashville_Guy
Nuke Soldier
Nuke Soldier


Joined: Oct 29, 2003
Posts: 17


PostPosted: Wed Oct 29, 2003 8:12 am Reply with quoteBack to top

Baraxas, it worked like a charm.

Thanks!
Find all posts by Nashville_GuyView user's profileSend private message
baraxas
Nuke Soldier
Nuke Soldier


Joined: Oct 09, 2003
Posts: 16


PostPosted: Mon Nov 03, 2003 9:56 am Reply with quoteBack to top

You're welcome! Very Happy
Find all posts by baraxasView user's profileSend private message
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Sat Nov 08, 2003 4:36 am Reply with quoteBack to top

Rather than change all that code, you can change your phpbb avatar directories to

Avatar Storage Path: modules/Forums/images/avatars/gallery
Avatar Gallery Path: modules/Forums/images/avatars/gallery


And then upload your 'gallery' of avatars to

modules/Forums/images/avatars/gallery

---

module, Your_Account, index.php

Find:

Quote:

echo "<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\"><br>\n";


Change to:

Quote:

echo "<img src=\"modules/Forums/images/avatars/gallery/$userinfo[user_avatar]\"><br>\n";



Thats it.

Extra note:

There should also be a blank.gif file in
modules/Forums/images/
modules/Forums/images/avatars
modules/Forums/images/avatars/gallery


Last edited by XEULAS on Sat Nov 08, 2003 5:02 am; edited 1 time in total
Find all posts by XEULASView user's profileSend private messageVisit poster's website
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Sat Nov 08, 2003 4:48 am Reply with quoteBack to top

Ummm... I skipped sleeping tonight so......


It kinda ends up the same solution, different directorys, eh?


So, the real point is it needs to be fixed in the distro.

And hey, why have two directories anyway? Why cant you just plain have it so you upload all your avatars into an avatar directory, yes?

Maybe I'll switch things around to your way and dump the gallery directory alltogether... hee hee hee

----

A telegram for Mr. NukeCop:

Dear Mssrs NukeCop STOP In the next distrObution could you make it his way STOP So if I change it all now it wont get overwritten? STOP signed STOP someone who needs to stop STOP

.... now I just have to find the Western Union office.... Mr. Green
Find all posts by XEULASView user's profileSend private messageVisit poster's website
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Sat Nov 08, 2003 4:59 am Reply with quoteBack to top

Hey, I just thought of something. Does uploading your own avatar still work doing the fix your way?
Find all posts by XEULASView user's profileSend private messageVisit poster's website
baraxas
Nuke Soldier
Nuke Soldier


Joined: Oct 09, 2003
Posts: 16


PostPosted: Sun Nov 09, 2003 10:05 am Reply with quoteBack to top

Yes, it works. Try on my site www.panoramatic.com or www.zuddas.com.
Find all posts by baraxasView user's profileSend private message
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Sun Nov 09, 2003 10:12 am Reply with quoteBack to top

I'd like to see them integrate the two profiles into one (phpbb has a profile and nuke has one).

I find that if I change my site (in Your_Account/navbar.php) so everyone gets the phpbb profile instead of the nuke profile, then the gallery link doesnt work.

Would you mind doing a little check?

See if when you log in as a user (not admin) and click MESSAGES, then from the next page click PROFILES, see if the gallery links/avatar links work. If so, I have some posts to change!
Find all posts by XEULASView user's profileSend private messageVisit poster's website
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Sun Nov 09, 2003 10:40 am Reply with quoteBack to top

I just signed up for an account at zuppas. Your fix works fine for the nuke profile. It does not work for the phpbb profile. Neither does mine. Oh well....
Find all posts by XEULASView user's profileSend private messageVisit poster's website
baraxas
Nuke Soldier
Nuke Soldier


Joined: Oct 09, 2003
Posts: 16


PostPosted: Sun Nov 09, 2003 12:42 pm Reply with quoteBack to top

I've created the account test2 on www.zuddas.com then loaded an avatar from my pc. It works! In forum profile and in my account. Check it.
Shocked Question
Find all posts by baraxasView user's profileSend private message
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Sun Nov 09, 2003 1:22 pm Reply with quoteBack to top

No, I dont mean the upload an avatar. I created a zuppas account, I login and click MESSAGES, then I click PROFILE. At the bottom of the page shows your current avatar and the option button to show the gallery. Click that button. No go.
Find all posts by XEULASView user's profileSend private messageVisit poster's website
baraxas
Nuke Soldier
Nuke Soldier


Joined: Oct 09, 2003
Posts: 16


PostPosted: Tue Nov 11, 2003 11:20 am Reply with quoteBack to top

I'm sorry, my solution work, but i set it exactly only on panoramatic.com. Now I've corrected the forum path on zuddas.com too. It works! The configuration is in the first article of this topic. On zuddas.com I had:

Code:
Domain Name: http://www.yourdomain.com
Script path: /modules/Forums/
Smilies Storage Path: modules/Forums/images/smiles
Avatar Storage Path: modules/Forums/images/avatars
Avatar Gallery Path: modules/Forums/images/avatars/gallery


and now, after your signalation zuddas.com settings = panoramatic.com settings:

Code:
Domain Name: http://www.yourdomain.com
Script path: /
Smilies Storage Path: modules/Forums/images/smiles
Avatar Storage Path: modules/Forums/images/avatars
Avatar Gallery Path: modules/Forums/images/avatars


Check it! Very Happy
Find all posts by baraxasView user's profileSend private message
d4m4g3
Corporal
Corporal


Joined: Sep 19, 2003
Posts: 63


PostPosted: Fri Nov 14, 2003 8:31 pm Reply with quoteBack to top

Thank you this solution worked perfectly
Find all posts by d4m4g3View user's profileSend private messageVisit poster's websiteYahoo Messenger
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.446 Seconds - 291 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::