21
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/3 13:02

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

Wilco wrote:
I thought I did understand it. But when I want to display specific banners in the pages within the module Iframe there is again nothing to display. I inserted this:

$frameid = empty( $_GET['frameid'] ) ? intval$_GET['frameid'] ) ; 

if(
$frameid == 1) {echo getbanner_from_id_banner(4);} 

if(
$frameid == 2) {echo getbanner_from_id_banner(5);}


Of course I put Content Type on PHPscript and the block is visible in the module Iframe

How come?


i apologize but i don't know iFrame module...
[size=x-large]2008 Xoops Book[/size]

22
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/3 13:25

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


I understand... Nevertheless... Anyone else who want to try it with Iframe? It's really a great improvement in banner usage, so please spend some time at the suggestion of Slyss and try it within Iframe...

23
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/3 15:42

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

Wilco wrote:
I understand... Nevertheless... Anyone else who want to try it with Iframe? It's really a great improvement in banner usage, so please spend some time at the suggestion of Slyss and try it within Iframe...


i don't know iframe but you can try this:


... here code ...

?>


best
[size=x-large]2008 Xoops Book[/size]

24
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/3 19:49

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


No results...

with PHPdebug on, the expected block is shown with the text:
Parse error: syntax error, unexpected '<' in /home/my_username/public_html/xoops/class/xoopsblock.php(146) : eval()'d code on line 1

Only with the code, so without the ...?>
there is no block shown...

25
pacho
Re: Revolution of Xoops Banners System
  • 2008/3/3 20:50

  • pacho

  • Quite a regular

  • Posts: 235

  • Since: 2005/6/7 2


Very interesting functions. I have a mess inside my mind... what about a BBC code like [banner] that we can put inside a text in any module? Maybe with parameters like id_banner or id_client.
Your functions are ready and working, seems just a one more step.

26
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/4 7:41

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

pacho wrote:
Very interesting functions. I have a mess inside my mind... what about a BBC code like [banner] that we can put inside a text in any module? Maybe with parameters like id_banner or id_client.
Your functions are ready and working, seems just a one more step.


is a good idea...

for the moment you can try this:

<{php}> your php codes here <{/php}>


if your editor support Smarty Tags..
[size=x-large]2008 Xoops Book[/size]

27
pacho
Re: Revolution of Xoops Banners System
  • 2008/3/4 14:51

  • pacho

  • Quite a regular

  • Posts: 235

  • Since: 2005/6/7 2


Thanks slyss.

28
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/9 18:17

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

pacho wrote:
Thanks slyss.


you are welcome
[size=x-large]2008 Xoops Book[/size]

29
McDonald
Re: Revolution of Xoops Banners System
  • 2008/3/21 1:14

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


@ slyss,

A great and useful banner hack!

Resized Image

Will use it in WF-Links 1.05 for category sponsoring.

30
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/21 7:32

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

McDonald wrote:
@ slyss,

A great and useful banner hack!

Resized Image

Will use it in WF-Links 1.05 for category sponsoring.


happy to help XOOPS

please post your url when hack works....

best
[size=x-large]2008 Xoops Book[/size]

Login

Who's Online

212 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

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

Latest GitHub Commits