Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
yeah I understood but instead of modifying the reply template modify the avatar template smile


Do you believe in love at first sight,
or should I walk by again?
Sponsored Links
Joined: Oct 2000
Posts: 505
Muc Offline
Member
Member
Offline
Joined: Oct 2000
Posts: 505
And if anyone ever did this before, don't boggle to post the code laugh

Right now I'm damn short in time...

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
well I wanted to take a look but the link is down. (also i am not sure how perl can check the size in pixel of a picture)


Do you believe in love at first sight,
or should I walk by again?
Joined: Oct 2000
Posts: 505
Muc Offline
Member
Member
Offline
Joined: Oct 2000
Posts: 505
have a look at the upload thread, link is not broken but you have to do it with right click and save target as...

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
ok the way I see it is too add:
Code
code:

right after
Code
code:
in ubb_avatar.cgi, I haven't tried it for any side effect tho ..


Do you believe in love at first sight,
or should I walk by again?
Sponsored Links
Joined: Oct 2000
Posts: 505
Muc Offline
Member
Member
Offline
Joined: Oct 2000
Posts: 505
But how will this picture be connected with the user who uploaded it ? Even if you can force the filename of the image to be like membernumber.gif/jpg, how will it automatic be inserted ?

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
well you have to make it upload to the custom directory ans then add a message asking to refresh profile page, the custom avatar text will then appear


Do you believe in love at first sight,
or should I walk by again?
Joined: Oct 2000
Posts: 505
Muc Offline
Member
Member
Offline
Joined: Oct 2000
Posts: 505
would you mind going online in icq for a second ?

Joined: Oct 2001
Posts: 29
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 29
Muc, you want to install the Avatar hack, but have them link their own images right.

Well install the AVAtar hack, but do not install the hack part in the CP. This will leave Custom Field 3 open and you enter the link.

Real easy.

[ 10-27-2001: Message edited by: John A. MacDonald ]

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
Quote
quote:
then you don't need the avatar hack and just add a line in the template to call the image field.


Do you believe in love at first sight,
or should I walk by again?
Sponsored Links
Joined: Oct 2001
Posts: 29
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 29
I never thought of that, you are right. I can toast most of the stuff.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Are you guys trying to use the upload hack to upload custom avatars to a custom directory for this avatar hack? Like uploading as the user number.gif?

if so, i have the code for it if that's what you want. It works and been tested.

Joined: Feb 2001
Posts: 28
Member
Member
Offline
Joined: Feb 2001
Posts: 28
Quote
quote:
I am getting that same error! Has anyone figured out a fix yet?

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
Quote
quote:
yes, but also checking that there isn't allready a user_number image in the directory in order to delete it if needed


Do you believe in love at first sight,
or should I walk by again?
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Manik,

find inside avatarlist.cgi:

