Posts by: fly06

Posts: 263
Post: 8019
Topic: Invoke Finder with a different BasePath

CustomFinder::ServerOptions() will not be callable from the connector backend, obviously, but how could I make this work?

Include your CustomFinder.php somewhere before your custom gpSettingsOverride() get called.

Furthermore if you want to call the ServerOptions() method statically you will have to use the self keyword instead of the $this keyword.

http://www.diffen.com/difference/self_(PHP)_vs_this_(PHP)

4 years ago
Post: 8006
Topic: Invoke Finder with a different BasePath

You have to pass the $opt variable by reference:

function gpSettingsOverride($setting,&$opt) {

// FUNCTION BODY

}

http://php.net/manual/en/language.references.pass.php

4 years ago
Post: 8002
Topic: Invoke Finder with a different BasePath

I cannot find a way to declare the function gpSettingsOverride() inside a plugin because there is no plugin hook called before the conditional declaration of the function in common.php in line 52.

This is correct.

A (dirty) solution would consist in adding/removing your gpSettingsOverride() function in the gpconfig.php file programmatically when you plugin is installed/uninstalled.

 

 

 

4 years ago
Post: 7998
Topic: Invoke Finder with a different BasePath

Hi Juergen,

GitHub is your friend:

https://github.com/oyejorge/gpEasy-CMS/search?utf8=%E2%9C%93&q=gpSettingsOverride

The finder will launch with default settings unless you override the gpSettingsOverride() function in your own plugin.

F.

4 years ago
Post: 7833
Topic: undefined method

Hello,

In the Special/UserPreferences.php file on line 11, replace:

parent::admin_preferences();

by;

parent::__construct();

and let me know if it works.

Thanks.

4 years ago
Post: 7722
Topic: Using with My guestbook Plus

I have finally installed both plugins on a test website.

Some extra configuration is required:

  • In the Global Config, set:
    • the 'Criteria - Use username' parameter to Yes
  • In the MyGuestbookPlus form, set:
    • the 'Published' parameter to Yes
    • the 'Hook' parameter to 'PageRunScript'

You should also be aware that using the username alone will probably generate some false positive.

That's the reason why I set the 'Use username' parameter to No as default.

4 years ago
Post: 7700
Topic: Using with My guestbook Plus

What do you see in the Hits and Spams columns?

Btw, have you tested your My Guestbook Plus form with a "spam-proven" username to see if it works?

http://www.stopforumspam.com/

 

 

4 years ago
Post: 7698
Topic: Using with My guestbook Plus

Hi Robin,

The setup for the form protection should be closed to that:

  • Page title: Lipo_laser_reviews
  • cmd: save
  • Use Email: No
  • Use Username: Yes
  • Username alias: name

Let me if it (doesn't) work.

F.

 

 

 

4 years ago
Post: 7693
Topic: Using with My guestbook Plus

Hello,

Could you please provide an url pointing to the My Guestbook Plus form you wish to protect against spammers?

That would help me to figure out how to setup the form protection within the AntiSpamSFS plugin.

Thanks.

4 years ago
Post: 7556
Topic: After uninstalling plugins text is no longer edita

Thank you! I just put it into my code snippets collection. This will come in handy.

;)

I must admit that the  /* WRITE YOUR OWN UNINSTALL CODE HERE */ part of the snippet is probably not very straightforward in your case.

Btw, when I suggested to use a fallback content-type for uninstalled plugins, I was thinking about adding this feature in the gpEasy core not in the plugins.

There is still something (easy) you can probably do to improve the user experience post-uninstallation.

Instead of adding the attributes class and style on the server side (StickyNote.php) which makes them persistent you could add them on the client side (StickyNote.js).

 

 

4 years ago

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register