- Posts: 2
- Thank you received: 0
Combining 2 Script into one.
4 years 3 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
4 years 3 months ago - 4 years 3 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: 4 years 3 months ago by administrator.
Please Log in or Create an account to join the conversation.
4 years 3 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
-
Login with OTPNo need to remember passwords, usernames, or anything else. Just remember your email address and you can log in to the site.
-
Top free Joomla 5 template to build news sitesYou are planning to build a news website, these are the templates you should not miss.
-
Content AuthorContent Author is an add-on extension for Joomla Content. By installing it, you can categorize articles by author. Make it easy for users to access the content they are interested in.
-
Password for SP Page BuilderSometimes you want to restrict viewing to certain articles, setting a password is a great solution.
-
YouTube Video ChaptersVideo chapters divide YouTube videos into clear sections, making it easy to revisit any part instantly.
I ve bought the pro version, i have 5700 k2 items, and only approximately 4000 migrate successfully. When i try to rerun the migration to see if it migrates the remaining 1700, it re-migrates the already migrated, creating dublicates with differnt seo url.
I have been googling how to change the menu colours, as the black text on my purple background is not very readable. However everything I have tried to change the text colour of the Off-Canvas main menu text to white did not work.
Would you know what custom CSS I would need to change all menu items to white text (including submenus).
Probably need background colour to not be white when hovering over submenus
Any help you can provide would be gratefully appreciated (or a pointer to some useful help).
Thank you
see
https://siteupdate.vedicmaths.org/index.php