1
slyss
Revolution of Xoops Banners System
  • 2008/3/1 15:09

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


First of all sorry if my english is bad (is not my first language).

Finally i have create 2 functions to place your BANNERS everywhere you want and choosing which BANNER to show!!!

Please go here for more info:

http://www.stefanosilvestrini.com/stefano-silvestrini/xoops-book/xoops-banners-system.php?easiestml_lang=en

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

2
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
[size=x-large]2008 Xoops Book[/size]

3
Wilco
Re: Revolution of Xoops Banners System
  • 2008/3/2 15:55

  • Wilco

  • Friend of XOOPS

  • Posts: 49

  • Since: 2004/4/27


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

4
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
[size=x-large]2008 Xoops Book[/size]

5
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

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

7
stefan88
Re: Revolution of Xoops Banners System
  • 2008/3/2 21:01

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Did you set block content type to PHP script?
..

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
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
[size=x-large]2008 Xoops Book[/size]

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

Login

Who's Online

207 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 207


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