| Re: Adding Xoops variables to a block |
| by shank on 2006/1/31 3:52:17 Why not just code it into the theme? |
| Re: Adding Xoops variables to a block |
| by allnewtome on 2006/1/30 23:33:54 Quote:
You could maybe try this. Find a block you don't use, e.g. search, edit its template and replace its content with your code from above. Then make it the center block. Or why not edit the login block's template, and set it to be on the centre? That might make more sense. |
| Re: Adding Xoops variables to a block |
| by Quest on 2006/1/30 16:03:33 You can't use smarty tags in custom block which is html. I believe they only work in the template files and theme. There may be a way to use PHP to use the smarty tags. You can find more information on it by searching using Custom Blocks. Quest |
| Re: Adding Xoops variables to a block |
| by xfranc on 2006/1/30 15:18:58 Thanks for the reply. Unfortunately im using this string in my HTML theme as well and the <{$xoops_imageurl}> is direct path. Thanks. |
| Re: Adding Xoops variables to a block |
| by msdana on 2006/1/30 14:59:42 Not for sure if this is correct, but it looks like you are missing the slash after <{$xoops_url}> in that line. Try this le="color: #000000"><?php <{if $xoops_isuser}> Welcome <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a>. <{else}> Welcome Guest, Please <a href="<{$xoops_url}>" onMouseOver='W.src="<{$xoops_imageurl}>[color=CC0000]/[/color]register_mo.gif"' onMouseOut='W.src="<{$xoops_imageurl}>[color=CC0000]/[/color]register.gif"'><img src="<{$xoops_imageurl}>[color=CC0000]/[/color]register.gif" name="W"</a> Hope that helps! |