Skip to content

Instantly share code, notes, and snippets.

View linc's full-sized avatar
🧐

Lincoln Russell linc

🧐
View GitHub Profile
@linc
linc / wp vanilla comments conditional
Created October 16, 2012 15:40
Using Vanilla Comments on newer posts only
<?php
if (the_date('U') < strtotime('5 Oct 2012')) { // Where 5 Oct 2012 is the date they switched
/* DEFAULT WORDPRESS COMMENTS TEMPLATE GOES HERE */
} else {
/* VANILLA COMMENTS GOES HERE */
@linc
linc / gist:700805
Created November 15, 2010 19:16
VanillaIdentity (standalone)
<?php
/**
* @copyright Vanilla Forums Inc.
* @license GNU GPL2
*/
/**
* Instantiating this class will store current user's ID from cookie as $this->UserID.
*/
class VanillaIdentity {
DROP TABLE `GDN_Activity` ,
`GDN_ActivityType` ,
`GDN_Category` ,
`GDN_Comment` ,
`GDN_CommentWatch` ,
`GDN_Conversation` ,
`GDN_ConversationMessage` ,
`GDN_Discussion` ,
`GDN_Draft` ,
`GDN_Invitation` ,