vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Profile Enhancements - Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=229881)

Wired1 12-09-2009 10:00 PM

Extra Profile Fields Page
 
1 Attachment(s)
For those upgrading from the 3.8.x mod, read this.

Don't forget to hit INSTALL!

This product will add a new page to the User CP for easy editing of specially marked profile fields, that for one reason or another you would like to split off from the main list.

NOTE: Any fields marked for this page will not be seen in the user's profile. You would need to install the Extra Profile Fields Tab addon (haven't updated it as of yet) to do this.

Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). With an ADDITIONAL product (e.g. NOT this one), I place these specs in a dropdown list under the user title in each user's post, as well as in their profile as an extra tab.

Here's some examples of how I use the 3.8.x version of this mod (with the Add-On mod, Extra Profile Fields Tab, and a separate mod, Profile Fields in a Postbit Dropdown):
http://forum.corsair.com/forums/showthread.php?t=39826

================
# of plugins: 3
# of php page edits: 1 (admincp/profilefield.php)
# of new templates: 1 (page)
# of template edits: 1 (USERCP_SHELL)
# of new phrases: 3 Click here for details. Also look at the attached pictures to see where they show up.

Version Changes
Known Bugs
================

To Install:
1) Save the attached product-wired1_epfp.xml file.
2) Navigate to AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
3) Browse to wherever you saved the file.
4) Allow Overwrite -> Yes.
5) Import!
6) Follow the instructions for the manual edits (1 template edit, 1 PHP page edit)


After the product is FULLY installed, when a you want to move a profile field to the new page for easy editing:

1. Go to the AdminCP and edit the field as normal.
2. At the bottom in the Display Page area, you will see "Which page displays this option?" The last option should say Options: <$vbphrase[extra_options]>.
3. Save!


Don't forget to hit INSTALL!

Support will only be given to people who have hit install.

Wired1 12-09-2009 10:44 PM

vB Phrases:

extra_options_updated - Simple message posted after you hit the SAVE button on the page. (currently NOT working)
edit_extra_options - Name of UserCP link, breadcrumb link, and main header.
extra_options - Shows up in various places, mostly on the title of the extra page, as well as in the profile field selection area (see pics above for more info)

Version History:
4.0.0 - Initial Release for 4.0.0 Beta 5

Wired1 12-09-2009 10:45 PM

KNOWN BUGS:
-[S]Redirect isn't working, so after a user saves his page they will be redirected to the userCP instead of the page like before. No redirect message pops up.[/S] - Apparently a vB patch between 4.0.0 and 4.0.3 fixed this.

FOR THOSE UPGRADING FROM 3.8.X: I haven't tested an upgrade scenario as of yet, however I did a small problem with the 3.8.x page template being overwritten and throwing a DB error. Just delete the page template manually and then re-upload the product.

Wired1 12-09-2009 10:46 PM

NOTE: I am also working on a more comprehensive update to this mod which will allow multiple (and unique) pages to be created on the fly and that will be independent of profile fields. It will be a new product.

Later I'll pop up an example of how to manually create more than one page, but considering both the mod and forum is in BETA (not to mention the afforementioned update), don't expect it for a while. Feel free to check out the 3.8.x mod thread for some guidelines if you'd like to attempt this yourself. Aside from the code changes, it's the same types of edits.

Wired1 12-09-2009 11:17 PM

Reserved for future use.

Wired1 12-09-2009 11:24 PM

Reserved for future use.

Trek 12-10-2009 12:14 AM

Cool, I'll probably be using this soon. Thanks!

mbc100 12-10-2009 10:43 AM

Quote:

Originally Posted by Trek (Post 1928095)
Cool, I'll probably be using this soon. Thanks!

me too

abdobasha2004 12-10-2009 10:44 AM

nice
reserved !
I also think it can be made by template edit

Wired1 12-10-2009 03:44 PM

abd: reserved for what?

Also, clarify what can be made by a template edit?


All times are GMT. The time now is 07:56 AM.

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.02303 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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