How to Add the PAW Network Freeroll Script

October 19, 2007

This tutorial is especially made for those poker affiliates that are promoting programs through the Poker Affiliate World Network. WordPress is a little bit different when it comes to implementing code, but everything basically works the same as a regular text editor. The only real difference is that WordPress will sometimes correct invalid code or code that it just plain doesn’t like.

Anyways, with that being said, I’m going to show you how to integrate the code onto a WordPress post/page. You can also see that I’ve implemented the code onto this page to show you that it does in fact work.

Step 1

Click the “Write” tab in the admin panel of WordPress. WordPress will automatically choose the “post” template. We recommend creating a “page” to add the freeroll script so find the tab that says “Write Page” and click it.

Step 2

After you’ve reached the “Write Page” tab you want to grab the PAW Network freeroll script and insert it. Click the Javascript code tab above the content area (where you write everything that is supposed to go on the page) and insert the code. The PHP codes will not work with a regular page in WordPress unless you do some customization or add a PHP execution plugin.

Step 3

Give your page a slug of something like “freerolls” or “poker-freerolls” so the page shows up at http://www.YOURSITE.com/PAGE-SLUG/

Step 4

Click the publish button and you’re done. To add the newly created freerolls page to the main navigation click the “Presentation” tab then click the “Theme Editor” tab. Look on the right side and click the text called “Header” to add and remove links from the navigation on your site.

Working freeroll script using Javascript method:

Suggested WordPress Plugins

October 12, 2007

Here is a list we compiled of some of the Best WordPress Plugins.

Here is a list of the best WordPress Plugins that will go great with any of our great Gambling WordPress Themes.

Advanced Tiny-MCE Editor
This plugin turns your existing WordPress editor into a WYSIWYG powerhouse. Allows you to add tables, backgrounds, css styles, copy and paste from Word, ability to easily add and alter photos, quicktime video, flash video and more than 60 options.

All in One SEO Pack
Out-of-the-box SEO for your WordPress blog or site. Add and control page titles, descriptions, keywords and much more.

Akismet Comments Spam Filter
Akismet checks your comments against the Akismet web service to see if they look like spam or not. After you download and install go to this page to get your wordpress api key and enter it into the Akismet wordpress area under options.

Breadcrumb Navigation
Adds a breadcrumb navigation showing the visitor’s path to their current location on your site.

Feedburner Feed Replacement
Takes all your RSS feeds and puts them into one easily readable format so all readers can easily access the proper feed for their reader. Can now be found at Feedburner. While you’re there you should set up a feed. Feedburner which is now owned by Google makes using an RSS feed a breeze.

Google Analytics WordPress Plugin
This plugin makes it simple to add Google Analytics to your WordPress site or blog.

Google Sitemaps WordPress Plugin
This plugin generates a XML-Sitemap compliant sitemap of your WordPress blog. This format is supported by Google, YAHOO and MSN Search.

Podpress
The podPress pluggin gives you everything you need in one easy plugin to use WordPress for Podcasting. Even submits your podcast automatically to iTunes, Yahoo and more.

Poker Hand
This plugin was customized and modified by ourselves. It adds a feature to WordPress that allows you to include the suits of cards in your posts by typing [c] [d] [h] or [s]. In addition to that, this plugin will automatically convert some online poker room hand histories, specifically Full Tilt Poker’s.

Search Pages
Allows your users to be able to search through posts and pages on your WordPress site/blog. Usually only posts are able to be searched.

Secure and Accessible PHP Contact Form
This powerful yet easy-to-install contact form features exceptional accessibility and usability while still providing extensive anti-spam and anti-exploit security features.

WP Polls
Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress’s blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.

WordPress Database Backup
On-demand backup of your WordPress database.

Share This
Allows you to easily add social bookmarking links like Digg and others along with an “Email This” feature.

MyDashboard
The MyDashboard plugin is designed to replace the standard, but limited, WordPress dashboard with something a bit more useful, extendable and skinnable.

Ad Rotator
Easily rotate affiliate ads every time you visit a new page. Great for adsense or any affiliate ads.

Peter’s Custom Anti-Spam
Stop a lot of spambots from polluting your site by making visitors identify a random word displayed as an image before commenting. You can customize the pool of words to display.

Including Comments in Your Posts

September 18, 2007

I have had mixed messages about including comments with this theme. Some people want to use them since they have intentions on still using this as a blog theme, but others don’t want comments since they plan to use it as a newspaper site.

So I decided that the download wouldn’t include them, but I’m writing this tutorial to show you how to add them back into your theme files. All you need to do is open up your index.php file, and look for this line of code:

