Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
custom profile field as textarea / show single profilefield via button Details »»
custom profile field as textarea / show single profilefield via button
Mod Version: 1.00, by Harvey (Contributor) Harvey is offline
Developer Last Online: Dec 2007 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 9
Released: 20 Mar 2002 Last Update: Never Downloads: 6
Not Supported  

Hi,

this hack is pretty complicate but why not share with you?

With this hack you can choose that custom user profile fields are textareas with or without HTLM, Images, Smiles, VB-Code (like the signature field).

Additionally you may specify a custom image, witch is placed left after the profile button in threads to open a new window with the information of that single user information.

Version: 0.9
VBB-Version: 2.2.4 (I installed it also on 2.2.1 to but the search-strings are a lttle bit different)
Example see attachment in the next post

Tables to change: 2
Files to change: 7
Templates to change: min 1
New templates: 4

Known bugs:
I think I really don't check the maximum text length
Extra Button only appers in normal threads. Not in PM and not in announcements

In advance please excuse the poor supoort I will give.
First, my englisch is so bad that I have to translate many words using a dictionary.
Second, I have more to do than hacking VBB.

PS: If there are errors in this text that leads to misunderstandings a moderator may edit this.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 20 Mar 2002, 11:26
Harvey Harvey is offline
 
Join Date: Nov 2001
here is the example.
Attached Files
File Type: zip textarea_for_userprofile.zip (42.8 KB, 188 views)
Reply With Quote
  #3  
Old 20 Mar 2002, 13:29
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Real name: Chris
Thanks for this hack, good idea....
__________________
The Friendliest Gun Forum On The Internet
Reply With Quote
  #4  
Old 22 May 2002, 16:40
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Nice hack... I am thinking about installing it.. Any new info since post 1? Did install go OK for others...
Reply With Quote
  #5  
Old 26 May 2002, 11:00
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Hello Harvey - It is working now! Just trash my Emails

Thank you for a nice hack!!!!
Reply With Quote
  #6  
Old 27 May 2002, 10:15
Harvey Harvey is offline
 
Join Date: Nov 2001
ok

Banderson wrote in email:
[quote]
1.TEMPLATE GETCUSTOMFIELD
I dont find "Profile from"... can this be Profile View?
Is $profiltfieldtitle meant to be $profilefieldtitle?

2. DB-UPDATES:
What is it... the same as when adding a new user profile in admin? Please advice...

3. WHEN ADDING A NEW PROFILE FIELD IN ADMIN I GET THIS ERROR - WHAT CAN IT BE:

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: INSERT INTO profilefield (profilefieldid,title,description,required,hidden,maxlength,size,displayorder
,editable,textarea,allowhtml,allowbbimagecode,allowsmilies,allowbbcode,button)
VALUES (NULL,'Fitness Notes','Your goals, accomplishments, and anything you would like to put in here. You may attach your training log (i.e the Ultracoach Log, the fitness test etc)',0,0,'1000','25','', '1', '1', '1', '1', '1', '1', '')
mysql error: Unknown column 'textarea' in 'field list'

mysql error number: 1054

Date: Saturday 25th of May 2002 06:42:03 PM
Script: admin/profilefield.php
Referer: admin/profilefield.php?action=add&s=17d7eaa4a2813dd364b791911364f96c[/url]

(PS. THE FIRST LINK HERE HAS THE DIRECTORY PATH DOUBLE...SHALL BE FORUMS/UPLOAD/PROFILEFILED.PHP)

4. WHEN MODIFYING A PROFILE IN ADMIN I GET THE FOLLOWING ERROR:

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: SELECT IF(required=1,'Yes','No') as required,
IF(hidden=1, 'Yes', 'No') as hidden,
IF(editable=1, 'Yes', 'No') as editable,
IF(textarea=1, 'Yes', 'No') as textarea,
maxlength, size, title, profilefieldid
FROM profilefield
ORDER BY displayorder
mysql error: Unknown column 'textarea' in 'field list'

mysql error number: 1054
[/qoute]

1a.) Maybe it's "Profile View", I have the german templates
1b.) Misspelled $profilefieldtitle, I will correct it

2.) No, it's not the same.
2a.) There are some new options in for profilefield.
2b.) The old existing fields have a maximum length of 255 characters. I changed them to text for more characters.

3 & 4.) Your DB-UPDATES was not successfull. Should work with Firefly's Hack.


Anything else I should correct?

Last edited by Harvey : 28 May 2002 at 20:15.
Reply With Quote
  #7  
Old 27 May 2002, 12:00
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Harvey - please remove the string showing a clickable link to my directories ... I already had someone click "log in" on my control panel. No reason to make it easy. Firefly's hack gave me IP and host....in Vietnam.
Thanks
Reply With Quote
  #8  
Old 28 May 2002, 20:13
Harvey Harvey is offline
 
Join Date: Nov 2001
oh dear - my english. I don't understand. What must I remove???

First I edit the links away.
Reply With Quote
  #9  
Old 28 May 2002, 20:44
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Es ist sehr gut :cheeky:
Almost needed a dictionary for that
Reply With Quote
  #10  
Old 13 Jun 2002, 05:41
dezoris dezoris is offline
 
Join Date: Jan 2002
No way, I cant believe you have to do all that just to get a larger text box and more room for characters???

Please help me with this, I am just trying to be able to have a larger text box to edit these custome fields in the admin panel for edit user.

Like I need that custome field box the size of this quick reply box, and also need it to hold more than 250 characters, I just want this in the admin panel.
Reply With Quote
  #11  
Old 16 Jun 2002, 04:34
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Great hack idea! Kind of complicated, so before I begin I have a question for anyone who has installed this.

describe userfield
for all columns named field<number> query:
alter table userfield modify field<number> text;
For the above query, say the custom profilefield I create is field 5, is this the query I would run?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks in advance for the help!
__________________
[buffy-boards]
Reply With Quote
  #12  
Old 17 Jun 2002, 06:48
Harvey Harvey is offline
 
Join Date: Nov 2001
if it already exists before installing the hack: yes

Last edited by Harvey : 17 Jun 2002 at 06:51.
Reply With Quote
  #13  
Old 22 Jun 2002, 19:55
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Hello - I upgraded from 2.2.5 to 2.2.6 and the hack is not working anymore.

EDIT: redid the file edits and everything is working OK!

Last edited by bandersen : 23 Jun 2002 at 15:17.
Reply With Quote
  #14  
Old 15 Dec 2002, 06:55
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Works for 2.2.8
__________________
[buffy-boards]
Reply With Quote
  #15  
Old 15 Dec 2002, 18:41
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
How did i not see this hack..

*Adds to favorites*
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 08:05.

Layout Options | Width: Wide Color: