Topic: advProfile
Crash

Noob
Noob
Posts: 3

Posted:
Mar 24, 2007

Greetings.

Its a great module and thanks for the acceptance :)

However, I was wondering with advProfile, how do we make the user dynamic fields show on the profiles to "other" people who are looking at the profiles and make them searchable? (like in MileStone 8)

(I know how to add the dynamic user, just not make it showable to "other" users)

I've get the impression that it should be similar/same to "PNuserhack", however i don't use userhack because its outdated.

I hope i've worded this right and its understadable..

Thanks :)
Lena
avatar
Noob
Noob
Posts: 11

Posted:
Mar 24, 2007

Hi Crash,

just include something like this in your template

Code
  1.           <td class="title"><!--[pnml name="_YOURFIELDNAME"]-->: </td>
  2.           <td><!--[$YOURFIELDNAME_VALUE|pnvarprepfordisplay]--></td>
  3.         </tr>

for strings or
Code
  1.           <td class="title"><!--[pnml name="_YOURFIELDNAME"]-->: </td>
  2.           <td><!--[$YOURFIELDNAME_VALUE|pnvarprephtmldisplay|pnvarcensor]--></td>
  3.         </tr>

for textfields

greetings

Lena
Crash

Noob
Noob
Posts: 3

Posted:
Mar 24, 2007

Cheers Lena :)

Appreciate it, as it was giving me a headache

I'm guessing that is how to make it "searchable"

I'm also having problems showing the actual dynamic user data when people click on members in memberlist, any ideas how to make it show on their profile?

This ones blowing my brains out... :D
Lena
avatar
Noob
Noob
Posts: 11

Posted:
Mar 24, 2007

Crash
I'm also having problems showing the actual dynamic user data when people click on members in memberlist, any ideas how to make it show on their profile?


That is exactly what i have told you.
Place it in the advProfile_user_main.tpl template and you done.

it works fine as you can see at
http://shining-blue.de/index.php?module=advProfile&uname=Shining-Blue

Greetings

Lena
Crash

Noob
Noob
Posts: 3

Posted:
Mar 24, 2007

cheers, sorry about that, i got confused, when looking at code icon_lol
Chestnut
avatar
Site Admin
Posts: 1320

Posted:
Mar 25, 2007

Dynamic data are not really "searchable" in their current 0.76x state because there is no advanced query to make it happen unlike 0.8.

But what Lena gave you is indeed the way to make appear a particular user info in the advProfile templates.

All dynamics are available the way she told you.

Code
  1. <!--[pnml name="_YOURFIELDNAME"]-->

To show the label of the field and
Code
  1. <!--[$YOURFIELDNAME_VALUE|pnvarprepfordisplay]-->

for the value of the field.

(Notice that the first _ is removed and we add _VALUE at the end in this case).

icon_wink

Chestnut ! Cool
Site Admin