Author Topic: Individual advertisements on category pages  (Read 5072 times)

0 Members and 1 Guest are viewing this topic.

Offline arjun

Individual advertisements on category pages
« on: 08. March 2007, 09:25:49 »
I would be a good feature to have specific advertisements to show up in the main banner for specific categories in SOBI2
 Any suggestions on how to link the joomla default banner component and SOBI 2 to achieve this functionality.

I would assign a banner module to a a specific SOBI2 page selecting from the list of "menus" on the right side{Administrator>>Modules>>Banner}.
Country: India India |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile


Offline Trinity

  • Sobi Team
  • Development
  • Sobi Hero
  • *
  • Posts: 8953
  • Reviews:

    What is it?

    • Sobi Team Member
Re: Individual advertisements on category pages
« Reply #1 on: 13. March 2007, 23:14:43 »
You can add your advertisement in the category description of a category.
Support SobiPro - Submit a review on JED
If you want ongoing development for SobiPro and new applications being developed we need your review for SobiPro in the Joomla Extensions Directory.
Thank you very much :w00t:
Country: Germany Germany |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Sigsiu.NET

Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.

Offline arjun

Re: Individual advertisements on category pages
« Reply #2 on: 15. March 2007, 19:31:54 »
Can that be html and can it include an image or swf
Country: India India |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Katy

Re: Individual advertisements on category pages
« Reply #3 on: 15. July 2009, 14:16:08 »
Hello!

I am also interesting in this feature. I have included my banner, but I would like to show it after my subcategories listing in this main categorie.
Now, I use standard_advance2 template. 

I am looking forward to hearing from you soon.

Sincerely

« Last Edit: 30. July 2009, 09:22:54 by Katy »
Country: Germany Germany |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Greg Hunt

  • Quality & Testing
  • Sobi Hero
  • *
  • Posts: 1069
  • Reviews:

    What is it?

Re: Individual advertisements on category pages
« Reply #4 on: 15. July 2009, 17:12:37 »
With the new version of Sobi it is integrated with the Joomla Menu system so you can generate ItemID's on all categories.  The process is a touch labour intensive but you can use any off the shelf bannermanager (even the built in groups to one) that can assign banner groups to menu id's.

Process is:
Go into menu manager and create a new menu (you don't need to display this menu but it needs to be setup).
Now in this new menu create a Sobi entry for every category you want to add banners to.
Now you can assign the banner groups to the menu item you need according to ItemID.  These carry through all of Sobi (category listings in component, sobi tree menu module etc.) which is why you don't need to actually use the menu you created.  These itemID's stick so if you set them at one level of the category tree they will continue to be displayed on sub categories (unless assigned in a menu) and detail views of the entries.

Only place it isn't assigned in detail views for the corresponding category is from a search but you could assign a banner group to a search menu link.

Hope that helps.
Greg
Country: Canada Canada |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Katy

Re: Individual advertisements on category pages
« Reply #5 on: 16. July 2009, 10:42:12 »
Dear Greg!

Thank you very much for your answer, but it was not really that what I need.
I would like to show my banner not over my subcategory listing but under the listing of subcategories, if I open a category.

Sincerely
Country: Germany Germany |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Greg Hunt

  • Quality & Testing
  • Sobi Hero
  • *
  • Posts: 1069
  • Reviews:

    What is it?

Re: Individual advertisements on category pages
« Reply #6 on: 16. July 2009, 14:58:59 »
Hi Again:

Actually the solution you are looking for would still be along those lines.  You would just need to add a module position to Sobi between the Sub Category listing and the Entries themselves.  It would be a very minor Hack (around 1 line in 2 files).  Only question is where exactly do you want the position created as that space is occupied by the linkages for the featured listing plugin.

So do you want it located above or below where featured listings would be?

Greg
« Last Edit: 16. July 2009, 15:01:08 by urbanlives »
Country: Canada Canada |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline aboututila

Re: Individual advertisements on category pages
« Reply #7 on: 16. July 2009, 16:35:52 »
I would be a good feature to have specific advertisements to show up in the main banner for specific categories in SOBI2

A new version of the module Simple Featured Entries allows you to display selected Sobi2 entries belonging to user-specified categories. It does not use the Joomla Banner component, but you could publish it in the Banner module position to achieve a similar effect.

The new version of module Simple Featured Entries is current released for testing. It is for Joomla 1.5.x only. Feedback indicates it should be available as a stable release very soon. No unresolved problems have been reported with the test release v2.0.2

I hope this helps - Mark
Country: Honduras Honduras |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Greg Hunt

  • Quality & Testing
  • Sobi Hero
  • *
  • Posts: 1069
  • Reviews:

    What is it?

Re: Individual advertisements on category pages
« Reply #8 on: 16. July 2009, 21:21:56 »
Ok I added another function to Sobi to allow embedding modules in the code.  Posted it here http://www.sigsiu.net/forum/index.php/topic,18098.0.html.

If you want to add a module position after the Category listing you would need to modify the following line to
/components/com_sobi2/frontend.class.php

Line 1243:
      return $this->catList;

Change to
      return $this->catList.sobi2InsertMod("sobicat1");

Replace sobicat1 with whatever module position you define.

This would work well with Simple Featured Entries as well since it allows you to embed the module.

Greg

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

Offline Robert_Vining

  • SOBI Team
  • Moderator
  • Sobi Hero
  • *
  • Posts: 1406
  • SobiPro is a free download!
  • Reviews:

    What is it?

    • Sobi Team Member
Re: Individual advertisements on category pages
« Reply #9 on: 17. July 2009, 21:32:36 »
I'm not sure I understand why you would need to hack the core code in the first place.

Anyone can add a module position to a standard joomla template and set the module to only show in the specific categories using the menuID and the module manager as described above. You would simply add a module position below the com_content Then there is no core code to be hacked and both joomla and sobi2 can be updated as new releases are published without hacking the code all the time.

Simply find this line of code in your joomla template:

<jdoc:include type="component" />

And add this line of code below it:

<jdoc:include type="modules" name="sobi2_banner" style="xhtml" />

And this line of code to your templatesDetails.xml file along with the other positions in that file:

<position>sobi2_banner</position>

And go to your module manager and set the banner module to that postion, and select the proper sobi2 category where you want he banner to show up. Rinse and repeat as necessary for what banners you want to show where if you need specific ones in each category.
Robert Vining
SobiPro Documentation and Support Team
NOW OPEN!>> | www.sobitemplates.com | Professional Sobi2 and SobiPro Templates
www.robertswebdesign.com - Joomla, Sobi2 and SobiPro Specialist
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Sobi Templates

Tags: