php forum
php mysql forum
php mysql smarty
 
Topic Options
#44603 - 06/16/02 01:16 AM pictures ?
Metallifukinca Offline
Member

Registered: 08/21/00
Posts: 620
Loc: Toronto, Ont
What would be the code I add to " ubbmisc.cgi", so people can add their pictures ?
The add to profile hack is too confussing frown

Thanks smile

Top
#44604 - 06/16/02 02:18 AM Re: pictures ?
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
What you could do is get some of the code off the extra profile fields, and then just edit it so it's a URL for an IMG if it's for a picture.

Top
#44605 - 06/16/02 05:37 PM Re: pictures ?
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Unfortunatley that hack is confusing, but it works. It lists all the areas you need to make modifictaions for it to work. Otherwise if you miss certain spots, is a profile is updated it may not keep the new fields, or clobber existing fields. Just keep at that hack, Im sure you'll get it smile
_________________________
I can't afford a good signature editor frown

Top
#44606 - 06/17/02 03:54 AM Re: pictures ?
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Looking at it is really is, and I don't think you should install it this way if you can't follow it.

Top
#44607 - 06/18/02 01:07 PM Re: pictures ?
p2kewl Offline
Junior Member

Registered: 05/29/02
Posts: 7
tough question because it is a pain in the ass with all the changes. ubbmisc and ubb_library2.pl have to be changed. off the top of my head should hopefully point you in the right direction. lets modify an existing field as i do not know what profile mods you already have. im going to change the ICQ profile to be a users personal profile portrait tag url. since icq sucks no worries. Lets rock p2kewl4u styelZ!

## UBBMISC.CGI

Find:
Code:
[/code]Below this add:

[code]
We just added some stuff to do some stuff so the stuff you want it to do, will work.

Find:

Code:
[/code]Replace it with:

[code]
Just replaced the ICQ Number Profile with the users OwnAvatar profile.

Find:

Code:
[/code]Replace it with:

[code]
Added OwnAvatar to the filter check so HTML is allowed in theprofile[13] variable.

NOTE! Check for this TWICE and make a SECOND change if need be. I think this line:

[code][/code]appears TWICE in UBBMISC.CGI so double check it. If so, make the proper changes as noted above.

Let's continue!

Find:

Code:
[/code]Replace it with:

[code]
Find:

Code:
[/code]Replace it with:

[code]
Find:

Code:
[/code]Replace it with:

[code]
Find:

Code:
[/code]Replace it with:

[code]
Find:

<tr $AltColumnColor1>
<td>
<B><FONT SIZE="$TextSize" FACE="$FontFace">ICQ Number</FONT></B>
</td>
<td>
<INPUT TYPE="TEXT" NAME="ICQnum" VALUE="$ICQnumber" SIZE=7 MAXLENGTH=20>
</td></tr>[/code]

Replace it with:

Code:
[/code]Find:

<tr $AltColumnColor2>
	<TD  valign=top><FONT SIZE="$TextSize" FACE="$FontFace"><B>ICQ Number</B></FONT></TD>
	<TD ><FONT SIZE="$TextSize" FACE="$FontFace" COLOR="$LinkColor">$in{'ICQ'}</font>
 </TD>
</tr>


Replace it with:

[code][/code]Got it? Hopefully that's everything. The tables you changed are for cosmetic reasons and to display the custom portrait they selected via their profile. HTML will be allowed. In their profile, under Own Avatar, they enter http://site_to_point_to.com/images/filename.ext as an example. This will save to $theprofile[13] variable.

To display their personal avatar, you have to go into UBB_LIBRARY2.PL so let's do that next.

IF YOU HAVE THE AVATAR HACK INSTALLED:

Find:

Code:
[/code]Replace it with:

[code]
If you don't have the avatar hack installed...

Find:

Code:
[/code]Replace it with:

[code]
In UBB_LIBRARY2.PL if $thisprofile[13] is putting up no image, change it to $OwnAvatar

***** THIS MOD is from editing UBBMISC.CGI and UBB_LIBRARY2.PL visually and has not been tested.

p2kewl4u outz!

Top
#44608 - 06/20/02 03:00 AM Re: pictures ?
Metallifukinca Offline
Member

Registered: 08/21/00
Posts: 620
Loc: Toronto, Ont
and that will do ? hehehe

Top
#44609 - 06/20/02 03:27 PM Re: pictures ?
p2kewl Offline
Junior Member

Registered: 05/29/02
Posts: 7
exactly what you wanted

hehehehheheheeeeheehehehehehehehhe

oooooh hohohohohohohohohohohohohohohohohohohoh

aaaaahhh hahahahahahaahahahaahahahahahahahahahaha

Top
#44610 - 06/21/02 01:13 AM Re: pictures ?
Metallifukinca Offline
Member

Registered: 08/21/00
Posts: 620
Loc: Toronto, Ont
Thanks dude, I'll test it and let you know what happened smile

Top
#44611 - 06/21/02 02:11 AM Re: pictures ?
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
What a silly question. tipsy

Top
#44612 - 06/21/02 03:02 AM Re: pictures ?
Metallifukinca Offline
Member

Registered: 08/21/00
Posts: 620
Loc: Toronto, Ont
I got a 500 Internal server error frown

Top
#44613 - 06/21/02 06:14 AM Re: pictures ?
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Can you get the error thats appearing from your error log?

Top
#44614 - 06/21/02 07:23 AM Re: pictures ?
p2kewl Offline
Junior Member

Registered: 05/29/02
Posts: 7
i just modified my own ubbmisc.cgi file and the code above works to a match without any errors.

cant help you fix the problem if i dont have an error list of what part of the code is barfing on you. and "it doesnt work" doesnt help me or you.

p2kewl4u outz!

Top


Who's Online
1 registered (Deb), 28 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks