Monthly Archives: November 2013

Plain Vanilla Multi-Pligg 1.2.2

Always make current backups of your site, avatars and database just in case something goes wrong.

Discussion:

If you just need to run a second and/or third Pligg Install to divide up your site (and still allow the original, previously registered users to use the old and new pages) then you don’t need to do much more than install a second and third copy of Pligg in sub-directories under your original Pligg.

What you’ll need to do is:

Install Pligg 1.2.2 to the relevant sub directories then run install. Set the new Pligg install(s) to use the original DataBase info but you’ll need to set the MySQL Table Prefix slightly different for each install. Use a underscore at the end of the new name. Helps slightly when doing anything with the MySQL tables later.

Once you’ve done the install and confirmed everything works FTP into your sub-directory and navigate to /libs/define_tables.php. You’ll be editing this slightly. Find the line that says…..

define('table_users', table_prefix  . "users" );

Put a blank line or two above and below that whole line then replace the line with the code below.

// Begin Modified Tables definitions - MultiPligg
  // Modified to use the base tables for MultPligg by J.A.Hawkins
  // Mostly to use the user table from the base Pligg right now
  // More to come as needed
define('table_users', "pligg_users" );
// End of Modified Tables definitions - MultiPligg

 When you’re done save the file back and browse to your site and the proper sub-directory. If you’re logged in then good. If not, that’s okay ,too. Open a second tab or browser window and visit your main page. Login then go back to the Pligg in your new sub-directory. Refresh and you should be logged in there, too.

Do the same for any other sub-directories with new Pligg installs and don’t forget to set the MySQL Table Prefix slightly different for each install.

Think you’re done? Not quite. Each pligg install is a different system that only uses the user base from the top level Pligg. You’ll need to disable several features in the sub-Pliggs to cut down on confusion. Disable Groups for sure. And add a link to your main site on each subsite and disable profile in the menu while you’re there.

In your main Pligg’s menu you’ll probably want links to your sub Pligg Installations. And you can go to your Sub Pligg Installs and fix the Groups and Profile menu items to point back to your main Pligg install. I’ll leave all that up to you.

Posts:

Posts in your Sub Pligg Installs won’t appear in the main Install. I used RSS to send my Posts to main. Works for me. Maybe later I’ll address that issue.

Can I see this working?

Sure, try this link. It’s not a demo as it is a working website.

http://www.FreakyVirginia.com

Will this work with 2.0.x?

I can’t answer that. The idea should be mostly the same but I’m not running on 2.0.x yet. Take a look at the files and give it a try if you want. Your Backups will save you if it doesn’t work and corrupts the top level Pligg. Let me know if you try it…. especially if it works.

 

Multi-Pligg 1.2.2 Enhanced with WordPress References and Reading List

References:

http://thedeadone.net/how-to/integrating-pligg-beta-810-with-wordpress-204/

http://forums.pligg.com/questions-comments/3562-multipligg.html

http://www.freewebmasterhelp.com/tutorials/htaccess/

http://codex.wordpress.org/Create_A_Network

http://mashable.com/2012/07/26/beginner-guide-wordpress-multisite/

http://jeffhawkinswebsiteservices.com/2013/11/21/adding-a-moderated-option-to-pligg-1-2-2-story-administration/

Demo:

Here’s a link to http://www.freakyvirginia.com/ which is a working site that is running a version of Multi-Pligg!!! Feel free to register as a user. After you verify your email, the sub-sites should recognize your login from the main page (or any Pligg page  within the site). No, this won’t work from the WordPress Blog!

No, this is not a full demo as it is a working site.  I sure can’t let you into the admin side but let me assure you the admin feature works just like Pligg 1.2.2’s standard admin panel. Nothing real different except I added a ‘story type’ to the drop down for ‘moderated stories’ to make it easier to work with those stories when maintaining the site if you have story moderation installed and turned on!

You can read about the change to add the ‘Story Moderation’ Option to Admin Here:

http://jeffhawkinswebsiteservices.com/wp-admin/post.php?post=57&action=edit

don’t let any of this scare you………..

Adding a ‘Moderated’ Option to Pligg 1.2.2 Story Administration

If you’re running either the Story Moderation Module or Spam Trigger Module or both, you might want to add this code to your admin panel to provide a story moderation option to the ‘story types’ drop down.

FTP into your Pligg directory and Navigate to templates/admin/admin_links_center.tpl. If you haven’t already, make sure to save all your admin template files. Open admin_links_center.tpl with your editor and navigate down until you find this line:

