The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
help - trying to show profile fields on showgroups
hello i'm trying tom customize my showgroups page and call some additional profile fields, but i can only seem to show profile field 2 and no others, in the showgroups php file i found this code:
PHP Code:
Code:
<if condition="$user['field18']"> <div> Tell Us More:<br /> $user[field18] </div> </if> any help would be appreciated |
#2
|
||||
|
||||
use the showgroups_start hook to add in the userfields that you want to grab. SEe if that works.
|
#3
|
||||
|
||||
thanks for the reply lynne could you possibly explain how i would do that?
|
#4
|
||||
|
||||
Actually, I just looked and even though the hook is right above the query, it doesn't allow you to add any variables into the query. So, I think you'll have to add them manually - ie. add ",userfield.field18" into the select statement.
|
#5
|
||||
|
||||
Quote:
i'd very much appreciate if you could thanks again |
#6
|
||||
|
||||
I don't know of an article about adding to queries. You can see what a select statement is like by looking at the mysql documentation. But, just look at the query in that page around line 99 (or 168 if it's for the moderators). You'll see all this stuff like "select this, that, theother" and you just need to add the other field to it before the FROM part. You'll really just want to play with it a bit. I think what I'm suggesting will work, but since I've never tried to add the fields to my usergroups list, I really don't know.
|
#7
|
||||
|
||||
Quote:
any help is again appreciated |
#8
|
||||
|
||||
You'd have to compare the queries to see why it is no longer working. I seem to recall looking at some of the queries and it used to be they would select user.* and now they are only selecting the specific user.whatever fields they need. This is better for memory and probably better practice.
|
#9
|
||||
|
||||
i have no idea about php(even though i wouldn't like learning but from what i can determine this is the difference,
showgroups.php 3.8.2: PHP Code:
PHP Code:
it wold maybe help me understand things a bit better thanks again for the help so far |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|