vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Need help with loading fields (https://vborg.vbsupport.ru/showthread.php?t=325871)

Jaggee 12-12-2017 11:26 AM

Need help with loading fields
 
Hello, I'm using vBulletin 5 and attempting to create portal that loads custom information in lists that are submitted by different users. To do this, I got idea of using profile fields to create small fields of information and for bigger description use post thread to have bbcode etc. enabled.

To make all this simple for website user to reach, I'd like to have edit for all of these in one custom page, so they can edit the information they give. I'm open for other ideas, like if there is some kind of modifications available to use it would be even better.

The problem I have is that I haven't found out how to load these forms. Hope that someone could help me with this, thanks in advance. :)

--------------- Added [DATE]1513101041[/DATE] at [TIME]1513101041[/TIME] ---------------

I could really use the database to do this, but I have no clue how to do the queries correctly with vBulletin. I'd like to use fields to submit data in several fields and saved in same row with user's id. That data would be horizontally displayed in my portal page.

If anyone could help me with insert and fetch with vBulletin from the database, I'd really appreciate it. :)

noypiscripter 12-14-2017 04:23 AM

If you create custom profile fields, then they would show up in the User Settings page (/settings/profile). No need to create a separate page and code for saving, updating and querying the database.

Jaggee 12-15-2017 10:28 AM

Quote:

Originally Posted by noypiscripter (Post 2591576)
If you create custom profile fields, then they would show up in the User Settings page (/settings/profile). No need to create a separate page and code for saving, updating and querying the database.

Thanks for the heads up. Do you know is there any modification to allow use of BBcode in these userfields? I think there was one for vB4.

noypiscripter 12-15-2017 11:52 PM

Where do you want to display the custom fields?

Jaggee 12-17-2017 09:12 AM

Quote:

Originally Posted by noypiscripter (Post 2591638)
Where do you want to display the custom fields?

In a custom page, PHP module.

noypiscripter 12-21-2017 01:26 AM

You can call User or Profile API from PHP Module to fetch the custom fields. I don't have it handy but if you know how to read the php code, you can take a look at the source code.


All times are GMT. The time now is 09:14 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.02184 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete