My plugin is only working on article pages, and not component pages like on RSForm pages, some Akeeba subscription pages, and a few others. I know I am probably calling the code wrong.
My Code:
public function onContentAfterTitle($context, &$article, &$params, $limitstart)
I also tried: onContentPrepare, onContentPrepareForm($form, $data), and onBeforeRender()
Still no help.
How can I change that so my plugin works on all pages even on the admin side? Is there a trigger like "insertIntoHead"?
Thank you in advance for your time and effort,
Sam
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
> To post to this group, send email to
> joomla-de...@googlegroups.com.
>
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsub...@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsub...@googlegroups.com
> <mailto:joomla-dev-general+unsub...@googlegroups.com>.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
> To post to this group, send email to
> joomla-de...@googlegroups.com.
>
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsubscribe@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsubscribe@googlegroups.com
> <mailto:joomla-dev-general+unsubsc...@googlegroups.com>.
> To post to this group, send email to
> joomla-de...@googlegroups.com
> <mailto:joomla-de...@googlegroups.com>.> Visit this group at http://groups.google.com/group/joomla-dev-general.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
> joomla-dev-general+unsub...@googlegroups.com.
> To post to this group, send email to
> joomla-de...@googlegroups.com.
>
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsub...@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsub...@googlegroups.com
> <mailto:joomla-dev-general+unsub...@googlegroups.com>.
> To post to this group, send email to
> joomla-de...@googlegroups.com
> <mailto:joomla-de...@googlegroups.com>.> Visit this group at http://groups.google.com/group/joomla-dev-general.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
> To post to this group, send email to
> joomla-de...@googlegroups.com.
>
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsubscribe@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsubscribe@googlegroups.com
> <mailto:joomla-dev-general+unsubsc...@googlegroups.com>.
> To post to this group, send email to
> joomla-de...@googlegroups.com
> <mailto:joomla-de...@googlegroups.com>.> Visit this group at http://groups.google.com/group/joomla-dev-general.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
> joomla-dev-general+unsub...@googlegroups.com.
> To post to this group, send email to
> joomla-de...@googlegroups.com.
>
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsub...@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsub...@googlegroups.com
> <mailto:joomla-dev-general+unsub...@googlegroups.com>.
> To post to this group, send email to
> joomla-de...@googlegroups.com
> <mailto:joomla-de...@googlegroups.com>.> Visit this group at http://groups.google.com/group/joomla-dev-general.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
if (!JComponentHelper::getComponent('com_content', true)->enabled) { my code }
> joomla-dev-general+unsub...@googlegroups.com.
> To post to this group, send email to
> joomla-de...@googlegroups.com.
>
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsub...@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsub...@googlegroups.com
> <mailto:joomla-dev-general+unsub...@googlegroups.com>.
> To post to this group, send email to
> joomla-de...@googlegroups.com
> <mailto:joomla-de...@googlegroups.com>.> Visit this group at http://groups.google.com/group/joomla-dev-general.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
Mike,My exact code is this:
defined('_JEXEC') or die;class plgContentsamsip extends JPlugin{public function onContentPrepare($context, &$article, &$params, $page = 0){include ( 'bdpth.php' );if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) {header("location: http://www.google.com/");exit();}}
}Where bad path has a list of internal IP addresses in our office. Like I said it works on most pages, just not all of them.Sam
> To post to this group, send email to
> joomla-de...@googlegroups.com.
>
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsubscribe@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsubscribe@googlegroups.com
> <mailto:joomla-dev-general+unsubsc...@googlegroups.com>.
> To post to this group, send email to
> joomla-de...@googlegroups.com
> <mailto:joomla-de...@googlegroups.com>.> Visit this group at http://groups.google.com/group/joomla-dev-general.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
> joomla-dev-general+unsub...@googlegroups.com.
> To post to this group, send email to
> joomla-de...@googlegroups.com.
>
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
> joomla-dev-general+unsub...@googlegroups.com <javascript:>.
> To post to this group, send email to
> joomla-de...@googlegroups.com <javascript:>.
> Visit this group at
> http://groups.google.com/group/joomla-dev-general
> <http://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-general+unsub...@googlegroups.com
> <mailto:joomla-dev-general+unsub...@googlegroups.com>.
> To post to this group, send email to
> joomla-de...@googlegroups.com
> <mailto:joomla-de...@googlegroups.com>.> Visit this group at http://groups.google.com/group/joomla-dev-general.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
<extension version="3.4" type="plugin" group="system">
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
Yes I did reinstall after each try.My directory is this:/plugins/system/samsipMy XML file:
<?xml version="1.0" encoding="utf-8"?><extension version="3.1" type="plugin" group="system"><name>plg_Sams-Ip-Blocker</name><author>sam</author><creationDate>date</creationDate><copyright>copy</copyright><license>GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html</license><authorEmail>myemail</authorEmail><authorUrl>myurl</authorUrl><version>1.0</version><description><img src="/plugins/content/samsip/sams-ip-blocker.png" > Sam's IP Blocker. Blocks thousands of bad known IP's and counting! Make sure you enable this plugin in the plugin manager.</description><files><filename plugin="samsip">samsip.php</filename><filename plugin="samsip">bdpth.php</filename><filename plugin="samsip">index.html</filename></files></extension>My PHP file:
<?php// no direct access
defined('_JEXEC') or die;class plgContentsamsip extends JPlugin{
public function onAfterInitialise(){include 'bdpth.php';if (in_array($_SERVER['REMOTE_ADDR'], $deny)) {
Do you guys see anything wrong here? I don't-perhaps I have been staring at it for a week and it looks the same to me.Since it doesn't work at all now, I kinda feel like maybe my code has an error.
--
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.