Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

metamod for djclassified

metamod for djclassified

Hi, I am using djclassified..
http://demo.dj-extensions.com/dj-classifieds/
how can I use metamod with it? is it possible? sad

Edited By: tomathost
25-Sep-13 08:01:39

tomathost
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: metamod for djclassified

What sort of things do you want to target with MetaMod? DIfferent page types? Or something more complicated like categories or ownership etc etc?

Generally, targetting different page types is relatively easy and can be done without adding explicit support for the component to MetaMod. The code that gets spat out by MetaMod's Advanced Debug Mode is very useful in this regard.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: metamod for djclassified

Hi Stephen.
Thank you for reply me...

Yes I am expecting for different page type.. as you can see in their demo link.
Most recent items, Promoted Ads, Random Ads, Most recent Ads (module)... show in every page (joomla default template). example: once i clicked on the detail page ads.. the modules are annoying (see empty space) sad

tomathost
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: metamod for djclassified

Ok, so what (type of) pages do you want to hide or show them on?

Basically you need to install MetaMod as well as DJ classifieds. Then create a MetaMod module and assign it to ALL pages, in a valid module position, and inside MetaMod turn on Advanced Debug mode.

Then visit some of the DJ Classified pages - both the ones you want the module to show on, and the ones that you don't. On each one, record the output from the MetaMod, and paste it into the forum here with a note about which page it was on, and whether that's a place where you want the module to appear or NOT.

If you can provide us that output and the notes on it, then we can suggest some PHP code for you that will do exactly what you want it to, showing on the right pages and hiding on the right pages.

It is IMPORTANT that you do this on more than one type of page, so we can see how some of the different DJ page URLs are constructed.

Looking forward to hearing from you,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: metamod for djclassified

MetaMod debug info:
Module ID: 105
$option: com_djclassifieds
$view: items
$id:
$Itemid: 107
$timezone: UTC
$language: en-us
$language_code: en
$language_region: us
Including modules: 101

Note: I assign the module for home only but it appears in every djclassified page

tomathost
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: metamod for djclassified

Please set it to Advanced Debug mode which will display some PHP code.

* Are you saying that you want it to appear ONLY on the home page and nowhere else?

* What type of page is your homepage? Is it a DJ page? (e.g. the one above?) Or a standard Joomla one? (if so, which?)

Thanks,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: metamod for djclassified

* Yes I need to show module only on home page not show in every detail page/category page
* home : dj page (DJ-Classifieds » Category table layout)

home:
if (
$option == 'com_djclassifieds'
and $view == 'items'
and $Itemid == '107'
and $jinput->get('cid') == '0' /*!*/
) return XXX; /* replace XXX with the module ID or position to display */

detail page:
if (
$option == 'com_djclassifieds'
and $view == 'item'
and $id == '11rumah-mutiara-platinum-eksklusif-akses-tol-di-jakarta'
and $Itemid == '107'
and $jinput->get('cid') == '19rumah' /*!*/
and $jinput->get('format') == 'html' /*!*/
) return XXX; /* replace XXX with the module ID or position to display */

please give me 10 minutes to upload from my localhost into sample site than i will pm you..

done: please check PM

Regards

tomathost
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: metamod for djclassified

Problem solved... thank you for direct me with debug mode on ...

Regards

tomathost
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: metamod for djclassified

So it's all fixed now? Well done. Advanced Debug mode in MetaMod rocks!

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: metamod for djclassified

metamodguy wrote:

So it's all fixed now? Well done. Advanced Debug mode in MetaMod rocks!

Cheers,
Stephen

Or does the MetaMod author rock?

:-)

This is perfect...as Stephen I bought your stuff 13 months ago, still have not even installed on a site...until minutes ago...lol.. And I also have DJ Classifieds that I bought again a month ago...and this post here? Well, hopefully finally "Get's me Rocking" also !!

Now, I already "HAD" DJ in, no ads yet.. Installed zip of MetaModPro, said "Plugin Successfully Installed"

Debug is located in Plugin area I am guessing and will go there now...

OK, it's installed...activated already and I am in Plugin ...but see no debug mode?

Jim

IamJim
Beginner Modder
ranks
useravatar
Offline
7 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4397
Newest User:
tull687318
Members Online:
0
Guests Online:
216

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked