Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Need help with a little script
Page:
1
Need help with a little script
Need help with a little script
HI,
I try to include a module before the "<h2>Title</h2>" and after the "<div id="ClassX">" but i can't get this to work. Anyone has an idea on how to do it?
Code:
if (!(JRequest::getVar('option') == 'com_content' && JRequest::getVar('view') == 'category' && JRequest::getVar('id') == '9' && JRequest::getVar('Itemid') == '101' && JRequest::getVar('limitstart') == '')) return;
if (preg_match('/(Google|Bing|Yahoo|MSN|Bot|Crawler)/i', $_SERVER['HTTP_USER_AGENT']))
{
echo '<div id="Class1">'."\n";
return 136;
}
else
{
echo '<div id="Class2">'."\n";
return 138;
}
?>
<h2>Title</h2>
<p>Some Text</p>
</div>
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod
- » MetaMod General Support
- » Need help with a little script
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 1
- User Info:
- Total Users:
- 7669
- Newest User:
- norton4568
- Members Online:
- 1
- Guests Online:
- 154
- Online:
- norton4568
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked