pierreb
Forum Replies Created
-
Forum: Plugins
In reply to: [Sign In With Google] Wrong person get logged in!?A little update to my previous question.
I just found out that if you visit https://domain.com/?google_response&code, [email protected] is already entered in the login field even though I have never logged in as him!?
Might give you some clue on what’s going on.Thanks, Pierre
Hi Ales,
Thanks for the update!
Much appreciated and I think many will enjoy this change 👍//Pierre
Yes, I understand that seconds are standard usage.
Can’t you just convert all seconds into hours/days behind the scenes?
If expiration active: Find seconds – convert/show Hours/days instead.Another option would be for users to press a button, and do a one-time conversion from seconds to Hours/days?
Just some ideas.
/PierreForum: Plugins
In reply to: [PHP Compatibility Checker] Nothing Happens? – Like the other posts belowHm,
So how do I test a site running on a localhost?
Kind of moment 22 here, I need to test the site for php7.2 compatibility before it goes live and from what I read here, the site needs to be live in order for the plugin to work?Forum: Plugins
In reply to: [BuddyDrive] Under New ManagementGreat work @mrpritchett but I also giv +1 for the nested folders here as well.
I really think it’s a must have for when using this plugin in an intranet setup.
Let’s say a company wants to categorize their downloads like this:– Marketing
— Brand identity
— Sales brochures
– Internal
— Employers Guidelines
— Sales
— OfficesRight now this would result in a mess with mixed content and folders on the same level.
Thanks, Pierre
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Doesn’t seem to work for the DIVI themePlease check your email. I’ve setup an WP-account for you to debug it.
Thanks, PierreForum: Plugins
In reply to: [Content Visibility for Divi Builder] Doesn’t seem to work for the DIVI themeThx bigtime @jhorowitz
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] Doesn’t seem to work for the DIVI themeI’m using the latest version of the Divi theme, Version: 3.0.105
And the latest version of WP: 4.9.4
Tried to deactivate all plugins.
Refreshed/empty cache in web developer tools.Thanks!
- This reply was modified 8 years, 3 months ago by pierreb.
Hi Ashley2011,
I had a look at the new version of the plugin.
The author of it has moved the post_type.php file into a folder named “classes“.
New URL: plugins/promotion-slider/classes/post_type.phpAround line 47 in post_type.php, you’ll find the same array you need to modify/add some code to.
Hope this helps!
Cheers,
//PierreForum: Plugins
In reply to: [Plugin: Download Monitor] PHP error with all download linksHi!
I had the same problem with the error-message “Fatal error: Cannot redeclare…”
I found my own solution to it.As the error says, A function called “X” is already declared and cannot be declared again. So i opened up the shortcodes.php file and started to look for all these functions giving me errors.
My solution
The solution to the problem for me was to write some code to check if the function has been declared or not. If it is declared then don’t declare it again, if not – do it!If you know some PHP-coding you can do it your own for each function like this:
This is the first function and its block of code that generate an error from shortcodes.php (The name of the function is wp_dlm_get_total_downloads() ):
function wp_dlm_get_total_downloads() { global $wpdb, $wp_dlm_db; return $wpdb->get_var('SELECT SUM(hits) FROM '.$wp_dlm_db.';'); } add_shortcode('total_downloads', 'wp_dlm_get_total_downloads'); } if(!function_exists('wp_dlm_get_total_files')) { function wp_dlm_get_total_files() { global $wpdb, $wp_dlm_db; return $wpdb->get_var('SELECT COUNT(*) FROM '.$wp_dlm_db.';'); } add_shortcode('total_files', 'wp_dlm_get_total_files');We need to add this code to this specific block of code/function:
if(!function_exists(‘wp_dlm_get_total_downloads’))
{
THE BLOCK OF CODE ABOVE GOES HERE
}In the example above we check to see if the function “wp_dlm_get_total_downloads” has not been declared earlier. If it has we simply don’t run it. If not we trigger it!
More errors?
When you have saved your changes to the shortcodes.php and checked your site to get the next function error, cause you will get new ones. :-/
Repeat the process for that new function error:
if(!function_exists(‘wp_dlm_shortcode_download‘))
{
BLOCK OF CODE TO BE DECLARED
}If you’re lazy or think that what I wrote above is greek, you can download my own modified file shortcodes.php) here: Download the modified file
Remember that if you autoupdate the plugin with a new released version, all these changes will be gone!
Forum: Themes and Templates
In reply to: How to get the “alt” and “title” information for an image?doc4,
I know I can solve it using an extra custom field for the description/alt text. And so have I done now, but the user in this case is not a friend of computers. So when I said that they have to enter the information twice, on upload and then in the custom field(s), I saw their face changed a bit 🙂
Perhaps the new thumbnail feature in WP will solve this in the future?
Thanks.
Forum: Themes and Templates
In reply to: How to get the “alt” and “title” information for an image?*bump*
Forum: Themes and Templates
In reply to: Code gets changed automatically in a sidebar after savingI’m not really sure if you’re editing a sidebar widget (text widget etc.) or if you’re editing the theme (under Appearance/Editor)?
If you want the text to be static (if you don’t need to change it all over) you could make your changes in the theme files. Edit the sidebar.php file in your theme folder. But in that case I would rather use CSS code to modify the sidebar. ex.
in your CSS file:
#sidebar span {
color: #00b0f5;
}Forum: Themes and Templates
In reply to: Theme for Product ReviewHi Esasia!
You should check out the http://www.arrastheme.com//Pierre
Forum: Themes and Templates
In reply to: Code gets changed automatically in a sidebar after savingI assume you’re editing the sidebar inside of the theme-editor in WP-admin? If so, try edit it in a text editor and upload it manually by ftp.