21
Wayde
Re: Adding a block to a template
  • 2005/5/29 1:11

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey, Thanks for the reply.

Quote:
<table class="outer" cellspacing="1">

<{if $block.disp_mode == 0}>
<tr>
<th class="head" nowrap><{$block.lang_forum}></th>
<th class="head" nowrap><{$block.lang_topic}></th>
<th class="head" align="center" nowrap><{$block.lang_replies}></th>
<th class="head" align="center" nowrap><{$block.lang_views}></th>
<th class="head" align="center" nowrap><{$block.lang_lastpost}></th>
</tr>

<{foreach item=topic from=$block.topics}>
<tr class="<{cycle values="even,odd"}>">
<td><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$topic.forum_id}>"><{$topic.forum_name}></a></td>
<td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&forum=<{$topic.forum_id}>&post_id=<{$topic.post_id}>#forumpost<{$topic.post_id}>">

<{if $topic.topic_subject eq NONE}>
<{else}>
<{$topic.topic_subject}>
<{/if}>

<{$topic.title}></a><{$topic.topic_page_jump}></td>
<td align="center"><{$topic.replies}></td>
<td align="center"><{$topic.views}></td>
<td align="right"><{$topic.time}><br /><{$topic.topic_poster}>&nbsp;<{$topic.jump_post}></td>
</tr>
<{/foreach}>

<{elseif $block.disp_mode == 1}>

<tr>
<td class="head" nowrap><{$block.lang_topic}></td>
<td class="head" align="center" nowrap><{$block.lang_replies}></td>
<td class="head" align="center" nowrap><{$block.lang_lastpost}></td>
</tr>

<{foreach item=topic from=$block.topics}>
<tr class="<{cycle values="even,odd"}>">
<td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&forum=<{$topic.forum_id}>&post_id=<{$topic.post_id}>#forumpost<{$topic.post_id}>"><{$topic.title}></a></td>
<td align="center"><{$topic.replies}></td>
<td align="right"><{$topic.time}><br /><{$topic.topic_poster}>&nbsp;<{$topic.jump_post}></td>
</tr>
<{/foreach}>

<{elseif $block.disp_mode == 2}>

<{foreach item=topic from=$block.topics}>
<tr class="<{cycle values="even,odd"}>">
<td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&forum=<{$topic.forum_id}>&post_id=<{$topic.post_id}>#forumpost<{$topic.post_id}>"><{$topic.title}></a></td>
</tr>
<{/foreach}>

<{/if}>

</table>


Thats wat im wanting to add to just the "index" template in newbb...,.(its a block from newbb)
but when i do that... the tables are there.... but nothing shows.....
any ideas?

THanks

Wayde



22
Wayde
Adding a block to a template
  • 2005/5/28 22:22

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey guys,
What im trying to do is add a block to the bottom of my index page in newbb...

when i insert the code into the index template...
the block shows its table... but its empty..

wat do i have to do to get the block to work within the newbb index page?

Cheers

Wayde



23
Wayde
Re: Trying to Hack spotlight Module
  • 2005/4/14 12:26

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey guys,
dont worry i got it :)

cheers



24
Wayde
Re: News articles on web site home page?
  • 2005/4/13 4:06

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey,

Spotlight is a module by its self..
i use news 1.3 with the spotlight module...
you can find it
here



25
Wayde
Re: News articles on web site home page?
  • 2005/4/12 23:31

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey there,

Use News 1.3 and the spotlight block that should be wat your after..

Take Care,

Wayde



26
Wayde
Re: Trying to Hack spotlight Module
  • 2005/4/12 23:27

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


starting to wounder if its possiable? or is there another file i have to edit to get it to work?


Cheers Guys,

Take Care,
Wayde



27
Wayde
Trying to Hack spotlight Module
  • 2005/4/12 8:21

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey guys...

Im tryin to hack the mini spot light part of the spotlight module....

Quote:
<{* mini spotlights starts here *}>
<table cellspacing="0" cellpadding="3">
<tr>
<td>
<div class="itemHead"><span class="itemTitle"><{$smarty.const._MB_KUHT_MINI_BLOCK_TITLE}></span></div>
</td>
</tr>
<{foreach item=m from=$block.mini}>
<tr>
<td>
<{if $m.img != ""}>
<img src="<{$xoops_url}>/<{$block.imgpath}>/<{$m.img}>" alt="" style="margin: 4px;" align="<{$m.align}>" />
<{/if}>
<{$m.text}>
</td>
</tr>
<tr>
<td align="left">
<a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$m.storyid}>"><{$block.lang_read}></a>
</td>
</tr>
<{/foreach}>
</table>
<{* mini spotlights ends here *}>


at the moment the above displays it like this

News Article
read more

Next News Article
read more

and so on

now wat im tryin to do is instead of the news articles goin down i want them goin across...but only 3 across... iv tried and tried with this and havnt seem to get it right....

would be great if sum one could lend a helping hand...

cheers guys, take care

Wayde



28
Wayde
Re: Finding Smarty Tags
  • 2005/4/12 8:02

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey,

Great stuff.. Found it :)

Thanks



29
Wayde
Finding Smarty Tags
  • 2005/4/12 7:04

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey guys,
Iv searched the forum and the FAQ and couldnt really find any thing ...

say i have the smarty tag.
" <{if $block.lang_other_news !=""}> "
in spot light module..

now.. where is that stored, or where does it get its info from? is there a file where all the smarty tags are stored? if so, is it within the module? or is it part of the "core" of xoops?

Thanks heaps

wayde



30
Wayde
newBB Polls prob
  • 2004/12/30 9:27

  • Wayde

  • Just popping in

  • Posts: 58

  • Since: 2004/9/14


Hey guys,
i added a poll to a topic in newbb
now,
it shows everything ok.
when u click vote.. it says "thanks for your vote"
but dosnt record your vote. eg. still says 0 votes
any ideas?


Thanks

Wayde
http://www.disciples.co.nz




TopTop
« 1 2 (3) 4 5 6 »



Login

Who's Online

97 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 97


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