1
3lr0n
xoopstpl -> assign
  • 2009/12/8 14:18

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Hello, Im trying to customize the profile page ans want to place some variables, like number of posts and member since, outside the structure of this <{foreach}> on profile_userinfo.html
<{foreach item=category from=$categories}>
    <{if isset(
$category.fields)}>

     <
div class="profileUserCatTitle"><{$category.cat_title}></div>
     <
div class="profileUserCatContent mozall">
      <{foreach 
item=field from=$category.fields}>
   <
div class="profileUserCatFields">  <b><{$field.title}></b>:  <{$field.value}></div>
        <{/foreach}>
     </
div>


    <{/if}>
<{/foreach}>

**
The classes and structure are already modified to fit my need.
So i take a look to userinfo.php, and noticed that a lot of variables are already assigned via xooptpl-> assign, not all of them works on the template. I mean, i found for example this in userinfo.php
$xoopsTpl->assign('user_posts'$thisUser->getVar('posts'))
and thought it will be as easy as set the variable in the place i need like this <{$user_posts}>... but this didnt work.. and dont know why some of them, like <{$user_id}> have a value and this assigned same way doesnt. regards 3lr0n

2
3lr0n
Re: xoopstpl -> assign
  • 2009/12/8 14:27

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Forget it

I was looking to wrong userinfo.php.. i have to check /modules/profile/userinfo.php, not the one in root directory :F

3
red_Slider
Re: xoopstpl -> assign

Hey!
Try this:
http://www.myxoops.org/modules/news/article.php?storyid=1180
or
http://www.myxoops.org/modules/news/article.php?storyid=1183
download link:
http://www.myxoops.org/modules/PDdownloads/singlefile.php?cid=68&lid=584

If U don't speek german use google translator. The module has only one language (german) for the moment.
Remember that is still alfa but Alfred sayd that it will be realised soon (it was in november).
IMO it is the best profile module for xoops. This module needs some works, but it's most promissing.
User can manage:
- photos
- make an avatar (just chosing it from your gallery),
- photos are resized so user can upload larger file than stanard XOOPS avatar
- music album
- video album
- groups
- friends list
- blog
- guestbook

Admin can add a extended fields in the profile registration (based on 2 steps registration process).

What is needed:
1. As in yogurt - global permission (now every user decides what to show)
2. New profile fields aren't visible (but can be editable)


I didn't try group module from this topic:
https://xoops.org/modules/newbb/viewtopic.php?post_id=320215#forumpost320215

Cheers!
red_Slider

4
sailjapan
Re: xoopstpl -> assign

Wow! that's got potential! Here's a site using it.

Login

Who's Online

191 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits