PHP Newb. Please Halp!

PHP Newb. Please Halp!

Hello!

I downloaded Meta Mod and have been messing around with it, but I am a php newbie and this is all really confusing...

What I am trying to accomplish is this:

Jreviews has a "featured listings" module, which doesn't have a lot of advanced options on where you want it to not appear. I have included it on the site sections I want, but the module also appears on the listings themselves. I dont want a "featured listings" module to appear on a "featured listing" page.

I turned on the advanced debugging, but I dont see anything that relates to a listing being tagged as "featured". I did succesfully figure out how to remove it from all listings though...and I don't want to have to update the module every time I remove or add a featured listing...that has the possibility of getting really out of hand.

Does anyone have any advice that they can explain in very simple terms?

I am using a rockettheme template - crystalized, and the module position is a template specific position "maintop-a".

Re: PHP Newb. Please Halp!

Hi Rebecca,

I've just had a look through the jReviews demo site (frontend and backend) to try to find out the answers to your question. So far, I can see that there isn't an indicator in the URL that will show if the listing is tagged as "featured", so this is likely to require a trip to the database to get that information.

Unfortunately jReviews is not free so I can't give you a quick answer. I've written to the authors of jReviews to see if they would be willing to help out, so hopefully I'll have an answer soon.

With regard to what you are asking: I think you're saying that you want the featured listing module to disappear on (and only on) individual item pages, where that item is "featured". Is that correct?

I'll let you know as soon as I have something.
Cheers,
Stephen

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

Re: PHP Newb. Please Halp!

Thank you so much, that is a HUGE help! I don't know where I would begin to find that in the database, but if I can get someone to point me in the right direction, perhaps I can give you more information.

Re: PHP Newb. Please Halp!

Hi, thank you so much for taking the time to look through all that! And Ill be sure to thank Alejandro as well. Unfortunately, it still doesn't work. Here are the steps I have taken: (This is just a test site I am working on until I figure everything out)

The featured listings module ID is 89 and I disabled this from the back-end. I created a test module for metamod, and I "auto enable included modules by module id" and chose ID 89 to include and pasted the following code in the php box:

Re: PHP Newb. Please Halp!

Thanks for switching that on. Now I see that module id 89 is being included (attempted, at least) twice for Susan's Cafe. This makes me think that you probably have "89" in the Quick Module ID Include box, so it's including it once from there, and once from the rule if it succeeds.

So apart from that, it should be working, shouldn't it?

Why are there no featured listings in the Susan's Cafe module? Is it looking for featured items in a certain category, and you're not in the right category, or something like that?

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

Re: PHP Newb. Please Halp!

Ok, that's looks better. The module is only being included for the item that is not featured. The fact that the "featured" module is empty seems to be a different issue and I'll let you solve that one!

Thanks for turning on the debug mode - that served its purpose and you can turn it off now if you want.

Cheers,
Stephen

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

Re: PHP Newb. Please Halp!

You are correct, that module is set auto detect categories. The reason there are no results to display within the module is because there are currently no "featured" listings in that category.

Yes I did have 89 in the Quick Module ID include box, I removed this and it appears to be working correctly. The only side effect I can see is that the module does not show up anywhere else except on listing pages that are not "featured". But this is something I can work around.