1
Tovenaar
SmartyFAQ random quotes in banner
  • 2005/1/5 15:42

  • Tovenaar

  • Just popping in

  • Posts: 51

  • Since: 2004/2/6 8


From PR/sales point of view @ my site, the random quotes block from SmartyFAQ is a far better solution then using random banners.

I would therefore like to incorparate the content of
<{$xoops_url}>/modules/smartfaq/templates/faqs_random_faq.html
in my site header, but don't have clue how to do it.

I came up with
Quote:

<!-- start randomquote block-->
<{foreach item=block from=$xoops_blocks}> <table class="blok" align="center" cellpadding="3" cellspacing="2">
<{if $block.bid==23}>
<a href='<{$xoops_url}>/modules/smartfaq/faq.php?faqid=<{$block.id}>'><{$block.lang_answer}></a>
<{/if}>
</table><{/foreach}>
<!--end randomquote block-->

but it feels like I'm missing a whole bunch of init parameters

Who can help me out?

2
carnuke
Re: SmartyFAQ random quotes in banner
  • 2005/1/5 16:21

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Look in your theme.html file and find your banner tag

<{$xoops_banner}>


replace it with...

<!-- Start center-right blocks loop -->
                              <{foreach 
item=block from=$xoops_crblocks}><{include file="your_theme/theme_blockcenter_r.html"}><{/foreach}>
<!-- 
End center-right blocks loop -->


now in admin>blocks> use centre right block position to hold your smartfaq block.

This will only work of course if you are not already using your center right block for exixting content.

3
Tovenaar
Re: SmartyFAQ random quotes in banner
  • 2005/1/5 16:30

  • Tovenaar

  • Just popping in

  • Posts: 51

  • Since: 2004/2/6 8


hmm interesting work around. Thanks!

but ... I don't want the entire block up there (just the Q and A ... so no blockname). And I'm not using all block 'positions' yet, but I will when I make progress with site development. Is there an other solution?

It doesn't matter if it gets dirty, aslong as it's functional

4
carnuke
Re: SmartyFAQ random quotes in banner
  • 2005/1/5 16:37

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


You can strip out the parts of the block you dont want in the block templates.

If you look at my site (below in link) you will see a news ticker that uses this exact technique.

5
Tovenaar
Re: SmartyFAQ random quotes in banner
  • 2005/1/5 18:21

  • Tovenaar

  • Just popping in

  • Posts: 51

  • Since: 2004/2/6 8


thanx! works!

testsite url:http://euphony.ekpc.nl

6
carnuke
Re: SmartyFAQ random quotes in banner
  • 2005/1/5 19:55

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Looks good Tovenaar! Just looked at your site and it works well especially with the random FAQ loading on each page. Mybe I'll put this in the FAQ?

BTW My neighbour is an agent for Euphony!

7
Mithrandir
Re: SmartyFAQ random quotes in banner

Totally agree - that random FAQ in the banner area is an excellent idea and looks great.

Good luck with your future XOOPS'ing

Login

Who's Online

161 user(s) are online (113 user(s) are browsing Support Forums)


Members: 1


Guests: 160


heyula,

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