![]() |
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']"> any help would be appreciated |
use the showgroups_start hook to add in the userfields that you want to grab. SEe if that works.
|
Quote:
|
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.
|
Quote:
i'd very much appreciate if you could thanks again |
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.
|
Quote:
any help is again appreciated |
Quote:
|
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 :D thanks again for the help so far |
All times are GMT. The time now is 03:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|