41
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:

<?php

... here code ...

?>


best



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



43
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/3 12:02

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

blueteen wrote:
Hello, good job Slyss
for the CASE 3, you wrote :
echo getbanner_from_id_banner(ID_CLIENT);


instead of
echo getbanner_from_id_client(ID_CLIENT);


i'm right ?


ohhhh sorry...

the right sintax for case 3 is:

echo getbanner_from_id_client(ID_CLIENT);





44
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/3 9:39

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

Wilco wrote:
YES! Very very good...Thanks,

Wilco


you are welcome



45
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/3 9:13

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


insert this:

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

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

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

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

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

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



46
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/3 8:50

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


no....

you need to replace ID_BANNER_4 with the real ID!



47
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/3 8:33

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


do you have inserted the right banner id? ID_BANNER_1



48
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/2 22:19

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


ehehe sorry i have forget $

try this:

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

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

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


sorry again



49
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/2 16:22

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

Wilco wrote:
Yes indeed Slyss, it's a great improvement for me!
It works perfect...

Nevertheless, I am searching for a similar but more specific hack. I appreciate your contribution but unfortunately it is not what I want.

I want to manage banners in blocks not only limited within modules but within pages in that module. I'll give an example:
I want to show a specific banner in the module news on this story:
../modules/news/article.php?storyid=1
I want to show a different specific banner on
../modules/news/article.php?storyid=2

Can that be done? Is it what others also want/need?
Please give your feedback.

THX
Wilco


simple

in a PHP block insert:

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

if(
storyid == 1) {echo getbanner_from_id_banner(ID_BANNER_1);}

if(
storyid == 2) {echo getbanner_from_id_banner(ID_BANNER_2);}

....


and place this block on NEWS pages

that's all!!! :-p



50
slyss
Re: Revolution of Xoops Banners System
  • 2008/3/2 1:09

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


not intresting ?

in my opinion this is a great improvement of Banner system...

wait for feedback.

thanks




TopTop
« 1 2 3 4 (5) 6 7 8 ... 22 »



Login

Who's Online

75 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 75


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