xoops forums

loukaum

Just popping in
Posted on: 2017/8/2 19:32
loukaum
loukaum (Show more)
Just popping in
Posts: 93
Since: 2003/11/2
#1

An list with the smarty variables wich can I use

Is there any place with an list of smarty variables that can be used in Xoops?

I want to do something like:

<{if $xoops_isuser}>
            <
div>is user!</div>
<{else}>
            <
div>not user!</div>
<{/if}>

Mamba

Moderator
Posted on: 2017/8/2 20:35
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#2

Re: An list with the smarty variables wich can I use

This is just a copy of an older list from the XOOPS-Tips website:


<{$xoops_charset}>
Inserts the characterset info (meta tag infoe."iso-8859-1""UTF-8"

<{$xoops_langcode}>
Content Language e.g"DE""EN"

<{$xoops_meta_keywords}>
Inserts the keyword list from the Meta/Footer settings (meta tag info)

<{
$xoops_meta_description}>
Inserts the meta tag site description

<{$meta_copyright}>
Inserts the meta tag copyright text

<{$meta_robots}>
Inserts the W3C robot meta tag info

<{$meta_rating}>
Inserts the meta tag rating information

<{$xoops_sitename}>
Inserts the site name

<{$xoops_pagetitle}>
Inserts the page title

<{$xoops_theme}>
Theme name in directory "/themes/" e."default""xt2"

<{$xoops_themecss}>
Inserts the style.css e."http://www.xoops.org/themes/default/style.css" (noteany combination of the above can be arranged to fill out meta tag info to your liking)

<{
$xoops_url}>
Inserts the site URL e."http://www.xoops.org"

<{$xoops_js}>
Inserts XOOPS javascript code

<{$xoops_banner}>
Displays banners

<{foreach item=block from=$xoops_lblocks}>
<{
$block.title}>
<{
$block.content}>
<{/foreach}>
Code snippet to display the left blocks

<{if $xoops_showcblock == 1}>
Tests for system settings to display center blocks

<{foreach item=block from=$xoops_ccblocks}>
<{
$block.title}>
<{
$block.content}>
<{/foreach}>
Code snippet to show the center-center blocks

<{foreach item=block from=$xoops_clblocks}>
<{
$block.title}>
<{
$block.content}>
<{/foreach}>
Code snippet to show the center-left blocks

<{foreach item=block from=$xoops_crblocks}>
<{
$block.title}>
<{
$block.content}>
<{/foreach}>
Code snippet to show the center-right blocks

<{$xoops_contents}>
Show the news and other contents

<{if $xoops_showcblock == 1}>
Test for showing center blocks

<{if $xoops_showrblock == 1}>
Test for showing right blocks

<{foreach item=block from=$xoops_rblocks}>
<{
$block}>
<{/foreach}>
Code snippet to show right blocks

<{$xoops_footer}>
Shows the footer

<{$xoops_isadmin}>
True if the visitor is Administrator

<{$xoops_isuser}>
True if the visitor is a logged in user

<{$xoops_userid}>
User ID of the member

<{$xoops_uname}>
Uname for the member
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

loukaum

Just popping in
Posted on: 2017/8/3 11:06
loukaum
loukaum (Show more)
Just popping in
Posts: 93
Since: 2003/11/2
#3

Re: An list with the smarty variables wich can I use

Thanks Mamba! Now I have a nice modal login working properly on this site. :)