Commit Graph

29 Commits

Author SHA1 Message Date
Mikael Nordfeldth 7e597ea7cc More Favorite pluginification (favecount, cache, menus(favecount, cache, menus)) 2014-06-28 14:03:30 +02:00
Mikael Nordfeldth de55d8f83b plugins onAutoload now only overloads if necessary (extlibs etc.)
lib/plugin.php now has a parent onAutoload function that finds most common
files that are used in plugins (actions, dataobjects, forms, libs etc.) if
they are put in the standardised directories ('actions', 'classes', 'forms',
'lib' and perhaps some others in the future).
2013-08-28 16:10:30 +02:00
Mikael Nordfeldth 3a7261f70a IMPORTANT: Making prev. Memcached_DataObject working again with schemaDef
Lots of the Memcached_DataObject classes stopped working when upgraded to
Managed_DataObject because they lacked schemaDef().

I have _hopefully_ made it so that all the references to the table uses
each class' schemaDef, rather than the more manual ColumnDef stuff. Not
all plugins have been tested thoroughly yet.

NOTE: This is applied with getKV calls instead of staticGet, as it was
important for PHP Strict Standards compliance to avoid calling the non-
static functions statically. (unfortunately DB and DB_DataObject still do
this within themselves...)
2013-08-21 09:48:42 +02:00
Mikael Nordfeldth 2a4dc77a63 The overloaded DB_DataObject function staticGet is now called getKV
I used this hacky sed-command (run it from your GNU Social root, or change the first grep's path to where it actually lies) to do a rough fix on all ::staticGet calls and rename them to ::getKV

   sed -i -s -e '/DataObject::staticGet/I!s/::staticGet/::getKV/Ig' $(grep -R ::staticGet `pwd`/* | grep -v -e '^extlib' | grep -v DataObject:: |grep -v "function staticGet"|cut -d: -f1 |sort |uniq)

If you're applying this, remember to change the Managed_DataObject and Memcached_DataObject function definitions of staticGet to getKV!

This might of course take some getting used to, or modification fo StatusNet plugins, but the result is that all the static calls (to staticGet) are now properly made without breaking PHP Strict Standards. Standards are there to be followed (and they caused some very bad confusion when used with get_called_class)

Reasonably any plugin or code that tests for the definition of 'GNUSOCIAL' or similar will take this change into consideration.
2013-08-18 13:13:56 +02:00
Max Shinn 407aa6a947 Updating uploaded photos 2010-12-28 10:40:58 -06:00
Max Shinn 90521450a0 Cool js photo resizing effect 2010-12-28 09:38:50 -06:00
Max Shinn c73398fb25 External css 2010-12-28 09:10:22 -06:00
Max Shinn 330ac5dd12 Photo albums on photos page 2010-12-28 08:31:34 -06:00
Max Shinn 18f46958f2 Individual ids for photos 2010-12-27 16:57:13 -06:00
Max Shinn cbf296e804 Usability with photos tab 2010-12-26 20:42:45 -06:00
Max Shinn a10a9c4a90 Show photos on all of a user's pages 2010-12-25 15:56:46 -06:00
Max Shinn 4af6e0f44c Merge branch 'master' of git://gitorious.org/~trombonechamp/statusnet/trombonechamps-gnu-social 2010-12-25 08:02:17 -06:00
Max Shinn 6cc0a910d2 Individual photo page 2010-12-25 08:02:06 -06:00
Ian Denhardt 3a7e8e9d88 apparently we need a primary key in every table. this fixes an error in the logs. 2010-12-23 16:26:21 -05:00
Ian Denhardt c901039a1f added link to photo upload page. 2010-12-21 16:25:11 -05:00
Ian Denhardt 23cf5c780d Added a link to the user's photos on their profile page. 2010-12-21 15:33:49 -05:00
Ian Denhardt 148f6b6933 corrected height/width on ad-hoc'd thumnails. 2010-12-20 22:07:03 -05:00
Ian Denhardt 30815645fc Photo federation is basically working now, could use some polish. 2010-12-20 22:02:50 -05:00
Sean Corbett cc18dcb82d Rough draft of the photo album class to control photo ownership / permissions. 2010-09-04 22:14:49 -04:00
Sean Corbett 7e8ff72c0b Quick function to get an array of thumbnails for a gallery page. 2010-09-04 17:35:37 -04:00
Ian Denhardt 3da5dccce6 Got photos displaying in the feed *the right way* 2010-09-03 23:00:34 -04:00
Ian Denhardt 56c0f97bea first whack at proper photo sharing federation w/ activity streams. 2010-08-16 16:21:27 -04:00
Ian Denhardt 769d6089de photos now work across status.net installs. needs to be cleaned up though. 2010-08-11 12:39:10 -04:00
Ian Denhardt c6c08d8969 Got author to appear properly in the feed for photos. 2010-08-11 11:08:08 -04:00
Ian Denhardt 58d98a4c2b Photos now show up in feed (locally anywyay.) need cleanup/federation 2010-08-11 10:54:06 -04:00
Ian Denhardt 43454eba36 got uploads sortof working - database portion doesn't work though. 2010-08-05 13:11:34 -04:00
Ian Denhardt 16ad70e16f Started working on proper photo upload. not fully functional yet. 2010-08-04 17:26:55 -04:00
Ian Denhardt fe5f55cc24 rudementary photo albums. going to /username/photos displays all the images username has attached. 2010-08-03 13:21:11 -04:00
Ian Denhardt eebc37604a Started work on photos plugin. not much yet. 2010-08-02 19:22:55 -04:00