1
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?



2
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);



3
chipbyte
Re: xoops banner system into a block?
  • 2008/11/27 14:14

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


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



4
chipbyte
Re: xoops banner system into a block?
  • 2008/11/27 13:17

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


Is this right?

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



5
chipbyte
Re: xoops banner system into a block?
  • 2008/11/26 22:58

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


Ok my theme.html file like this

<tr>
<td id="headerL">&nbsp;</td>
<td id="headerLogo">&nbsp;</td>
<td id="bannerSection"><{$xoops_banner}></td>
<td id="headerR">&nbsp;</td>
</tr>



6
chipbyte
Re: xoops banner system into a block?
  • 2008/11/26 21:46

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


Yes i already use this code for block it's ok, it's working

But i want to embed this code or something like that for in any theme

That's the my problem!



7
chipbyte
Re: xoops banner system into a block?
  • 2008/11/26 19:50

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


Thanks guys

I've allready edit to /include/functions.php and then, i've several banners, i'm using on blocks other banners. But i want to use the other one by id

So where exactly must i put this code in theme.html. Which line?

<{php}> echo getbanner_from_id_banner(1); <{/php}>



8
chipbyte
Re: xoops banner system into a block?
  • 2008/11/26 15:47

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


Because i want to use XOOPS banner system and i wanna see clicks on the banner.

I just want to one banner top of the page, that's all. I'am working localhost now.

I think we Must be change in theme.html

this line:

<td id="bannerSection"><{$xoops_banner}></td>

For example like this:

<td id="bannerSection"><{php}>echo xoops_getbanner(1);<{/php}></td>


But i can't do that and i can't understand anytihng, must be very simple!




9
chipbyte
Re: xoops banner system into a block?
  • 2008/11/26 15:21

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


Yes i do, like the banner here...
BUT
I just wanna show one banner (No random banner ok) just one.

For example: By Banner ID: 1



10
chipbyte
Re: xoops banner system into a block?
  • 2008/11/26 12:03

  • chipbyte

  • Just popping in

  • Posts: 12

  • Since: 2007/11/1


So how can we apply this on theme?

I don't mean block.

I want to display static banner on top of page [(in theme)(not random banner)]




TopTop



Login

Who's Online

57 user(s) are online (26 user(s) are browsing Support Forums)


Members: 0


Guests: 57


more...

Donat-O-Meter

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

Latest GitHub Commits