Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extra Profile Fields Page Details »»
Extra Profile Fields Page
Version: 2.0.3, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-12-2005 Last Update: 01-05-2006 Installs: 117
Uses Plugins Template Edits
Code Changes Is in Beta Stage  
No support by the author.

This is the 3.5.x version of Zachery's hack by the same name. (linkage)


3.6.0 version: https://vborg.vbsupport.ru/showthread.php?t=123253


This hack will add an extra page to the User CP. This area can be used for extra profile fields that for one reason or another you would like to split from the main list.

Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). I have the specs in a dropdown list under the user title in each user's post, as well as in their profile page, but that's another hack You can see my 3.0.x hack for that here, and the 3.5.x hack for it here.

Here's some examples of how I use this hack (with the Add-On hack, Additional Section within Profile and Dropdown within Posts):
http://www.houseofhelp.com/v2/showthread.php?t=39826
http://www.houseofhelp.com/v2/member.php?u=15

NOTE: The above 2 links show the results of another hack I did that's based upon this one. In otherwords, this hack doesn't add dropdowns in posts, and doesn't hack the member page to display the extra options in a new area. For that, install the Add-On hack, Additional Section within Profile and Dropdown within Posts.

# of plugin hooks: 1
# of php page edits: 3 (or 4)
# of new templates: 1
# of template edits: 1
# of new phrases: 2

The "successfully saved" and extra option search are not tested, but they should both work.

Don't forget to hit INSTALL!.

Show Your Support

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

Comments
  #82  
Old 12-19-2005, 04:40 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
Nice!! I actually found a way to take out one of the function_user edits by adding another hook into usercp_nav_start but still had to do the other file edit

I hope you compile this into a product xml, would make the phrases and such much easier

[high]* Cyricx installs![/high]
I am rewriting this as a Product. I was hoping to find a hook for the CASE statement, but there is none.
Reply With Quote
  #83  
Old 12-19-2005, 05:09 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code Edits are needed. If I could have used a hook, or made one for the code, I would have. IIRC hack rewrites can't be posted w/o permission.
Reply With Quote
  #84  
Old 12-19-2005, 05:17 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u did miss one tho.

are u saying I don't have permission? I was gonna ask once it was done. More for me anyway, just way cleaner. No need to add phrases manually and crap like that.
Reply With Quote
  #85  
Old 12-19-2005, 11:44 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's just common courtesy to ask before publicly stating something like that, not after. Where'd I miss a hook?
Reply With Quote
  #86  
Old 12-19-2005, 12:28 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This

Code:
// *** open includes/functions_user.php

	find

		'attachments'

	add under

		'extra',

(don't forget to place a comma after 'attachments')
Can be replaced by

Plugin - usercp_nav_start
Code:
$cells[] = 'extra';
I just made a product and then added the plugins and stuff by hand.

Wired, it would really be much easier to toss all this into a product, or at least give 7thgen permission to post it in this thread then you can update the mainattachment.

It takes a 10-15 minute install to about a 1 minute install, because you don't have to keep clicking all around to languages and phrases, to templates, etc and cutting and pasting like mad
Reply With Quote
  #87  
Old 12-19-2005, 01:38 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice, I would be interested in a product version, would make the creating of more pages easy.
Reply With Quote
  #88  
Old 12-19-2005, 02:34 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
This

Code:
// *** open includes/functions_user.php

	find

		'attachments'

	add under

		'extra',

(don't forget to place a comma after 'attachments')
Can be replaced by

Plugin - usercp_nav_start
Code:
$cells[] = 'extra';
I just made a product and then added the plugins and stuff by hand.

Wired, it would really be much easier to toss all this into a product, or at least give 7thgen permission to post it in this thread then you can update the mainattachment.

It takes a 10-15 minute install to about a 1 minute install, because you don't have to keep clicking all around to languages and phrases, to templates, etc and cutting and pasting like mad
Damned if I know why a search on the instruction file didn't find that function lol.

Code:
$cells[] = 'extra';
That appends the array I take it? (rusty PHP skillz) [EDIT: Why yes, yes it does!)

Nothing against a product, just haven't been able to find the time lately to work on it (work and MCSE classes).

Anyone can product it up and send it to me, and I'll update the install file, just would appreciate a heads up before everyone else so I can look it over and whatnot (may try to slip in an update if time allows). Of course I'll append the intro with a nod to whomever's product compilation I use.
Reply With Quote
  #89  
Old 12-21-2005, 07:44 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea wired! I would however love to see this as a product before installing it permanently. Also, i'm looking forward to multiple pages as well, it seems as though there's only on at them moment, unless I am mistaken?
Reply With Quote
  #90  
Old 01-01-2006, 05:46 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have reinstalled the hack once again but my forums was kinda messed up so I'd no other choice but to clean up all the other hacks that existed. Anyway, is it possible to change the URL from "http://www.metalgearforums.com/profile.php?do=extra" to "http://www.metalgearforums.com/profile.php?do=mginfo"?
Reply With Quote
  #91  
Old 01-01-2006, 06:53 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aftermath
I have reinstalled the hack once again but my forums was kinda messed up so I'd no other choice but to clean up all the other hacks that existed. Anyway, is it possible to change the URL from "http://www.metalgearforums.com/profile.php?do=extra" to "http://www.metalgearforums.com/profile.php?do=mginfo"?
Yep!

change
Code:
if ($_REQUEST['do'] == 'extra')
to:
Code:
if ($_REQUEST['do'] == 'mginfo')

change
Code:
	construct_usercp_nav('extra');
to:
Code:
	construct_usercp_nav('mginfo');
change
Code:
$navclass[extra]
to:
Code:
$navclass[mginfo]
change
Code:
<input type="hidden" name="do" value="updateextra" />
to:
Code:
<input type="hidden" name="do" value="updatemginfo" />

Should do it I think. BTW, nice use of the hack!
Reply With Quote
Reply


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 10:52 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.05236 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
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
  • (13)bbcode_code
  • (3)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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