Show Likes

This section allows you to view all posts where this member received or gave a like to.

apply_plugin_mods() destroys the Settings.php when an error occurs.

array_diff() needs two arrays as arguments but only gets one (the other one is the plugin string).
Code: (Subs-CachePHP) [Select]
$enabled_plugins = array_diff($enabled_plugins, $plugin);
I changed it to
Code: (Fix1) [Select]
$enabled_plugins = array_diff($enabled_plugins, array($plugin));
but perhaps something with array_search and unset would be better.

And updateSettingsFile() wants an assoc but it gets something weird:
Code: (Subs-CachePHP) [Select]
updateSettingsFile(array('my_plugins' => $my_plugins = implode(',', $enabled_plugins)));

I changed it to
Code: (Fix2) [Select]
updateSettingsFile(array('my_plugins' => implode(',', $enabled_plugins)));

Will create a pull request...

Includes some other fixes
Clean install of the current HEAD of the master branch.
MySQL 5.6.17.

Creating an album I got this message:
Code: [Select]
Data too long for column 'featured' at row 1
File: /home/emanuele/webserver/htdocs/wedge/gz/app/media_Aeva-Gallery2.php
Line: 1675

The workaround I used is to change the column to tinyint. :P
The Pub / Re: Creating a Front Page
Bunstonious « on March 5th, 2015, 12:54 PM »
PS: I respect both @Pandos and @Nao for the work you guys are doing to polish it off.
Features / Re: New revs
Nao « on February 12th, 2015, 04:53 PM »
[Commit revision 39b639b]
Author: Nao
Date: Tue, 10 Feb 2015 17:02:40 +0100
Stats: 1 file changed; +1 (insertion), -1 (deletion)

  • The error log now indicates the error type/level in some specific PHP errors. (Errors.php)

[Commit revision b6ffd20]
Author: Nao
Date: Thu, 12 Feb 2015 16:53:27 +0100
Stats: 8 files changed; +170 (insertions), -119 (deletions)

  • Adding preliminary support for video.js library, replacing JW Player. Using the CDN version, to save some space. Basically, you're getting no new features out of it; the main differences are (1) IE will no longer show a spectrum analyzer on audio files (not fixable, screw IE), (2) the spectrum analyzer is now done in JS so it can be customized, (3) Wedge is now free of licence issues regarding JW Player. I liked that player, but they never answered my questions regarding redistribution, so... goodbye? (Aeva-Foxy.php, Aeva-Subs-Vital.php, Class-Media.php, Subs-Media.php, player.js, media.css)
  • OGG files now have a proper 'audio/ogg' MIME type... This has actually been standard since 2008, so... WTH?! (Aeva-Subs-Vital.php, Class-Media.php)
  • Removed player color customization settings. Pretty easy to guess why: since it's rendered in HTML now, you can directly skin your player from a CSS file, and that's per-skin, not per-site. (Aeva-Subs-Vital.php, ManageMedia.php, ManageMedia.english.php)
  • Added a tentative fallback for generic icons not being copied into your media folder... Let me hazard a guess... The importer is probably broken when it comes to media galleries, hmm..? (Subs-Media.php)
  • OGG files won't be played on IE7 & IE8, but I'm not sure they ever have, anyway... Can always download them anyway.
  • Playlists are still terribly broken, so... Don't use them for now.
  • Spectrum analyzer is still in its infancy.
  • If you're having problems... Use the cache purge feature, as always.
Features / Re: New revs
Nao « on February 3rd, 2015, 01:14 PM »
[Commit revision 88287e9]
Author: Nao
Date: Tue, 03 Feb 2015 13:14:06 +0100
Stats: 1 file changed; +11 (insertions), -19 (deletions)

  • Simplifying credits (we don't really need nicknames for everyone, do we..? It's just convenience, ask on the forum if you need to know who's who or blame the file), and preparing for the removal of JW Player code. I really, REALLY wanted to see that one copyright gone... It was Wedge's last 'incompatible' license. (contributors.txt)
  • Current local (uncommitted) code is 100% JW Player-free. Will commit once I've fixed the playlist system.
Archived fixes / Re: Videos not working
Nao « on January 27th, 2015, 12:10 AM »
Please note that I've been using these days for testing local changes to the video player system. The embedder is also impacted by this, and will currently fail to embed any Flash videos. Don't worry, hey, not going to commit that... :P
Plugins / [Plugin] CountLikes
CerealGuy « on December 27th, 2014, 06:43 PM »
This Plugin basically shows in profile summary how many likes this user gave/receieved. You can also view those posts.
Archived fixes / Template modification not working
CerealGuy « on December 23rd, 2014, 10:47 PM »
Template modifications via plugin arent working because apply_plugin_mods only gets called when core file is newer than the cached file or the cached file doesnt exist. I'm not 100% sure, but probaby some template cache flushing is needed when enabling a plugin :hmm:.

ManagePlugins.php, clean_cache('php', '', CACHE_DIR . '/html'); is needed in enable and disable plugin. Than it works correctly. But why do you clean everything?
But here two improvements:
1. If plugin has no mods.xml you dont need to clean the cache
2. Only delete files which are in mods.xml
Off-topic / Motorbike Licence
Bunstonious « on December 4th, 2014, 10:15 PM »
So I got my motorbike licence, and a motorbike guys...



Anyways, it's fun! :eheh: :eheh: :eheh: :eheh:
Off-topic / Re: Remote code execution through bash!
« on September 25th, 2014, 03:25 PM »
First released patches not good enough.