View Full Version : Custom Profile fields and calling them
Cicada
11-02-2010, 03:35 PM
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?user=USER1&list=WANT&user2=USER2&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
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
In the postbit, post.fieldx is the person who posted and bbuserinfo.fieldx is the person viewing the page.
awesome. thanks! :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.