Title: yksehtniycul -- patron administrator Post by: yksehtniycul on September 24, 2008, 03:50:50 AM Site Admin (not site owner)
I facilitate the site technically while doing my best to do little else :smokin: It's so easy to laugh It's so easy to hate It takes strength to be gentle and kind It takes guts to be gentle and kind Simple reminders for me... --Setup unfairly spammed comments complaint thread :sweatdrop: ooo(why the hell was I flagged as spam??) Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on October 15, 2008, 12:16:35 AM administration notes:
Hacked wp-includes/classes.php Code: <?php This allows pages to be marked as blank, so they will not generate links in the sidebar (so users time isn't wasted clicking on them) Also changed the title attribute to be the page name, rather than repeating the page title. edited: Btw, in order to mark a page as blank, a meta key called 'blank' must be added to the page with a value of 'yes'. Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on October 16, 2008, 03:01:02 AM administration notes:
Hacked wp-includes/widgets.php Code: <?php if(get_post_meta(get_the_ID(),'sticky',true)=='yes') continue; ?> This excludes announcement/sticky posts from the "Recent News" widget in the sidebar. In order to exclude the post a meta key called 'sticky' must be added to the post with a value of 'yes'. Just using the sticky plugin won't suffice. Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on October 16, 2008, 03:32:18 AM administration notes:
Hacked wp-includes/widgets.php Code: 'depth' => 1 This manually sets a hidden argument for the page and category listing widgets (in two separate lines) I tried to make this an option in the interface (it definitely should be) but the hack became overly elaborate for an include file, and I couldn't get controller code to reliably add/update the depth option to the database. This btw limits the hierarchical listings to one level. For my next trick I plan on trying to add subpage counters to the page listing. Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on October 16, 2008, 04:17:23 AM administration notes:
Hacked wp-includes/classes.php Code: <?php This counts the number of subpages in the page listing widget and appends the number in parenthesis to each listing (if subpages exist) Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on October 29, 2008, 11:39:23 AM administration notes:
Hacked wp-includes/post.php Code: <?php This adds depth limiting to get_pages(). Note, Wordpress does not assign an ID to the top-level page, therefore it is not possible to request only the top-level pages. It just happens passing the argument hierarchical=1 (a boolean flag) has the side effect of procuring the top-level pages while the child_of argument is 0 (which normally disables parent based pruning -- and conveniently the parent ID you'll end up with for top-level pages) It's worth noting there is no reason to presume this behavior will not change in future version of Wordpress. For now however hierarchical is equivalent to passing a non-zero child_of, so it is safe to combine the two this way. This hack is used to generate an array of sibling pages from which the "prev" and "next" page flippers atop each page can be practically retrieved. Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on January 10, 2009, 01:24:52 AM administration notes:
Hacked wp-includes/post-template.php Changed... Code: <?php to... Code: <?php I read somewhere revisions were stored as children of the revised post. So for some reason only administrators and editors can "edit" revisions. So I changed the edit privilege test to be against the child (actual post) and sure enough now writers can see revisions (and restore them if they like) WordPress currently has no privileges related to revisions. So if that ever changes (after an update) this should be reviewed, because we don't want lowly contributors being able to delete or rollback revisions. A restore just replaces the current contents of a post with an old revision's contents, so this is a harmless operation at best. Frankly as implemented it seems silly not to make revisions available to all. Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on January 16, 2009, 06:36:19 AM ^Woops, I did a stupid thing somehow with the revisions hack... not sure how. But anyway it is fixed now. I'm pretty sure Contributors can see/compare revisions. Authors can at least. I haven't tried restoring a revision. I mainly implemented the hack so Contributors could see revisions, but it is harmless if they can restore as well. Regardless if they are unable to, I'm not sure I'll ever be motivated to add that functionality.
Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on March 15, 2009, 02:28:22 AM administration notes:
Hacked wp-includes/formatting.php Disabling auto formatting for pages (this has been bugging me for too long) Code: <?php Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on June 25, 2009, 03:47:57 AM administration notes:
.htaccess Bold lines added to avoid "super-caching" for these user agents. Quote from: .htaccess # BEGIN WPSuperCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / AddDefaultCharset UTF-8 RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$ # ADDED THIS LINE TO PASS-THROUGH MOBILE USER AGENTS RewriteCond %{HTTP_USER_AGENT} !(2\0560\040MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3\0560|EudoraWeb|hiptop|MMEF20|MOT-V|NetFront|Newt|Nokia|Opera\040Mini|Palm|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\040OS|SymbianOS|TS21i-10|UP\056Browser|UP\056Link|Windows\040CE|WinWAP) RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L] RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$ # ADDED THIS LINE TO PASS-THROUGH MOBILE USER AGENTS RewriteCond %{HTTP_USER_AGENT} !(2\0560\040MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3\0560|EudoraWeb|hiptop|MMEF20|MOT-V|NetFront|Newt|Nokia|Opera\040Mini|Palm|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\040OS|SymbianOS|TS21i-10|UP\056Browser|UP\056Link|Windows\040CE|WinWAP) RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L] </IfModule> # END WPSuperCache The following rejected user agent strings were added to the wp-super-cache plugin settings... 2.0.*MMP 240x320 AvantGo BlackBerry Blazer Cellphone Danger DoCoMo Elaine/3.0 EudoraWeb hiptop MMEF20 MOT-V NetFront Newt Nokia Opera.*Mini Palm portalmmm Proxinet ProxiNet SHARP-TQ-GX10 Small SonyEricsson Symbian.*OS SymbianOS TS21i-10 UP.Browser UP.Link Windows.*CE WinWAP Note: .* is substituted for spaces. I don't know if this is a functional strategy, but the settings dialogue rewrites most any other syntax. Officially it does not seem to support non-alphanumeric strings. Title: My todo list for 2010 Post by: yksehtniycul on December 19, 2009, 03:26:32 PM Just to let everyone know I'm still committed to seeing this website (or what is left of it) thru, here is my personal todo list for 2010. If you're reading this don't think unkindly about what I'm not doing for the website, ask yourself what you could do to improve the site.
*repair everything that is not working (of course.) *repair mobile phone etc support. *try to get all the screenshot pages back up in the archives *try to put the archives videos back now that we have a way to cope with the bandwidth *try to use this (http://web.archive.org/web/20071027111507/http://www.digitaldevildb.com/) to reconstruct the archive news pages as much as possible. *try to use Jessicat's Kyuuyaku Kerberos scan to make a better quality forum logo. *do my best to find a new font/look for the forum banner. *get all the Google crap out of the pages (not the anti-Google stuff, I'd welcome more of that) *try to find a replacement for Google Spreadsheets (eg. maybe Sheetster) for the Demonary projects (or what's left of them) *of course finish up/continue perfecting the new YaCy site wide search (replacing Google Custom Search) *eventually upgrade WordPress (and continue to do so) *convert all my WordPress source code hacks into a custom WordPress plugin (so WordPress can be upgraded on demand) *program a WordPress to Simple Machine Forums bridge plugin so user accounts and login will be site wide. *make all registered parties automatically able to write (not publish) posts and pages and upload media to the WordPress Media Library (should work better on the new host) *try to improve YaCy if necessary so to better index the site (primarily not indexing keywords, sidebar stuff, and rss feed summaries, so if you search for Persona you don't get back every page on the website!!) *find a a way to build a really solid sitemap (should not be too hard on the new host) so YaCy can keep the website index up to date. *try to figure out a donation system (surely someone out there appreciates the website / can spare a dime) PS: When I say try I mean I'll follow thru, but sometimes things just don't work out for technical reasons :smokin: PPS: Full disclosure, most if not all of the technical stuff I'm doing for other (higher priority) websites as well. Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on December 25, 2009, 08:04:40 PM Just realized I'd not finished publishing all of the Spanish translation work Emilio did all the way back to the beginning of time / I asked Emilio to give the site a second chance. Let's hope he will. No one else has ever worked so selflessly like Tony for this place as has Emilio :ninja:
Title: Re: yksehtniycul -- patron administrator Post by: yksehtniycul on March 17, 2010, 07:11:26 PM Fixed the localization bug that would make urls with terms like "franchisers" get converted to French (because the term began with "fr" etc.)
Code: *changed: |