Author Topic: Sobi2 Banner Manager Component and Module  (Read 29679 times)

0 Members and 1 Guest are viewing this topic.

Offline Aspergillus

  • SobiPro Gold Club Member
  • Sobi User
  • *
  • Posts: 99
  • Reviews:

    What is it?

Sobi2 Banner Manager Component and Module
« on: 31. December 2008, 11:14:24 »

Very Short description:
"This Component and Module make it possible to use Sobi2 instead of the Joomla Banner Component an Module."

-----

Dear m8's,

We are using SOBI2 so all our Sponsors have an entry. As Sobi2 Image we use their Banner.
At the same time we are displaying their banners by the standard joomla Banner component.
So we have to enter all data twice and upload the banners twice.

I wrote a little component and a module to make it possible to display the sobi2 image (or icon) as a banner.
The Component ist only accessible from the backend and shows views and clicks of the banners.

All the entrys in the component listing are created by the module.. So it is not neccesary to enter anything in the component. (Its for statistics only)

Well the webfield ID has to be set in the component configuration.
Usually if the field was never deleted an re crerated the field ID of this field will be "8"
If the field was deleted from SOBI2 an recreated the ID will be different and it's kind of
hard to find out what ist is. (I used phpmyadmîn)
It's the field id of the field containing the URL of the SOBI2 Entry in the table #__sobi2_fields_data

The Module displays the banners and creates an entry in the component if it does not exist.
Each time the banner is displayed the module increases the view counter by 1.
When a banner is clicked the module forwards the "click" to the component ..the component
increases the "click" counter by one and forwards the client to the website.

What Banners are displayed is configured in the module. It is possible to use all SOBI2 categorys or defined SOBI2 categorys.
(Showcat=0 means All Categorys, Showcat=1 menas only category 1, showcat 1,2 means category 1 and 2.)

From the Backend of the component it is possible to reset the counters or delete entrys.

Maybe this is usefull for some of you..
By the way it is for Joomla 1.5 Native only!
Package contains com_s2banner and mod_s2banner
Please make sure to install the component first, before you activate the module!!

Greez and a happy new year
Aspi



Moderator note: added the description and latest file from post Reply #13.

Download: com_s2banner_v1_0_1_unzip_first.zip 18KB, ZIP
 
« Last Edit: 31. March 2009, 11:55:27 by kenmcd »
Country: Switzerland Switzerland |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile


Offline Syrinx

Re: Sobi2 Banner Manager Component and Module
« Reply #1 on: 01. January 2009, 02:00:50 »
Awesome contribution, Aspi

Thank you!
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Aspergillus

  • SobiPro Gold Club Member
  • Sobi User
  • *
  • Posts: 99
  • Reviews:

    What is it?

Re: Sobi2 Banner Manager Component and Module
« Reply #2 on: 05. January 2009, 08:33:19 »
Hi m8's,

I found a bug that under some circumstances made an error
and did some cosmetics.

If somebody just wants to update it's enough to replace the folowing files:
In the module mod_s2banner.php  <-important

In the admin component /views/s2banner/tmpl/default.php <- only cosmetics

Greez Aspi
« Last Edit: 05. January 2009, 22:52:15 by Aspergillus »
Country: Switzerland Switzerland |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline piersol

Re: Sobi2 Banner Manager Component and Module
« Reply #3 on: 03. February 2009, 18:12:07 »
Can you tell us what to change manually to have this work with a sobi2 clone? I have a second install i found on here called sobi2markt

Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Aspergillus

  • SobiPro Gold Club Member
  • Sobi User
  • *
  • Posts: 99
  • Reviews:

    What is it?

Re: Sobi2 Banner Manager Component and Module
« Reply #4 on: 06. February 2009, 20:09:35 »
Can you tell us what to change manually to have this work with a sobi2 clone? I have a second install i found on here called sobi2markt



Hi Piersol,

I think the only things you have to change is all the database calls.. for example:
#__sobi2_item AS FD ON FD.itemid = item.sobiid 

Just replace all __sobi2 expressions in all Files with the on of the sob2 clone DB Name

Greez Aspi

Country: Switzerland Switzerland |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline john birch

Re: Sobi2 Banner Manager Component and Module
« Reply #5 on: 23. February 2009, 12:17:23 »
Hi, I have tried the banner with Joomla 1.5 and cannot get the links to work correctly. it is putting 2 // after the .com bit. I have tried sh404SEF on off default and still the same results.

http://talkaccommodation.com//index.php?option=com_s2banner&task=click&sobiid=12

the links to the listings should be http://talkaccommodation.com/Details/Wilp-Gybuu-Wolf-House.html

Thank you
Joomla version 1.5.14
SOBI2 version** RC 2.9.2.2 
PHP version** 5.2.6
MySQL Version** 4.1.22
Country: United Kingdom United Kingdom |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Talk Accommodation

Offline john birch

Re: Sobi2 Banner Manager Component and Module
« Reply #6 on: 26. February 2009, 19:01:42 »
Looking at my other sobi2 modules latest listings and  popular, they pick up the correct url for the listing and not the sobi actual listing

 http://talkaccommodation.com/Details/Wilp-Gybuu-Wolf-House.html

The banner mod is picking this up as a link

http://talkaccommodation.com//index.php?option=com_s2banner&task=click&sobiid=12


i have had a look at the 2 codes and am stumped

is it down to the sh404sef ?

thank you

John




Joomla version 1.5.14
SOBI2 version** RC 2.9.2.2 
PHP version** 5.2.6
MySQL Version** 4.1.22
Country: United Kingdom United Kingdom |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Talk Accommodation

Offline Aspergillus

  • SobiPro Gold Club Member
  • Sobi User
  • *
  • Posts: 99
  • Reviews:

    What is it?

Re: Sobi2 Banner Manager Component and Module
« Reply #7 on: 03. March 2009, 22:42:21 »
Dear John,

I got that same "Problem" on my site too...
The links work perfectly.. thats why i never noticed. But it's  a bug.. it shoudn not have two /
I'll have a look at it and will post the fix..

Greez Aspi

Edit: Found the problem allready
Replace line 58 of the helper.php of the s2banner mod with this code:
Code: [Select]
$url = "$site"."index.php?option=com_s2banner&task=click&sobiid=$row->itemid";
The $Site Variable contains the / allready.. !!
« Last Edit: 03. March 2009, 22:48:42 by Aspergillus »
Country: Switzerland Switzerland |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Aspergillus

  • SobiPro Gold Club Member
  • Sobi User
  • *
  • Posts: 99
  • Reviews:

    What is it?

Re: Sobi2 Banner Manager Component and Module
« Reply #8 on: 03. March 2009, 22:52:38 »
Dear M8's

Here the DoubleSlash fixed Version.
All together.

Greez Aspi
Country: Switzerland Switzerland |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline john birch

Re: Sobi2 Banner Manager Component and Module
« Reply #9 on: 04. March 2009, 08:35:37 »
Thank you for having a look.


I have this problem now, the link works but it links to http://talkaccommodation.com/ , and not the listing.

would this be a SEF problem ?

http://talkaccommodation.com/index.php?option=com_s2banner&task=click&sobiid=20

this then links to http://talkaccommodation.com/


cheers John
« Last Edit: 04. March 2009, 08:41:12 by john birch »
Joomla version 1.5.14
SOBI2 version** RC 2.9.2.2 
PHP version** 5.2.6
MySQL Version** 4.1.22
Country: United Kingdom United Kingdom |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Talk Accommodation

Tags: