Support Forums


Go Back   68 Classifieds Forums > Help & Support > Modules / Plugins / Modifications

Notices

 
LinkBack Thread Tools Display Modes
Old 09-11-2008, 12:38 PM   #1
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 120
Rep Power: 17
frommarcq is on a distinguished road
Default exclude from 'toplistings' ad of some categories

Hi,
I know that my questions are boring and give some headaches to the team.
Here's my last one (for today !)
I have some general ads, with categories dedicated to adults (dating).
The problem : in searches, and in toplistings (new/top) this kind of ads are displayed, and I don't want to hurt some sensibilities (and protect the children)...
I've created a disclaimer for these categories, but how is it possible to hide some categories in searchs/toplistings ?
(I 've got some aspirin if you want !)
Regards
Pascal
__________________
68classifieds (V4.0.9Developer)

occasion nord - immobilier Lille - maison lens - meteo Lille - restaurants Lievin
frommarcq is offline   Reply With Quote
Old 09-11-2008, 12:53 PM   #2
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 46
Maffo is just really niceMaffo is just really nice
Default

You would need to delve into the program and edit the category setup.

I would build an array, either store it in the database or in a hardcoded file of the categories I didnt want displaying.

This is not the code to use, just a basic schema.

PHP Code:
$adult_cats=array(1,6,8,14,25); // These are category ids of adult categories

// Then where your database calls are being made, try adding in this to your WHERE statements.

//EG

WHERE display 'Y' AND 'expiration' NOW();

// turn into 

WHERE display 'Y' AND 'expiration' NOW() AND section NOT IN($adult_cats); 
Hope that helps
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 11-29-2008, 11:49 AM   #3
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 120
Rep Power: 17
frommarcq is on a distinguished road
Default

Maffo, thanks for this suggestion.
It would be a good alternative. But if i do not want this kind of ads displayed in 'toplistings.php', they must be searchable...
If I make some changes in Listings.php, i'm afraid the dating ads won't be displayed in the both situations...
Regards,
Pascal
__________________
68classifieds (V4.0.9Developer)

occasion nord - immobilier Lille - maison lens - meteo Lille - restaurants Lievin
frommarcq is offline   Reply With Quote

Bookmarks

Tags
adult, categories, exclude, hide, toplistings

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Only allowing sub categories to have listings bowers01 v4 Questions & Support 1 06-22-2008 08:19 AM
Are we able to charge certain categories and keep other categories free? Success v4 Questions & Support 5 04-02-2008 04:49 PM
Different template for categories? Mike-N-Tosh v3.1 Modules & Modifications 31 04-11-2007 07:29 AM
Prevent Browse Categories Table for hidden categories free2take v3.0 Questions & Support 3 05-12-2006 10:14 AM


All times are GMT -4. The time now is 02:41 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0