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



2
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...



3
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/3 11:04

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


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?



4
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/3 9:37

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


YES! Very very good...Thanks,

Wilco



5
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/3 9:09

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


That's the real ID...
I have two (test)banners. ID 4 and ID 5.
Please check your PM.



6
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/3 8:47

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Well, there is an difference. I put this in:

$storyid = empty( $_GET['storyid'] ) ? 0 : intval( $_GET['storyid'] ) ;

if($storyid == 1) {echo getbanner_from_id_banner(ID_BANNER_4);}

if($storyid == 2) {echo getbanner_from_id_banner(ID_BANNER_5);}

if($storyid == 3) {echo getbanner_from_id_banner(ID_BANNER_4);}

if($storyid == 4) {echo getbanner_from_id_banner(ID_BANNER_5);}

if($storyid == 5) {echo getbanner_from_id_banner(ID_BANNER_4);}



7
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/3 8:26

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Hi,

$ added but still no effect...
What next? Any suggestion is welcome.



8
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/2 21:18

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Yes I did, [just checked for sure.... ]



9
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/2 20:42

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


Well, that does not work...
Are you sure? However I am not familiar with PHP it looks OK...Can you please do a suggestion?



10
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/2 16:26

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


That's a quick respons... I wil try it later this evening... I'll be back




TopTop
(1) 2 3 4 5 »



Login

Who's Online

769 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 769


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