31
chipbyte
Re: xoops banner system into a block?
  • 2008/11/30 17:50

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


I've got one more question? (This time about multi banner on same block)

How can we add more banners in the same block?

For ex.

Title Of Banner ID:2
echo getbanner_from_id_banner(2);

Title Of Banner ID:3
echo getbanner_from_id_banner(3);

Title Of Banner ID:4
echo getbanner_from_id_banner(4);

32
slyss
Re: xoops banner system into a block?
  • 2008/11/30 17:52

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

chipbyte wrote:
I've got one more question? (This time about multi banner on same block)

How can we add more banners in the same block?

For ex.

Title Of Banner ID:2
echo getbanner_from_id_banner(2);

Title Of Banner ID:3
echo getbanner_from_id_banner(3);

Title Of Banner ID:4
echo getbanner_from_id_banner(4);


of course!!!

thanks a lot to use my banner hack!!!
[size=x-large]2008 Xoops Book[/size]

33
slyss
Re: xoops banner system into a block?
  • 2008/11/30 17:53

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

chipbyte wrote:
Yeah buddy, it's working, it's working.. I love XOOPS and you. Thanks everyone and all XOOPS Team.

That's the solution for XOOPS static banner on theme (by Banner ID)

Just 3 Steps

1: First editing root_directory/include/functions.php (Here is the link Thanks Stefano)

2: Editing theme.html
Find this line in theme.html:
<td id="bannerSection"><{$xoops_banner}>td>

Then replace with:
<td id="bannerSection"><{php}> echo getbanner_from_id_banner(1); <{/php}>td>


3: Last step is very important: Clearing temporary files
root_directory/xoops_data/caches/smarty_compile


thanks to you!!!
[size=x-large]2008 Xoops Book[/size]

34
chipbyte
Re: xoops banner system into a block?
  • 2008/11/30 22:04

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


Thanks again, Stefano


So how can i add more banners in the same block? What's the PHP code for this?

35
slyss
Re: xoops banner system into a block?
  • 2008/12/1 7:47

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


is very simple:

echo getbanner_from_id_banner(1);
echo 
'';
echo 
getbanner_from_id_banner(2);
...
[size=x-large]2008 Xoops Book[/size]

Login

Who's Online

446 user(s) are online (327 user(s) are browsing Support Forums)


Members: 0


Guests: 446


more...

Donat-O-Meter

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

Latest GitHub Commits