Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



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


MetamodPro on DJ-Classifieds

MetamodPro on DJ-Classifieds

Testing DJ-Classifieds 3.3.2 in localhost on Joomla 3.3. MetamodPro v3.18.
Wonder how to set up MetamodPro to do the following:
1. filtering out some search result so they are not displayed.
2. when the homepage is firstly loaded, check the city & country of visitor through geo-ip. then insert the result onto the specific field of a search form. It should then be disabled for the rest of the session.
3. Allow only a handful of ip address or domain name to navigate the site. The rest will be shown a "Coming Soon" page.

Beginner Modder
2 Posts
Administrator has disabled public posting

Re: MetamodPro on DJ-Classifieds

Hi Kwok,

1 - MetaMod can't filter out results from other modules. That would require some custom PHP coding of the module in question.
2 - This could be achieved by using some PHP code which would load JS code onto the page containing the GeoIP variable values. You would then need to craft your JS to interact with your forms in the appropriate way. e.g. you could do this in MetaMod or Chameleon:

$js = "var geoip_postcode = '" . $geoip->postcode . "';";
$js .= "var geoip_city = '" . $geoip->city . "';";
$js .= "var geoip_country_name = '" . $geoip->country_name . "';";
$js .= "var geoip_postal_code = '" . $geoip->postal_code . "';";
$js .= "// add all your other JS code here that makes use of the geoip variables above and handles the interface for adding these to the form elements, with timeouts etc";

$document = JFactory::getDocument();
if ( method_exists($document, "addCustomTag") ) {
$document->addCustomTag( $js );

3 - you can set things up in MetaMod so that it will do a redirect to another page for all IP addresses except some specified ones, like this:

$app = JFactory::getApplication();
if ( $core_genius->check("clientip not startswith 192.168.") )

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

3330 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Posts this week:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:

There are no members online

Forum Legend:

 New Sticky