1
agf8623
Is this a smarty tag?
  • 2004/8/4 17:21

  • agf8623

  • Just popping in

  • Posts: 59

  • Since: 2004/5/15


Hey, I was wondering if this is a smarty tag:
<{$lang_totalusers}>

I got this from the User Search page and was wondering how I could use it in a block. Right now, when I paste this tag into a block (Who's Online), it doesn't work. Can anyone tell me what I need to do to set the path of this thing so it works?

Thanks!!
Manda

2
jmass
Re: Is this a smarty tag?
  • 2004/8/4 17:29

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


The syntax is right for a Smarty tag. The php page associated with the template must pass the lang_totalusers var to the template in order for it to display anything though.

JMass

3
agf8623
Re: Is this a smarty tag?
  • 2004/8/4 17:34

  • agf8623

  • Just popping in

  • Posts: 59

  • Since: 2004/5/15


How would I do that?

4
jmass
Re: Is this a smarty tag?
  • 2004/8/4 17:47

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


In the php file:

// Set Template
$xoopsOption['template_main'] = 'test_template.html';

// Get Vars from GET
$TestVAR1 = $_GET['TestVAR1'];

// Get Vars from POST
$TestVAR2 = $_POST['TestVAR2'];

// Create New Var
$TestVAR3 = 'TestVAR3';

// Assign Vars to Smarty Template
$xoopsTpl->assign('testvar1', $TestVAR1);
$xoopsTpl->assign('testvar2', $TestVAR2);
$xoopsTpl->assign('testvar3', $TestVAR3);


I hope this helps,

JMass

5
agf8623
Re: Is this a smarty tag?
  • 2004/8/4 20:15

  • agf8623

  • Just popping in

  • Posts: 59

  • Since: 2004/5/15


Thank you, that is what I needed!

Login

Who's Online

166 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 166


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