1
nokialee
xoops tpl command
  • 2005/3/21 2:40

  • nokialee

  • Just popping in

  • Posts: 83

  • Since: 2005/1/17


anyone know what is templates with xoopsTpl-commands?

2
brash
Re: xoops tpl command
  • 2005/3/21 3:46

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Do you mean you want to assign something to a template? Can you explain in a bit more depth?

3
nokialee
Re: xoops tpl command
  • 2005/3/21 4:26

  • nokialee

  • Just popping in

  • Posts: 83

  • Since: 2005/1/17


I think that this will be not TOO complicated. I never looked into these modules, but I think it will work like this:

It is important, that the user-id of the one that submitted the information is saved to the database. On the page where the informations are displayed the user-id of the current user must be retrieved and compared to the submitter-id.

I think! the displayed information will be passed to templates with xoopsTpl-commands. In the php-code you have to make an if-statement: if submitter-id and viewer-id are the same then set the xoopsTpl-variable with the value, else set xoopsTpl with value false.

Now you have to change the templates where the information have to appear. It works like this:


<{if $passedvariable != false}>
show the user-specific information
<{/if}>

Login

Who's Online

94 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 94


more...

Donat-O-Meter

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

Latest GitHub Commits