- Posts: 2
- Thank you received: 0
Combining 2 Script into one.
3 years 9 months ago #29
by LuxLOL
Combining 2 Script into one. was created by LuxLOL
HI,
I have a hard time to combine this 2 script into one.
Dose someone know how I can get this to work?
I have a hard time to combine this 2 script into one.
Dose someone know how I can get this to work?
<?php
$app = JFactory::getApplication();
$option = $app->input->getString('option');
$view = $app->input->getString('view');
$id = $app->input->getString('id');
$Itemid = $app->input->getString('Itemid');
$start = $app->input->getString('limitstart');
if ($option == 'com_content' && $view == 'category' && $id == '11' && $Itemid == '105' && $start == '') {
if (preg_match('/(MSIE 6.0|MSIE 7.0|MSIE 8.0|MSIE 9.0)/i', $_SERVER['HTTP_USER_AGENT'])) {
echo '<style type="text/css">
#TagCloud {
display: block;
}
</style>';
} else {
echo '<style type="text/css">
#TagCloud {
display: none;
}
</style>';
}
return;
}
?>Please Log in or Create an account to join the conversation.
- administrator
- Offline
- Administrator
-
Less
More
- Posts: 98
- Thank you received: 13
3 years 9 months ago - 3 years 9 months ago #32
by administrator
JoomHelper - Free Joomla Extensions and Tutorials.
- Facebook: bit.ly/3Fmq9AN
- Youtube: bit.ly/33onadN
- Donate: bit.ly/3uu8yFs
Replied by administrator on topic Combining 2 Script into one.
Try it:
<?php
$app = JFactory::getApplication();
$option = $app->input->getString('option');
$view = $app->input->getString('view');
$id = $app->input->getString('id');
$Itemid = $app->input->getString('Itemid');
$start = $app->input->getString('limitstart');
return ($option == 'com_content' && $view == 'category' && $id == '11' && $Itemid == '105' && $start == '' && preg_match('/(MSIE 6.0|MSIE 7.0|MSIE 8.0|MSIE 9.0)/i', $_SERVER['HTTP_USER_AGENT']));
?>JoomHelper - Free Joomla Extensions and Tutorials.
- Facebook: bit.ly/3Fmq9AN
- Youtube: bit.ly/33onadN
- Donate: bit.ly/3uu8yFs
Last edit: 3 years 9 months ago by administrator.
Please Log in or Create an account to join the conversation.
3 years 9 months ago #33
by LuxLOL
Replied by LuxLOL on topic Combining 2 Script into one.
No luck.
I was also trying to execute the "HTTP_USER_AGENT" script part after the Link check was a match.
But i have the feeling that this will not work.
I was also trying to execute the "HTTP_USER_AGENT" script part after the Link check was a match.
But i have the feeling that this will not work.
Please Log in or Create an account to join the conversation.
Latest articles
-
Resend Activation CodeThe utility resends the activation code so the user doesn’t have to re-register with a different email.
-
Add custom Head Tag, CSS and Javascript to Joomla articleThe Joomla plugin to add custom head tag, CSS and JavaScript to your Joomla article.
-
How to Set Up Google Analytics on Joomla websiteAdd Google Analytics to track your website.
-
Delete Joomla articles in bulkWith this plugin, you can delete posts in bulk with just one click. It saves your time.
-
Insert article attributes into another articleUse this extension to insert article attributes like title, link, image...
I migrated about a thousand items with attachments from K2 using your tool and attachments plugin. I initially did this on a test account. Everything worked fine over there. The migrated article attachments worked fine. Then I backed it all up and moved it to my live domain. Now none of the attachments load. All I get is Exception File Not Found and I can't figure out where to look. Turning on error reporting and debug don't tell me anything. I am guessing the old files were not moved during the migration correct? Or how does that all work? I still have all the original folders in the original places as far as I can tell.
An error has occurred. 0 implode(): Argument #2 ($array) must be of type ?array, string given
Return to Control Panel
Any idea what's causing this?