11
Forlorndeeds
Re: Writing or copying xoops code into another block don't work?

Can someone help me?
I fixed the syntax errors, but now the pictures of links won't load now. I'm NOT good with php, lol. Confuses me!

Okay, Users avatar won't load, top poster won't load, view last topics and last replys won't load, and welcome newest member, won't load. =/

Also where can I find edit the source of the smarty code? See if I wanted to change the text.

Here's the updated version:
<{if $block.view_popup == true}><{/if}>
<a target="_blank" href="<{$block.user_link}>"><{if $block.is_avatar}><img src="{$block.avatar}"><{/if}><br>
<a href="../<{$xoops_url}>/user.php"><{$xoops_uname}></a><br>
<br>
<a target="_blank" href="<{$block.vposts_link}><{$block.lang_view_posts}>"></a>&nbsp;<br>
&nbsp;<a target="_blank" href="<{$block.vtopics_link}><{$block.lang_view_topics}>"></a>
</p>
<p align="center"><img src="http://www.symbiotic-online.com/images/arrow.gif">
Statistics<br>
<{$block.lang_top_post}>&nbsp;<br>
<br><{$block.lang_new_user}>&nbsp;<{if $block.view_popup == true}><a target="_blank" href="<{$block.nuser_link}><{$block.lang_new_uname}>"></a><{/if}> <a target="_blank" href="<{$block.nuser_link}><{$block.lang_new_uname}>"></a>
<br>


12
Forlorndeeds
Re: Writing or copying xoops code into another block don't work?

BumP!

13
nick89
Re: Writing or copying xoops code into another block don't work?
  • 2004/7/18 8:39

  • nick89

  • Just popping in

  • Posts: 47

  • Since: 2004/7/9 8


you code is horrible : now lets sort some of this out:
<{if $block.view_popup == true}><{/if}>

The above line is redundant your asking it using if however nothing executes because there is nothing before its corosponding <{/if}>



<
a target="_blank" href="<{$block.user_link}>"><{if $block.is_avatar}><img src="{$block.avatar}"><{/if}><br>

You have {$block.avatarin your codealways have the entire delimeters <{ and }> - so it is <{$block.avatar}>


14
nick89
Re: Writing or copying xoops code into another block don't work?
  • 2004/7/18 8:45

  • nick89

  • Just popping in

  • Posts: 47

  • Since: 2004/7/9 8


this dosen't help the fact that smarty isn't parsed any way. why not add a block onto the end of the system module by editing its xoops_version.php file.

Login

Who's Online

168 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

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

Latest GitHub Commits