to previous topic Print topic to next topic

 Root :: Developments :: Modules :: advProfile
 Moderated by:
 
  Bottom  advProfile
Crash Posted: 24.03.2007, 15:08
Noob
Noob


registered: Mar 24, 2007
Posts: 3

Status:  offline
last visit: 24.03.07
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 :)
Top  Crash send PM
 
Lena Posted: 24.03.2007, 15:26
Noob
Noob
avatar

registered: Mar 24, 2007
Posts: 11

Status:  offline
last visit: 08.02.08
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
Top  Lena send PM Homepage
 
Crash Posted: 24.03.2007, 17:04
Noob
Noob


registered: Mar 24, 2007
Posts: 3

Status:  offline
last visit: 24.03.07
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
Top  Crash send PM
 
Lena Posted: 24.03.2007, 17:11
Noob
Noob
avatar

registered: Mar 24, 2007
Posts: 11

Status:  offline
last visit: 08.02.08
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
Top  Lena send PM Homepage
 
Crash Posted: 24.03.2007, 18:53
Noob
Noob


registered: Mar 24, 2007
Posts: 3

Status:  offline
last visit: 24.03.07
cheers, sorry about that, i got confused, when looking at code icon_lol
Top  Crash send PM
 
Chestnut Posted: 25.03.2007, 03:43
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
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
Top  Chestnut send PM Homepage
 



Powered by pnForum Version 2.0.1
DarkMindZ