{#PLIGG_Visual_AdminPanel_Spam#}</option>

Insert a couple blank lines under that then add the below code

// Begin Code to Add 'moderated' as an option to the story management drop down menu by JHawkin //

	<option value="moderated" {if $templatelite.get.filter == "moderated"} selected="selected" {/if}>Moderated</option>

// End Code to Add 'moderated' as an option to the story management drop down menu by JHawkin//

Save the file back and visit the site to make sure everything including your new file works.

Multi-Pligg 1.2.2 Enhanced with WP – Part 3

From an idea I had to make Pligg and Multisite WP work together as several websites under one (or more) domain(s).

Demo Link article with some additional Information:

Multi-Pligg 1.2.2 Enhanced with WP – Link to Working Demo

References:

http://thedeadone.net/how-to/integrating-pligg-beta-810-with-wordpress-204/

http://forums.pligg.com/questions-comments/3562-multipligg.html

http://www.freewebmasterhelp.com/tutorials/htaccess/

http://codex.wordpress.org/Create_A_Network

http://mashable.com/2012/07/26/beginner-guide-wordpress-multisite/

don’t let any of this scare you………..

 

“WordPress must be installed in the root directory due to the requirements of the multisite domain mapping plugin I will use here.”

Tools:

Besides the usual assortment of common hand tools and a good source of fresh brewed coffee you’ll probably want the following.

A Pad of paper

Notepad

A good FTP program

Maybe a WYSIWYG HTML Editor

I’m sure there will be more as we go

Let’s move back to WordPress now:

You should have WordPress already installed in the root directory and one copy of Pligg 1.2.2 installed in a sub-directory.

You should have created a WordPress Blog over on WordPress.com and you’ll have written down your links, usernames and passwords for all these and you’ll have a Akismet key (and of course you wrote that down).

You’ll need to decide on running your WordPress as sub-domains or sub-directories. Since Multi-Pligg only runs under Sub-Directories, I recommend this unless you really need Sub-Domains.

Reread this WordPress Codex  entry about Multi-Site Networks. FTP into your site. You’ll need your server’s FTP address username and password. Find your way to the WordPress install and configure up the multi-site as per these Codex instructions:

Open up wp-config.php and add this line above where it says

/* That’s all, stop editing! Happy blogging. */

If it doesn’t say that anywhere, then add the line somewhere above the first line that begins with require or include:

 /* Multisite */

define( ‘WP_ALLOW_MULTISITE’, true );

When you return to your WordPress installation and refresh your browser you should find a Network Setup item in your Tools menu. Follow along in the Codex to build your WordPress Network.

When you return to your WordPress installation and refresh your browser again you should find a new menu item ‘My Site’ and be in or able to login to your Network Dashboard. From this Dashboard you should be able to add new WordPress websites as needed.

You’ll want these Plugins for your Network:

Advanced Permalinks

Akismet

bbPress

Better WP Security

Jetpack by WordPress.com

RSS Importer

RSS Multi Importer

UpdraftPlus – Backup/Restore

W3 Total Cache

WordPress MU Domain Mapping

WP-DBManager

WP-RSSImport

Optional:

WP IRC

Website Monetization by MageNet

Install these plugins but don’t Network activate yet, you can also install any themes you want but keep in mind any themes you make available will be useable by any site within your network.  Commercial Themes might be a problem here. You’ll need to check with the provider before installing.

You might also create child themes to tweak themes for your network ie; footers you might require for certain users, etc.

Next time I’ll probably talk about Domain Mapping and a few other WordPress subjects. Then in the next article I’ll jump into Multi-Pligg again. The final article(s) will bring all of this together.

Donations:

You’re Prayers, kind thoughts, and well wishes help immensely. If you’d like to help further, I’ll use your donated funds to purchase a domain, pay for hosting and if I see enough monetary support  I’ll hire a developer to assist with adding further enhancements and integration of other web APPs or commercially available programs. I have some great ideas.


 

A Great Offer:

I’ll make one further offer here. If you’ll purchase a Domain Name (or a transfer of one) and WordPress Hosting from my Paradigm Domains operation and will provide me with the login credentials to that site/account, your akismet key and your login account credentials at WordPress.com I will be glad to fully install what I’ve done here at that time for $75.00 on your Paradigm Hosting.

That price may increase and requirements may change as we go along depending on if we add commercial apps and any future enhancements we might make. You can do all this yourself but the work may be out of your comfort zone so I offer this as a further incentive to purchase my hosting and domain registration services and to compensate me or my helpers/developers/programmers for our time.

To  be continued……….. Here

Multi-Pligg 1.2.2 Enhanced with WP – Link to Working Demo

From an idea I had to make Pligg and Multisite WP work together as several websites under one (or more) domain(s).

As promised here’s a link to http://www.freakyvirginia.com/ which is a working site that is running a version of Multi-Pligg!!! Feel free to register as a user. after you verify your email, the subsites should recognize your login from the main page (or any Pligg page  within the site). No, this won’t work from the WordPress Blog!

No, it’s not a full demo as it is a working site.  I sure can’t let you into the admin side but let me assure you the admin feature works just like Pligg 1.2.2’s standard admin panel. Nothing real different except I added a ‘story type’ to the drop down for ‘moderated stories’ to make it easier to work with those stories when maintaining the site if you have story moderation installed and turned on!

Since each underlying Pligg will need to be administrated and moderated from it’s own admin Panel (for now anyway) I’ve added one more admin feature  called ‘Touch List’. Touch List isn’t actually a supported feature (not yet but I’ll set it for the sites I install). Touch List is a directory containing a set of single pages to guide you to the administration pages for each underlying Pligg.

These ‘Touch List’ pages run from a local directory on your PC and cause the ‘Root Pligg’ to load in a new browser page or tab, then the 1st page reloads and launches Your WP Installation’s Network admin in a second page, then reloads again and continues until you’ve reached the last page and have launched that Pligg or any other Page you wish.

I also plan to add a hidden story option to hide stories from normal users. This would be great for seasonal posts that you’d like to keep til later but don’t want your users to see at the moment. This should also be good for those imported RSS stories that you don’t want shown and don’t want RSS to re-import. No promises for when but I’ll post something here when it’s done.

Donations:

You’re Prayers, kind thoughts, and well wishes help immensely. If you’d like to help further, I’ll use your donated funds to purchase a domain, pay for hosting and, if I see enough monetary support,  I’ll hire a developer to assist with adding further enhancements and integration of other web APPs or commercially available programs. I have some great ideas.


 

A Great Offer:

I’ll make one further offer here. If you’ll purchase a Domain Name (or a transfer of one) and WordPress Hosting from my Paradigm Domains operation and will provide me with the login credentials to that site/account, your akismet key and your login account credentials at WordPress.com I will be glad to fully install what I’ve done here at that time for $75.00 on your Paradigm Hosting.

That price may increase and requirements may change as we go along depending on if we add commercial apps and any future enhancements we might make. You can do all this yourself but the work may be out of your comfort zone so I offer this as a further incentive to purchase my hosting and domain registration services and to compensate my helpers/developers/programmers and I for our time.

Multi-Pligg 1.2.2 Enhanced with WP – Part 2

From an idea I had to make Pligg and Multisite WP work together as several websites under one (or more) domain(s).

Recap:

Yesterday you assembled your tools and purchased or transfered a domain to Paradigm Domains or your preferred webhost and setup hosting. I had you grab an account at WordPress.com and write down your login info. You also should have obtained a Akismet Key and wrote that down.

Possibly you installed WordPress in the server root directory. You did this from my one touch installer if you used Paradigm Domains.

“WordPress must be installed in the root directory due to the requirements of the multisite domain mapping plugin I will use here.”

Now you’ll need to find a copy of Pligg 1.22 and install it in a directory under your root directory. The install in pretty easy but ask questions here if you run into problems.

Hopefully you’ve wrote down the database info for your WordPress install so you can use that database as your Pligg database also. Fill in the requested info at the install prompts and set the table name to the suggested ‘Pligg_’ or whatever you like. Don’t do like I did and leave off the ‘underscore’ as that helps a lot when referring to the table if and when you need it.

Demo Link article with some additional Information:

Multi-Pligg 1.2.2 Enhanced with WP – Link to Working Demo

 Donations:

You’re Prayers, kind thoughts, and well wishes help immensely. If you’d like to help further, I’ll use your donated funds to purchase a domain, pay for hosting and if I see enough monetary support  I’ll hire a developer to assist with adding further enhancements and integration of other web APPs or commercially available programs. I have some great ideas.


 

A Great Offer:

I’ll make one further offer here. If you’ll purchase a Domain Name (or a transfer of one) and WordPress Hosting from my Paradigm Domains operation and will provide me with the login credentials to that site/account, your akismet key and your login account credentials at WordPress.com I will be glad to fully install what I’ve done here at that time for $75.00 on your Paradigm Hosting.

That price may increase and requirements may change as we go along depending on if we add commercial apps and any future enhancements we might make. You can do all this yourself but the work may be out of your comfort zone so I offer this as a further incentive to purchase my hosting and domain registration services and to compensate me or my helpers/developers/programmers for our time.

To  be continued……….. Here

 

Multi-Pligg 1.2.2 Enhanced with WP

From an idea I had to make Pligg and Multisite WP work together as several websites under one (or more) domain(s).

First off this isn’t a total bridge of WordPress and Pligg. Not yet anyway! I wanted to divide an existing Pligg site that used WordPress as a Blog. The site I wanted this for seemed like it would benefit from dividing into two or three separate sections. This project grew out of that system and need. Someone recommended I document this in case others might want this info or possibly benefit from this in some way….. or maybe I just like to write!

Demo Link article with some additional Information:

Multi-Pligg 1.2.2 Enhanced with WP – Link to Working Demo

Further Plans:

WordPress has an add on  Forum Plugin/APP called BBPress. I hope to fully integrate that app into the project sometime soon and there are several commercial APPs I might add at a later date once the core APPs are proven and known stable.

If I receive enough donations I’ll probably hire a developer who knows phpLD (php link Directory) to incorporate that into the WordPress hanging off this project and possibly use the facilities of WordPress to further bridge other webAPPs into this system.

References:

http://thedeadone.net/how-to/integrating-pligg-beta-810-with-wordpress-204/

http://forums.pligg.com/questions-comments/3562-multipligg.html

http://www.freewebmasterhelp.com/tutorials/htaccess/

http://codex.wordpress.org/Create_A_Network

http://mashable.com/2012/07/26/beginner-guide-wordpress-multisite/

http://jeffhawkinswebsiteservices.com/2013/11/21/adding-a-moderated-option-to-pligg-1-2-2-story-administration/

don’t let any of this scare you………..

Caveats:

I’m still developing this as I go, this is very early alpha stage. What I recommend works for me but may not work for you. I’ll do my best to support your efforts to duplicate my system but make no guarantees this will work, I offer….. no warranty, no promise of suitability, no future revisions and no support outside of this(these) Blog post(s).

You’re mileage may vary and objects in your mirror may be bigger or more ridiculous that they appear. Do not eat this product or heat in microwave oven prior to consumption. If I left anything out I hope you’ll still get the picture here. No Crying!!!!

Prerequisites:

You’ll need a copy of Pligg 1.2.2. You’re welcome to  use any version you wish but at this time I’ve settled on 1.2.2 and to keep distractions to a minimum this is what I plan to use.

You’ll need a good website host. I used my own service, Paradigm Domains, and ask that you use the same. The added business will support me and my company and my familiarity with the service will help me support the users there. Irregardless you’re welcome to chose any host you want. I’ll support you as I can.

WordPress…. You’ll need WordPress installed in the root directory. I won’t go into why but…. This is the first Web APP you’ll install if you want to duplicate what I’ve done here. You’re welcome to leave out WordPress but I think this project may lean heavily upon WordPress as it goes along from this Alpha stage into Beta and I think you might want to install it for now to be ready for where I’m heading.

“WordPress must be installed in the root directory due to the requirements of the multisite domain mapping plugin I will use here.”

Tools:

Besides the usual assortment of common hand tools and a good source of fresh brewed coffee you’ll probably want the following.

A Pad of paper

Notepad

A good FTP program

Maybe a WYSIWYG HTML Editor

I’m sure there will be more as we go

Now the Nitty Gritty Begins:

At this time the WordPress hosting I provide at Paradigm Domains  includes a one-touch install of WordPress. I’ll guide you through Installing WordPress to Multisite in the next post. I’ll most likely point you to further reading then and may even get you started toward tweaking the WordPress Multisite and adding what I believe is the essential Plugins and WordPress setup.

You can get ahead slightly by creating a WordPress Blog over on WordPress.com. Do write down your link, username and password there as you’ll need it for JetPack, a part of my recommended WordPress package.

Donations:

You’re Prayers, kind thoughts, and well wishes help immensely. If you’d like to help further, I’ll use your donated funds to purchase a domain, pay for hosting and if I see enough monetary support  I’ll hire a developer to assist with adding further enhancements and integration of other web APPs or commercially available programs. I have some great ideas.


 

A Great Offer:

I’ll make one further offer here. If you’ll purchase a Domain Name (or a transfer of one) and WordPress Hosting from my Paradigm Domains operation and will provide me with the login credentials to that site/account, your akismet key and your login account credentials at WordPress.com I will be glad to fully install what I’ve done here at that time for $75.00 on your Paradigm Hosting.

That price may increase and requirements may change as we go along depending on if we add commercial apps and any future enhancements we might make. You can do all this yourself but the work may be out of your comfort zone so I offer this as a further incentive to purchase my hosting and domain registration services and to compensate me or my helpers/developers/programmers for our time.

Get Started:

So go ahead….. get started…. Grab your free WordPress.com site. Purchase or transfer your domain and arrange your WordPress hosting. Install the WordPress. I’ll be back tomorrow with the second installment here and we’ll get your first Pligg Page working.

I may be ready to show you my actual running site by then (the site is running but I have a few items to fix there yet before the rest of it (the enhanced site) goes public. When I do I’ll show you around and you’ll see what works and how.

To  be continued……….. Here