($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules");

and add above:

# Get the script location: UNIX / or Windows /
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1");
# Get the script location: Windows
($0 =~ m,(.*)\[^\]+,) && unshift (@INC, "$1");

qasic

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I'm having some javascript problems like these.

Quote
quote:
and
Quote
quote:
any ideas? btw, i'm NOT using the xhtml hack.

Joined: Feb 2001
Posts: 28
Member
Member
Offline
Joined: Feb 2001
Posts: 28
Thanks qasic!

one question: what path should go into that UBBCGI.pm file?

do i get rid of the # at the beginning and then something like:
C:pathtemp for the pathname? this is a win2k server.

[ 11-04-2001: Message edited by: Manik ]

Joined: Feb 2001
Posts: 28
Member
Member
Offline
Joined: Feb 2001
Posts: 28
Hey Qasic,
Its still not working for me. I get the same error smirk Do I need to alter permissions for UBBCGI.pm? Or map .pm to perl.exe? Tia!

Joined: Aug 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 7
Is this compatible with the UBB Accelerator in 6.1?

Steve

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Steve, yes it's compatible w/ accelerator.

qasic

Joined: Nov 2001
Posts: 54
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 54
Great Hack as I've seen it on many boards.

Now that i have set up my own board I have tried to install it but keep getting ths same problem. Installed 3x with same prob.

When i access my cp it tells me that my avatar dir does not exist...........
I have set thr perms to 777 and it is in the noncgi dir as stated in the instuctions

User reg screen coems up with this error:
An error has occured:

Undefined subroutine &main::AvatarGutsProfile called at /home/sites/site99/web/Ubb/Templates/public_edit_profile.pl line 203.

I am using this on ubb6.1 final with the stars hack.

Some help on this would be great

thanx

[ 11-16-2001: Message edited by: dRiver ]

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
re: the vertical alignment issue

i remember in the v6.0 avatar hack, there was an editted version that fixed the vertical alignment of posts

if a user's post is only 1 line, and their avatar is taller than the post, the post, post icons, and member information (all the stuff on the right side) become vertically centered, instead of properly space (with the top stuff towards the top, the post just beneath it, and the bottom info on the bottom).

any chance on gettin the "recipe" for that fix again?

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
le bump

Joined: Nov 2001
Posts: 63
Member
Member
Offline
Joined: Nov 2001
Posts: 63
hi friends, I installed addon correctly, happens that in the hour to
place addon it goes normally obtains to visualize it all normal one.
But in my postagens avatar that I leave does not appear what it can be
happening? Please they help me.

Joined: Dec 2001
Posts: 51
Member
Member
Offline
Joined: Dec 2001
Posts: 51
Does this auto-resize everyones image to a standard size? I installed the Jimbo hack for custom titles and ranks, which can do HTML (therefore I can insert avatars) but the pics retain their size -- whether small or large.

thanks.

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Found an error in the code!!!

In: public_register_page_kid.pl

code:

FIND:
# other registration fields follow:

ADD AFTER:
require "$vars_config{CGIPath}/avatar_list.pl";
&AvatarGutsProfile;



Should be:

code:

ADD AFTER:
require "$vars_config{CGIPath}/ubb_avatar.cgi";
&AvatarGutsProfile;



First time I was able to fix code myself

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
I gotta say that when the wordlets initially turned up in French ( eek ), it nearly threw me for a loop, but I read the mighty find directions and figured it out!

Thanks for getting this hack set-up for the latest UBB, Qasic. My board loves its avatars!


Sue
adwoff.com
Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
Hi,
Great hack but I'm having some serious problems.
I want users to be able to link to their own Avatar so they can simply put in the URL but also choose one of the ones we provide if they don't have one.
Currently, if they want their own, I have to do it for everyone via the cp.
Now once I have done this it works fine unless they edit their profile in anyway. Once they edit their profile they loose the avatar....why?
To summarise:
1. I want to fix the bug with them loosing their avatar when they edit their profile.
2. I want them to be able to link to their own avatar as well as choose one in the list without me having to do it for them in the cp.

Please help this is driving me mad.

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
quote:
Originally posted by Nokia666:
2. I want them to be able to link to their own avatar as well as choose one in the list without me having to do it for them in the cp.




Nokia,

I don't have the answers to your one bug issue, but I think I can speak for those who create these hacks that this idea won't work--and there is a very simple reason why--bandwidth theft.

Too many people would see an avatar that they like somewhere else and direct link to it. It would be a nightmare on your part to monitor this.


My members love the avatars; if they want a custom one, I simply have them send it to me, and then I take care of it for them. A hassle, yes? But much, much better than having to monitor for bandwidth theft.


Sue
adwoff.com
Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
Hi Mate,
Thanks for replying smile
Thanks again.

Joined: May 2001
Posts: 47
Member
Member
Offline
Joined: May 2001
Posts: 47
quote:
Originally posted by DGMayor:
As usual, Qasic to the rescue. New problem now. When I try to view my avatar list from the profile, it gives me the following:


CGI ERROR

The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Can't locate UBBCGI.pm in @INC (@INC contains: ./Modules . c:/Perl/lib c:/Perl/site/lib) at c:lmallaubbcgi2avatarlist.cgi line 17.
BEGIN failed--compilation aborted at c:lmallaubbcgi2avatarlist.cgi line 17.


I haven't touched the beta/preview versions of 6.1, so the UBBCGI.pm deal is totally new to me..

BTW, you rock my world Qasic

[ 10-24-2001: Message edited by: DGMayor ]


Hey Qasic, almost 2 months later, still having the issue frown

Joined: Dec 2001
Posts: 51
Member
Member
Offline
Joined: Dec 2001
Posts: 51
Thanks, I'll try out that Avatar hack

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I'm having a problem, in the CP "Avatar Settings" the Avatar wordlets don't show up. My permissions are correct so what went wrong?

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
*bump*

Joined: Dec 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 11
with the hack everything went thrue fine but theres a broken image for the pic of the Avatar idi i do something worng really early like at the

[code][/code]

[ 12-30-2001 12:35 PM: Message edited by: Dark Assassin ]

Joined: Dec 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 11
nm i feel stupid i figured it out

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Lord Dexter, have you checked Primary Settings -> Avatar Settings and the wordlets are not there? Checked to make sure vars_wordlets_avatar.cgi begins with %vars_wordlets_avatar = (

qasic

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Sorry qasic I got this fixed a while ago. The wordlets were in the wrong order.

Joined: Nov 2001
Posts: 99
Member
Member
Offline
Joined: Nov 2001
Posts: 99
ok I tried to install this hack but now when I click on profile search faq nothing shows up do you know what's wrong?

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Incorrect hacking in ubb_profile.cgi probably the most likely culprit.

qasic

Page 2 of 4 1 2 3 4

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)