• Home
  • Get help
  • Ask a question
Last post 12 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67854
All time tickets 10487
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#39 – About sample sef plugin

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 10 April 2015 16:12 UTC
catalinads
 I try to have a custom plugin for community builder
i have modiffied the sample and the plugin is installing in :
plugins\sh404sefextplugins\sh404sefextplugincom_comprofiler\comprofiler

but is not overriding the default plugin. even i delete cb standard plugin.
I have to install it in other folder to replace the standard one?

for the language file i have to install it in the admin folder of sh404ef over the standard cb language file ?
i know that support is not for this but if you have time... just a quick answer
Friday, 10 April 2015 17:53 UTC
wb_weeblr
Hi

When you say "the plugin is installing in ...plugins\sh404sefextplugins\sh404sefextplugincom_comprofiler\comprofiler"

1 - I assume you mean: "...sh404sefextplugin\com_comprofiler\comprofiler"
2 - In "plugins\sh404sefextplugins\sh404sefextplugin", you should have the main "com_profiler.php" file for the plugin
3 - After putting the files there, have you Joomla "Discover" to install it? or installed it another way? Can you see the plugin in Joomla Plugins manager?

Rgds
 
Friday, 10 April 2015 19:03 UTC
catalinads
in joomla directory :
plugins\sh404sefextplugins\sh404sefextplugincom_comprofiler\comprofiler
but i will change
to
plugins\sh404sefextplugins\com_comprofiler\comprofiler.

I used first option pecause i have some plugin there like:
plugins\sh404sefextplugins\sh404sefextplugincom_adsmanager\adsmanager\com_adsmanager.php
and is working

Joomla is installing the plugin i can see it. i can publish or unpublish it.
I will try in other folders.
My curiosity was if sh404ef wil pass the default cb plugin from :
components\com_sh404sef\sef_ext

Monday, 13 April 2015 08:48 UTC
wb_weeblr
yes, the plugins in /plugins/sh404sefextplugins have priority over those in /components/com_sh404SEF/sef_ext.
That's exactly what they are for: to allow user to override built in plugins.

 
Monday, 13 April 2015 09:03 UTC
catalinads
ok. my plugin is installed with joomla but no overrides.
lets try in this way
i manually created the folders like this
plugins\sh404sefextplugins\com_comprofiler\comprofiler
here i put the com_comprofiler.php

should work ? should override the default com_comprofiler.php ? in my case doesnt work

i will wait until will be some documentation on the site. maybe i do something wrong
Monday, 13 April 2015 10:34 UTC
wb_weeblr
No, that way it should not work.

Have you looked at the default plugins that comes with sh404SEF?
In /plugins/sh404sefextplugins, you have the following structure by default: https://weeblr.com/images/screenshots/jchOGYyde8AuRbElbnJ4P8aE3c3u2j.png

If you start with the provided com_sample, and change all the names and path it should work.
Of course, you need to use Joomla! Discover function to let Joomla know about your plugin.

Does your plugin appear in the list of Joomla! plugins, in the backend?
Have you published the plugin?
Also, have you purged urls, so that new ones created?

Rgds
 
Monday, 13 April 2015 11:39 UTC
catalinads
i have this files:
sh404sefextplugincom_comprofiler.php

with the path :
$this->_sefPluginPath = JPATH_ROOT . '/plugins/sh404sefextplugins/sh404sefextplugincom_comprofiler/comprofiler/com_comprofiler.php';

sh404sefextplugincom_comprofiler.xml

<filename plugin="sh404sefextplugincom_comprofiler">sh404sefextplugincom_comprofiler.php</filename>
<folder plugin="sh404sefextplugincom_comprofiler">comprofiler</folder>

and the folder
comprofiler
here i have the file:
com_comprofiler.php
whick is the default with a a small modification.

With all of this the plugin is installed in joomla and is activated.
Cache clared, urls purged.

If you want i can send the plugin
Monday, 13 April 2015 12:28 UTC
wb_weeblr
Have you updated the name?
 protected $_extName = 'default';


If you want i can send the plugin
Nope, sorry, I won't have time to test a custom plugin, I'm already just keeping up with the flow of regular tickets!

I'd suggest you look inside /components/com_sh404sef/sef_ext.php. At lines 208, you'll see the following:
// use custom method to find about correct plugin to use
    // can be overwritten by a user plugin
    $extPlugin = & Sh404sefFactory::getExtensionPlugin( $option);

    // which plugin file are we supposed to use?
    $extPluginPath = $extPlugin->getSefPluginPath( $vars);
    $pluginType = $extPlugin->getPluginType();

If you debug here, you'll se whether the plugin path found is correct or not.

I'm pretty sure that mechanism works fine, I have 5 custom plugins running on this very site!

Rgds


 
Monday, 13 April 2015 14:02 UTC
catalinads
Works! Thanks!
My fault .. was missing a letter
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.