vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Image in profile (https://vborg.vbsupport.ru/showthread.php?t=38258)

Zzed 05-04-2002 10:00 PM

Image in profile
 
This hack was requested by NerdNations.

Here is what you need to do to add a image field to user profiles.

That's it. ;)

Zzed 05-05-2002 06:53 AM

Here is a sample screen shot of my profile: http://www.ls1.com/forums/member.php...fo&userid=4112

Also note that if the image is larger than 640x480, the code will automatically scale it to fit witin a 640x480 area. ;)

Floris 05-05-2002 09:56 AM

Thank you! I will look into it. Very nice :)

TECK 05-05-2002 10:03 AM

nice car ed.. :) the hack also.

inetd 05-05-2002 10:14 AM

i want this car :)
Zzed, gift me, please :D :lol:

Hack also cool ;) And I have one question:
If user don't post Picture, field picture showed in profile or not?

RDX1 05-05-2002 10:27 AM

i already know how to do the picture, like this

<add this to postbit>

Code:

<tr>
<td bgcolor="#13486D"><normalfont><b>User Picture:</b></normalfont></td>
        <td bgcolor="#13486D"><normalfont><img src="$userinfo[field7]" width="" height=""></normalfont></td>
</tr>

replace #13486d with { firstaltcolor }, since for some reason it keeps replacing it with that color code


i wanted to know how to do it like sitepoint, where if there isnt a picture submited it will put a blank image in its place

Zzed 05-05-2002 11:40 AM

Thank you guys for the kind words. :)

inetd, If the user does not enter a vlaue, the field still shows up, but it will be empty.

Here is a sample of one of my alter egos on my site: http://www.ls1.com/forums/member.php...o&userid=24578

Chris M 05-05-2002 12:24 PM

Very nice Zzed...

I am glad you released it...

:tup:

Satan

Zzed 05-05-2002 02:46 PM

Thank you hellsatan.

Slynderdale 05-05-2002 02:48 PM

nice hack, but ill stick with the one i made

https://vborg.vbsupport.ru/showthrea...threadid=37851

Chris M 05-05-2002 03:11 PM

I still prefer Zzed's...

Btw :

Zzed - For the Image, you have to enter a url right? So...Is there any way to add like a description to it?

What I mean is : in HTML, you use the tag :

Code:

alt="yourtext"
To make your image have a hover-over text...

Could that be done for your hack?

Satan

Chris M 05-05-2002 03:39 PM

Here is a Screenshot of my Forums...

@Zzed - When I tried to add a profile field above the Picture field, I got an error saying :

No Valid Link specified :

Why is that?

Satan

Tungsten 05-05-2002 04:09 PM

Quote:

Originally posted by Slynderdale
nice hack, but ill stick with the one i made

https://vborg.vbsupport.ru/showthrea...threadid=37851

Release it for general use and some of us might use it too. ;)

RDX1 05-05-2002 06:10 PM

Quote:

Originally posted by Zzed
If the user does not enter a vlaue, the field still shows up, but it will be empty.

but im making a custom user profile html layout, and i want it to be the same size if there is a picture or not.. kinda like sitepointforums.com does

MrLister 05-05-2002 07:28 PM

nice car.. i'm betting my mx-6 could take you :)

Custom installed body kit (fiber-glass)
greddy dual exhaust
16 psi
basch platinum plugs
strut tower bars
2 inch koniing adjustable coilovers
Magnecor Wires
JL Audio 12W6 Subs
Cone Filter
new cold air intake.

hehe ok i'm getting carried away. think vB. btw no i don't have a picture at the moment.

Tungsten 05-05-2002 11:24 PM

How much horsepower did the subwoofers add? Just wondering... I mean, they're listed right there with the other, um, "performance" mods. ;)

Zzed 05-05-2002 11:57 PM

Quote:

Originally posted by MrLister
nice car.. i'm betting my mx-6 could take you :)

Custom installed body kit (fiber-glass)
greddy dual exhaust
16 psi
basch platinum plugs
strut tower bars
2 inch koniing adjustable coilovers
Magnecor Wires
JL Audio 12W6 Subs
Cone Filter
new cold air intake.

hehe ok i'm getting carried away. think vB. btw no i don't have a picture at the moment.

Mr Lister, My web page is not up to date. Check out this link + my sig on the latest stats on my car. ;)

http://www.ls1.com/forums/showthread.php?threadid=89870

Zzed 05-05-2002 11:58 PM

Quote:

Originally posted by hellsatan
I still prefer Zzed's...

Btw :

Zzed - For the Image, you have to enter a url right? So...Is there any way to add like a description to it?

What I mean is : in HTML, you use the tag :

Code:

alt="yourtext"
To make your image have a hover-over text...

Could that be done for your hack?

Satan

Ok, I will make the changes.

I will also look into the other problem with the image. :)

MrLister 05-06-2002 01:32 PM

Quote:

Originally posted by Tungsten
How much horsepower did the subwoofers add? Just wondering... I mean, they're listed right there with the other, um, "performance" mods. ;)
375 hp, 362 tq

MrLister 05-06-2002 01:34 PM

Quote:

Originally posted by Zzed
Mr Lister, My web page is not up to date. Check out this link + my sig on the latest stats on my car. ;)

http://www.ls1.com/forums/showthread.php?threadid=89870

Damn, you win by a bit. Maybe your car is heavy and I could still squeez in the win :D anyways that's a great car you've got. I dressed my MX-6 up to look like a rx-7 and then yellow and black are the colors with tinted windows.

Chris M 05-06-2002 02:20 PM

Thanks Zzed...