<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>

Immediately after this line of code, add this:

<h4>Comments</h4>
<?php comments_template(); // Get wp-comments.php template ?>

Save the file, upload it back to your server and then your comments should appear under your posts!

How to Highlight the Current Page

September 18, 2007

I was asked if there was a way to highlight the current page of the theme – something that I overlooked when creating the theme, and also something very easy to include.

What you need to do is open up your style.css file, and add this code to the area that defines the #navbar:

.current_page_item a, .current_page_item a:hover {
background: #FFFFFF !important;
color: #2255AA !important;
}

One thing to keep in mind, is that this only works for pages that are shown in the navbar dynamically, so if you hardcode your navbar, this styling element will not work. The code above will display your active page the way you see it below:

How to Highlight the Current Page

Since the code for highlighting the current page is through css, you have the ability to change the text/background colors to suit your overall design needs.

Customizing the eNews & Updates Section

September 15, 2007

I am a really big fan of using Feedburner, which is the leading provider of media distribution and audience engagement services for blogs and RSS feeds. Our Web-based tools help bloggers, podcasters and commercial publishers promote, deliver and profit from their content on the Web.

The “Theme eNews & Updates Section” section in the left hand column of the homepage is coded to use the Feedburner Email Subscriptions feature – one that I use across all of my sites because I really like it. It seems that the majority of people redirecting their feeds use Feedburner, which is why I coded the newsletter signup section that way.

In order for that to work, all you need to do is go into the home.php file and look for this piece of code:

value="http://feeds.feedburner.com/~e?ffid=FEEDBURNERID"

Replace the FEEDBURNERID with your numerical ID, and then it will function properly.

How to Configure the Home Page

September 15, 2007

I thought it would be helpful to write up a tutorial on the basic structure/elements of any of our Gambling Theme homepage. Just about every aspect of the home page is dynamic, with a few small exceptions, so once you understand how things are pulled, it’s very easy to customize it to your needs.

Header
The blog title is dynamic, and does not use an image – as the original Revolution theme does. This means that upon download and activation of the theme, your title will automatically show in the upper left hand section of the site.

As for the main navigation, the blue navigation bar is coded to display a list of pages and the gray navigation bar is coded to display a list of categories. These can easily be changed, or with the help of the WordPress codex, can be re-configured to display differently.

Content Area
The left and middle columns of the homepage are configured to pull categories, which makes it very easy to change and customize. I figured that this was the best approach since most newspapers operate with the concept of “sections” like my demo site does.

There’s really only one piece of code that dictates what is shown on the homepage – what you will want to do is open the home.php file, and identify the various containers that are displayed on the home page. The piece of code that will become your best friend is this:

<?php $recent = new WP_Query("cat=10&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>

The cat=10 piece of code is where you can select which category to show in each area – just replace 10 with the category ID that you want to display. This is how you can display the latest post of different categories down the middle column.

The showposts=10 piece of code is where you can select how many posts of that category you want to display. If you want to display 5 posts from category 3, then your code would look like (“cat=3&showposts=5”).

How to Use the Single Page 2 Layout

September 7, 2007

Inside any of our Gambling Themes download you will find an index.php file, and an index-2.php file. As of right now, the index.php file is the one that affects the way that your post pages look. These currently will have the same layout as the Gambling Theme demo Single Page, which have 2 columns.

However, there was a request for me to supply a 3-column version of a post page, which has the layout of the Single Page 2 on the demo site. If you are looking to have 3 columns on your post pages, you will want to use the Single Page 2 layout, which is controlled by the index-2.php file.

Basically what you will want to do is take the index.php and rename it to something else, so that you can take the index-2.php file and rename it index.php. (The main reason you want to rename the original index.php file is to avoid saving over it when you rename the index-2.php file to index.php.)

Once you have renamed the index-2.php file to index.php, upload it over the existing one on your server. Now, when you view your post pages, they will have the 3-column layout, as opposed to the 2-page layout.

How to Create an Archives Page

September 5, 2007

The Gambling Themes download is supplied with an “Archive” page template which will create a page that looks like this. This is an easy thing to create, and only requires a few simple steps.

The only thing you need to do while creating a page, is to enable the Archive Page template. You can name your archive page anything you want – for instance Archives, Sitemap, Library, etc. See the screenshot below for where the Archive Page template can be selected:

How to Create an Archives Page

You do not need to type anything in the text area while creating your page – simple fill in the page title box and select the Archive Page template. Publish the page and you should have your Archive page ready to go!