Overriding Module Template Files

One new feature of Pligg 2 is the ability to override a module’s template files with a copy stored in your template’s directory. The great thing about this feature is that it allows you to upgrade a module without losing design changes, since the template files are being stored in a different directory. In this post I’ll describe how you can set up your first example template override.

Pagename Variables

Pligg CMS assigns ‘Pagename’ variables to PHP scripts as a way for template designers to figure out what script is being used to generate the page. Variables are often used in Pligg templates to determine whether or not you should display content by using template logic, much like how you can construct logical operators with programming languages such as PHP or JavaScript. This is useful when you want to set an ‘active’ state to an element like a navigation menu.

Pagename variables are defined in Pligg’s .php files to determine what page you are currently viewing. Typically the $pagename variable is equal to the name of the php file that is generating the page. Read the full post for code examples.

Embedding Youtube Videos with a Template Plugin

Pligg’s template system is based on Template Lite, and one of the built-in features for this system is that it comes with plugin functionality. This allows you to make use of a number of pre-installed plugins (located in the /plugins directory), or you can even add your own plugins. In this post I’ll be demonstrating how you can add a new template plugin to return an embedded Youtube video. This is a very quick example that should provide enough direction for you to craft your own template plugin for custom functions.

Vendor Information

If you are a designer or developer looking to publish templates, modules, widgets, or any other type of digital product related to Pligg CMS, then you need to learn about our new Vendor program. Vendors are a new user group that have the ability to add free or premium digital items to the Pligg Downloads area. If a Vendor chooses to sell one of their items through our marketplace, we give them a large commission (ranging from 60-80%) and the rest of the money goes back into Pligg CMS. It’s an easy way to make money as a developer, while at the same time supporting our open source project.

Showcase Coming Soon

The new Showcase Gallery website, which will replace what was previously known as the Gallery site, will be re-launched soon. We are still developing a Pligg template that will be used for the re-launched gallery site. For those who are unfamiliar with this section of the site, it is where you can submit your site to be featured as a custom Pligg CMS powered website. It’s a simple way for you to show off your design and development skills, while at the same time advertise your site on Pligg.com for free.

WAMP Domain Alias Tutorial

In this post, you will learn how to set up a domain alias for the purposes of pointing a domain to your local server files. This is useful so that you can develop a website locally before deploying it to a live server. We used a domain alias when developing the new design for Pligg.com so that we could test for broken URLs that might occur due to many large changes to the site structure. Below is a video guide that you can follow along with demonstrating how to set up a domain alias, or you can read the full article for step by step directions.

Rename the Register.php File

One trick that spammers use to mass post to Pligg sites is by creating a lot of accounts. What is annoying is that there isn’t much that we can do to block these account creations if we can’t discover a pattern to them. Your best option to prevent these bot accounts is to rename the register.php file to something random. You can even go one step further, and frequently keep renaming the registration file which really would throw a curve ball and make life more difficult for spammers.
Pages:«1234567...23»