:tup:

Satan

Zzed 05-06-2002 02:50 PM

Quote:

Originally posted by MrLister

375 hp, 362 tq

Is that at the flywheel or front wheels?

Mine are rear wheel numbers.

MartynJ 05-12-2002 08:16 PM

Seems like an excellent hack, but all I get when I try to use it is:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\Program Files\Apache Group\Apache2\htdocs\member.php on line 2

Parse error: parse error, unexpected T_STRING in C:\Program Files\Apache Group\Apache2\htdocs\member.php on line 2


Is this the revenge of PHP4.2?

NSeXcellent 06-01-2002 02:33 PM

Quote:

Originally posted by MrLister
nice car.. i'm betting my mx-6 could take you :)

Custom installed body kit (fiber-glass)
greddy dual exhaust
16 psi
basch platinum plugs
strut tower bars
2 inch koniing adjustable coilovers
Magnecor Wires
JL Audio 12W6 Subs
Cone Filter
new cold air intake.

hehe ok i'm getting carried away. think vB. btw no i don't have a picture at the moment.

I'll take a piece of that action! And now you all see where i get this username from... :D

https://vborg.vbsupport.ru/

Keith 06-24-2002 02:04 PM

I'm using 2.2.5, only the URL is coming up and I've double checked the location. What am I missing?

Keith 06-24-2002 02:10 PM

nevermind, I'm an idiot!! Loaded up the member.php file into the wrong directory (portals root) by mistake. Works great, thanks for the hack!!

globalwin 06-24-2002 05:35 PM

this might be daft, but how do I link an image? I cant seem the guess the syntax :(

Zzed 06-24-2002 08:40 PM

Quote:

Originally posted by globalwin
this might be daft, but how do I link an image? I cant seem the guess the syntax :(
It's just a URL, no BB tags are needed.

Keith 06-26-2002 05:59 PM

Zzed, this is the weirdest thing. The hack worked great when I installed it yesterday, I input my URL and it appears. I tried to input the info myself as admin level access into 2 users profile. the reason is, one of them put a URL in and it just showed the white box with an x. When I checked their URL, it was fine.

I then saw this error when I tried to save his record:

Code:

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: SELECT userid
                                        FROM user
                                        WHERE username='bsurguy'
                                                AND userid <>
mysql error: You have an error in your SQL syntax near '' at line 4

mysql error number: 1064

The referring script is listed as ..../forums/forums/admin/user.php

I only have 1 forums directory, so it should be ...forums/admin/user.php Where might I find the problem here? Confused.

Great hack by the way!

Keith 06-26-2002 07:16 PM

From that user.php file, here's the code, but this doesn't appear to be a problem:

Code:

if ($exists=$DB_site->query_first("SELECT userid
                                        FROM user
                                        WHERE username='".addslashes(htmlspecialchars($ausername))."'
                                                AND userid <> $userid")) {
                echo "There is already an ".makelinkcode('user',"user.php?do=edit&userid=$exists[userid]",1)." named <b>".htmlspecialchars($ausername)."</b>";
                exit;
        }

I replaced the member.php with my original, and deleted the field in the template, but still get the same error now. Any ideas?

Zzed 06-26-2002 07:59 PM

Keith, See this thread for the Mysql error: http://www.vbulletin.com/forum/showt...sql+error+1064 :)

Keith 06-26-2002 08:09 PM

Zzed, I cannot believe I missed that. Geezus, thanks. The irony is Smachol just pointed me to the patch a few seconds ago.

The link he gave me is for registered license users in the members section, won't work for everyone, so I've edited it out from this thread. The other is public I'm assuming.

Many thanks, I'm installing it now.

UPDATE: The patch fixed my probs.

Bro_Joey_Gowdy 06-27-2002 03:52 PM

that link you gave said your account was banned

Xelation 07-03-2002 05:36 PM

how can I make it so that I can use something like this $profilepic and then I can put it anywhere I want... because I have a customized profile layout. thanks

Zzed 07-03-2002 06:04 PM

Quote:

Originally posted by Bro_Joey_Gowdy
that link you gave said your account was banned
I am the site admin on LS1.com. I picked that title for myself as a joke. :D My name is listed in the forum leaders page: http://www.ls1.com/forums/showgroups.php?

Zzed 07-03-2002 06:05 PM

Quote:

Originally posted by Xelation
how can I make it so that I can use something like this $profilepic and then I can put it anywhere I want... because I have a customized profile layout. thanks
I'll get back to you on this. :)

Xelation 07-03-2002 06:09 PM

Quote:

Originally posted by Zzed
I'll get back to you on this. :)
thanks, much appreciated

Vivi Ornitier 07-03-2002 07:13 PM

i haven't read any replies before me, i was just looking at the code and :p, index 3 of getimagesize contains the correct html height and width code. You don't have to use ysize of xsize.

Zzed 07-03-2002 08:30 PM

Quote:

Originally posted by Vivi Ornitier
i haven't read any replies before me, i was just looking at the code and :p, index 3 of getimagesize contains the correct html height and width code. You don't have to use ysize of xsize.
I know, but I need the numeric values for the width and the height so I can scale down the image if it is larger than 640x480.

The index 3 value shows up like this: width="xxx" height="xxx", which means I have to further parse into it to extract those values, whereas I can just grab them from index 0 and 1. ;)

Xelation 07-03-2002 09:02 PM

I dont want to push you Zzed, but do you think you could have the new code done by sometime tomorrow at the latest? if you cant i understand


All times are GMT. The time now is 04:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01388 seconds
  • Memory Usage 1,826KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete