Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
custom profile field as textarea / show single profilefield via button Details »»
custom profile field as textarea / show single profilefield via button
Version: 1.00, by Harvey Harvey is offline
Developer Last Online: Dec 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-19-2002 Last Update: Never Installs: 9
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-20-2002, 10:26 AM
Harvey Harvey is offline
 
Join Date: Nov 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the example.
Reply With Quote
  #3  
Old 03-20-2002, 12:29 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hack, good idea....
Reply With Quote
  #4  
Old 05-22-2002, 03:40 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 05-26-2002, 10:00 AM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Harvey - It is working now! Just trash my Emails

Thank you for a nice hack!!!!
Reply With Quote
  #6  
Old 05-27-2002, 09:15 AM
Harvey Harvey is offline
 
Join Date: Nov 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,allo wsmilies,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=17d7eaa4a2813dd364b7 91911364f96c[/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?
Reply With Quote
  #7  
Old 05-27-2002, 11:00 AM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 05-28-2002, 07:13 PM
Harvey Harvey is offline
 
Join Date: Nov 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh dear - my english. I don't understand. What must I remove???

First I edit the links away.
Reply With Quote
  #9  
Old 05-28-2002, 07:44 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Es ist sehr gut :cheeky:
Almost needed a dictionary for that
Reply With Quote
  #10  
Old 06-13-2002, 04:41 AM
dezoris dezoris is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:36 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.06970 seconds
  • Memory Usage 2,281KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete