- Posts: 2
- Thank you received: 0
Combining 2 Script into one.
2 years 1 month 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: 93
- Thank you received: 13
2 years 1 month ago - 2 years 1 month 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: 2 years 1 month ago by administrator.
Please Log in or Create an account to join the conversation.
2 years 1 month 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
-
Shortcut extension for JoomlaExtension to create shortcuts for Joomla administrator.
-
Embed an IFrame into JoomlaEmbed iFrame will help you insert iframes/Youtube/Twitter into articles or modules more easily.
-
Joomla Question & Answers ModuleThe module is intuitively designed, helping you compile "Frequently Asked Questions" (FAQs) as easily as possible.
-
How do you put a module inside an article?List of ways to insert a module into an article.
-
Joomla Slideshow ExtensionProfessional and easy-to-use slideshow plugin for Joomla
When run, after just a second or two *K2 to Content Migration* shows:
It is estimated that **82** articles and **8** categories will be imported into Joomla Content.
I set *Process K2 Intro Image* to *Both*
Upon **Import Now**, I see: success: 25, failure: 0
--- LOG FILE ---
There is no further indications on the K2 to Content Migration Administration page even if I let it 'run' for 30 minutes.
Number of K2 Items: 82, Number of K2 categories: 9
Number of original articles: 15, Number of original categories: 1
Number of articles after attempted migration: 65, Number of categories after attempted migration: 17
I ran the extension twice. Apparently the converted articles and categories were duplicated. The log file only has this content: --- LOG FILE ---
There was no success message or any indication that the process was finished. It dies silently. Can this extension be repaired?
^ Integrate File Attachments to migrate K2 Attachments.
# Fixed Field issues
# Fixed Tag issues