vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Custom Profile fields and calling them (https://vborg.vbsupport.ru/showthread.php?t=253033)

Cicada 11-02-2010 03:35 PM

Custom Profile fields and calling them
 
so i want to create links in a profile to basically submit a query that will compare lists of 2 members [for a trading website]

the url link will basically look like:

http://www.website.com/search.cgi?us...R2&list2=TRADE

and include this in the postbit.

can you use vb code to call a user's own (USER1) entry in a custom profile field and then call the poster's (USER2) entry in that same profile field?

Lynne 11-02-2010 06:57 PM

profile fields are just stored in the database, so you may create a query to call each of them. How you go about comparing the two strings is going to be the interesting part.

Cicada 11-03-2010 02:57 PM

Quote:

Originally Posted by Lynne (Post 2117227)
profile fields are just stored in the database, so you may create a query to call each of them. How you go about comparing the two strings is going to be the interesting part.

well the link/script is external to the forums, and i just need to insert the user and the poster's entries from the respective profile fields into the URL with something like a raw.post --

so basically i want to use like a raw post.fieldX to populate the a URL with user and poster's entries for that field.

can i call a user's own entry for a profile field with vb code? i'm using this in a postbit modification. in the template if i use raw post.fieldX it uses the poster's entry, and not hte user. I'd like to use both.

Lynne 11-03-2010 10:39 PM

In the postbit, post.fieldx is the person who posted and bbuserinfo.fieldx is the person viewing the page.

Cicada 11-05-2010 06:02 PM

Quote:

Originally Posted by Lynne (Post 2117677)
In the postbit, post.fieldx is the person who posted and bbuserinfo.fieldx is the person viewing the page.

awesome. thanks! :D


All times are GMT. The time now is 10:23 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.01657 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
  • (5)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