Hi Vicente,
I’m interested in update plugin and mysql functions. Do you have a github profile where I could clone to my repo?
]]>You still provide support for this plugin? Please say bluntly!
]]>Searching for a class or theme always displays all existing quotes. Same for an author. Can you fix this, please?
]]>I get a message from my hosting (Hostgator): ?A temporary block has been placed on database access by your user account xxxx on gator4158. The database associated with /home3/xxxx was consuming excessive server resources and degrading overall system performance….”
After several days of correspondence, they explained clearly:
?Regrettably we are still not detecting any changes as being made to the site; we will need to see this happen before restrictions can be lifted:
I urge you to look into queries that use order by RAND(), as captured in our initial logs:
COMMAND: Query
INFO: select frase, autor from wp_vr_fr_frases ORDER BY rand()
Order by RAND() is highly inefficient and uses an inordinate amount of resources compared towards other methods of selecting random database rows. You can see more regarding this in the following article:
Benchmark of order by rand() versus other efficient methods: https://www.warpconduit.net/2011/03/23/selecting-a-random-record-using-mysql-benchmark-results/”
So, I disabled VR-Frases (collect & share quotes)’ widget which uses ORDER BY RAND(). I don’t understand how a small widget can affect a large server database, but I admit I don’t have much knowledge about that. I want to continue using the widget in my blog. What can be done?
Welcome back! After this new release (upgrade) maybe you take a look to warnings that appear for a long time in Manage Quotes admin screen:
Warning: Illegal string offset ‘aut’ in /home3/danca/public_html/wp-content/plugins/vr-frases/includes/vr-frases-functions.php on line 35
and
Warning: Illegal string offset ‘autor’ in /home3/danca/public_html/wp-content/plugins/vr-frases/includes/vr-frases-functions.php on line 39
Thanks.
Hi,
My name is Amit and I am in charge of compatibility between WPML and other plugins and themes. I’m writing to you about helping to resolve an issue between WPML and VR-Frases.
Steps to reproduce:
Go to your Admin > VR-Frases, there is no way to translate them.
Expected results:
Being able to translate VR-Frases quotes.
(reported in https://wpml.org/es/forums/topic/traducir-frases-de-un-plugin/)
We’d like to ask your help in resolving that issue, we want our shared clients to have a fast solution and reduce future support requests.
Please let me know if you can collaborate with us in resolving this issue,
Thanks!
]]>I liked this plugin (VR-Frases – collect & share quotes) that I think is the only of its kind. But:
In Manage Quotes, VIEWING PAGE and SELECT ON OPTION are not functional (are not working at all). Maybe it can be fixed (?)
However, I wish to be customized to other languages ??besides English, as can be understood by anyone, from any country. Maybe it would be good for an update. Thanks and look for an update soon …
The plugin sounds like it will do exactly what i want the problem is I am getting an illegal string error on lines 33 and 37 in the /includes/vr-frases-functions.php here is the code :
// Define msg and type of view for display results
function vr_frases_define_titles() {
if( $_GET['aut'] ) {
$lista = "frases"; // display results for single author
$msg = __( 'You are viewing all Quotes from: ', 'vr-frases' ).'<span class="search-item">'.$_GET['aut'].'</span>';
$title = __( 'Quotes', 'vr-frases' );
} elseif ( $_GET['autor'] && !$_GET['frase'] && !$_GET['categoria'] ) {
$lista = "autores"; // display results for multiple authors without quotes
$msg = __( 'You are viewing all the Authors with a name similar to: ', 'vr-frases' ).'<span class="search-item">'.$_GET['autor'].'</span>';
$groupby = " GROUP BY autor";
$title = __( 'Authors', 'vr-frases' );
} elseif ($_GET) {
$msg = __( 'You are viewing Search Results for the next criteria.<br />', 'vr-frases' )
.__( '[Quote: ', 'vr-frases' ).'<span class="search-item">'.$_GET['frase'].'</span>'
.__( '] | [Author: ', 'vr-frases' ).'<span class="search-item">'.$_GET['autor'].'</span>'
.__( '] | [Category: ', 'vr-frases' ).'<span class="search-item">'.$_GET['categoria'].'</span>]';
$title = __( 'Search results', 'vr-frases' );
} else {
$msg = __( 'You are viewing ALL quotes.', 'vr-frases' ); // display all results (default display)
$title = __( 'ALL quotes', 'vr-frases' );
}
$msglist = array( 'lista' => $lista, 'titulo' => $title, 'msg' => $msg, 'groupby' => $groupby);
return $msglist;
}
Any ideas you might have would be greatly appreciated.
Thanks much,
Michele
]]>Buenas tardes. He seguido las instrucciones que indica para instalar su plugin, pero al activarlo me da el siguiente error:
El plugin no ha podido activarse porque ha provocado un error fatal.
Fatal error: Cannot re-assign auto-global variable _GET in /home/proyecto/public_html/wp-content/plugins/vr-frases/includes/vr-frases-functions.php on line 32
?Qué puedo hacer para solucionarlo?
Gracias
I get this error:
Fatal error: Cannot re-assign auto-global variable _GET in wp-content/plugins/vr-frases/includes/vr-frases-functions.php on line 32
This is actually not a wordpress version problem per se. It seems to be related to PHP, the plugin should not be passing $_GET in as a param into a param named $_GET.
If you modify the following file, it solves this error:
diff vr-frases/includes/vr-frases-functions.php.orig vr-frases/includes/vr-frases-functions.php
32,33c32,33
< function vr_frases_define_titles($_GET) {
< if( $_GET['aut'] ) {
---
> function vr_frases_define_titles($GET) {
> if( isset($GET['aut']) ) {
35c35
< $msg = __( 'You are viewing all Quotes from: ', 'vr-frases' ).'<span class="search-item">'.$_GET['aut'].'</span>';
---
> $msg = __( 'You are viewing all Quotes from: ', 'vr-frases' ).'<span class="search-item">'.$GET['aut'].'</span>';
37c37
< } elseif ( $_GET['autor'] && !$_GET['frase'] && !$_GET['categoria'] ) {
---
> } elseif ( isset($GET['autor']) && !isset($GET['frase']) && !isset($GET['categoria']) ) {
39c39
< $msg = __( 'You are viewing all the Authors with a name similar to: ', 'vr-frases' ).'<span class="search-item">'.$_GET['autor'].'</span>';
---
> $msg = __( 'You are viewing all the Authors with a name similar to: ', 'vr-frases' ).'<span class="search-item">'.$GET['autor'].'</span>';
42c42
< } elseif ($_GET) {
---
> } elseif ($GET) {
44,46c44,46
< .__( '[Quote: ', 'vr-frases' ).'<span class="search-item">'.$_GET['frase'].'</span>'
< .__( '] | [Author: ', 'vr-frases' ).'<span class="search-item">'.$_GET['autor'].'</span>'
< .__( '] | [Category: ', 'vr-frases' ).'<span class="search-item">'.$_GET['categoria'].']</span>';
---
> .__( '[Quote: ', 'vr-frases' ).'<span class="search-item">'.$GET['frase'].'</span>'
> .__( '] | [Author: ', 'vr-frases' ).'<span class="search-item">'.$GET['autor'].'</span>'
> .__( '] | [Category: ', 'vr-frases' ).'<span class="search-item">'.$GET['categoria'].']</span>';
]]>
Hi!
How can I align to center the quotes if I use them in the footer?
Also, I first put the widget in the sidebar but is not playing nice when reading the blog in the iPad. Maybe this is not possible, so if I can center it in the footer or down the menubar, I’m fine.
]]>I’ve placed a widget in my side-bar. The link has been automatically set to the incorrect URL. The URL should be https://artuccino.com/index.php/quotes/?aut=The%20Buddha unfortunately it’s
https://artuccino.com/artuccino/quotes/?aut=The%20Buddha
How do I fix this?
]]>