Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » MetamodPro on DJ-Classifieds
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.
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.") )
$app->redirect("http://www.example.com/errorpage");
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » MetamodPro on DJ-Classifieds
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 150
- 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