xoops forums

slyss

Quite a regular
Posted on: 2008/3/1 15:09
slyss
slyss (Show more)
Quite a regular
Posts: 343
Since: 2006/1/26
#1

Revolution of Xoops Banners System

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/ste ... tem.php?easiestml_lang=en

thanks

slyss

Quite a regular
Posted on: 2008/3/2 1:09
slyss
slyss (Show more)
Quite a regular
Posts: 343
Since: 2006/1/26
#2

Re: Revolution of Xoops Banners System

not intresting ?

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

wait for feedback.

thanks

Wilco

Friend of XOOPS
Posted on: 2008/3/2 15:55
Wilco
Wilco (Show more)
Friend of XOOPS
Posts: 49
Since: 2004/4/27
#3

Re: Revolution of Xoops Banners System

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

slyss

Quite a regular
Posted on: 2008/3/2 16:22
slyss
slyss (Show more)
Quite a regular
Posts: 343
Since: 2006/1/26
#4

Re: Revolution of Xoops Banners System

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

Wilco

Friend of XOOPS
Posted on: 2008/3/2 16:26
Wilco
Wilco (Show more)
Friend of XOOPS
Posts: 49
Since: 2004/4/27
#5

Re: Revolution of Xoops Banners System

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

Wilco

Friend of XOOPS
Posted on: 2008/3/2 20:42
Wilco
Wilco (Show more)
Friend of XOOPS
Posts: 49
Since: 2004/4/27
#6

Re: Revolution of Xoops Banners System

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

stefan88

Community Support Member
Posted on: 2008/3/2 21:01
stefan88
stefan88 (Show more)
Community Support Member
Posts: 1085
Since: 2004/9/20
#7

Re: Revolution of Xoops Banners System

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

Wilco

Friend of XOOPS
Posted on: 2008/3/2 21:18
Wilco
Wilco (Show more)
Friend of XOOPS
Posts: 49
Since: 2004/4/27
#8

Re: Revolution of Xoops Banners System

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

slyss

Quite a regular
Posted on: 2008/3/2 22:19
slyss
slyss (Show more)
Quite a regular
Posts: 343
Since: 2006/1/26
#9

Re: Revolution of Xoops Banners System

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

Wilco

Friend of XOOPS
Posted on: 2008/3/3 8:26
Wilco
Wilco (Show more)
Friend of XOOPS
Posts: 49
Since: 2004/4/27
#10

Re: Revolution of Xoops Banners System

Hi,

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