Webpit Enhanced Dolphin Package coming

by @ 9:56 pm on January 31, 2008.  Filed under Dolphin

I’m putting together a release of Dolphin containing all of my patches which includes:

– RSS Feeds for blogs
– RSS Feeds for articles
– SEO article urls
– Adsense ad placements
– Free video player
– Free video upload
– Lots of bug fixes (so many I forgot what they were)
– CSS fixes (left justify text)
– Cell phone image capture (users can send pics from their phone to an email address, and this script captures the images and uploads them to the user’s profile)
– Better page titles

There are so many changes, it might be impossible to patch an existing install, especially if you have already modded it. But I’ll know more after I do a Diff between the main source and my source.

If you are interested in this package post a message in the forums and that will help me know how many people will want this.

Make more profits from wordpress and adsense

by @ 5:39 pm on January 22, 2008.  Filed under On Blogging, WordPress

By default, when you install a wordpress blog and start blogging, your home page displays all of your recent posts. However, with Adsense, you can only display 3 ads per page. Most Wordpress users put an ad at the end of each article. If you do this on your home page, you can only display three articles so the theory is why display all of them on one page?

This hack is part one of two.

The initial fix is easy. Open your Wordpress Theme Editor (wp-admin -> Presentation -> Theme Editor ) and click on the right side menu item titled “Main Theme Template”

The line you need to fix looks like this:

<?php if (have_posts()) { while (have_posts()) { the_post(); ?>

If we change this line to the following:

<?php $x=0; if (have_posts()) { while ($x++<3 && have_posts()) { the_post(); ?>

Then your main page will only display the latest three entries. Your users can still browse your other articles by clicking categories and archive links.

Part two of this hack will provide you with a nifty little Post Pager that will list links to all of your other recent posts at the end of the main page.

Hacking Dolphin - Smart title tags for articles

by @ 9:44 pm on January 16, 2008.  Filed under Dolphin, PHP, Social Networking

Heres a Tip for you Dolphin hackers

The title tags for Dolphin articles do not reflect the actual article title. This is important for search engine indexing. So here’s how to fix it:

This hack requires modifying two files, first:

articles.php

line 33:
$_page_cont[$_ni]['page_main_code'] = PageCompArticles();

The PageCompArticles() function is responsible for calling subordinate code that displays the article, article list, etc. You can see in the code that it is called first before this:

$_page['header'] = _t( “_ARTICLES_H”, $site['title'] );

This line sets up the <title></title> tag of the page. What we want to do is move this line above line 33:
$_page['header'] = _t( “_ARTICLES_H”, $site['title'] );
$_page_cont[$_ni]['page_main_code'] = PageCompArticles();

Now, when PageCompArticles() is called, the title of the page is already set, so we can feel free to modify it inside the next file:

inc/classes/BxDolArticles.php

Depending on your code, we are looking for about line 230 for this line:

$aArticle = db_arr( $sArticleQuery );

It should be inside the getArticle function.

We want to add the following after the above line:
$sTitle = process_line_output( $aArticle['Title']);
global $_page;
$_page['header']=$sTitle .’ - ‘ .$_page['header'];

Now, when our users visit our article page it will have a page title like so:

Another great article title - mysite title

Also, I suggest that you always put yoursite.com as part of your site title. So if your actual site title is: Best Darn Website add on ” - bestdarnwebsite.com” to the site title (language settings)

web·pit n. a place of discovery; a repository of information; where coders come for enlightenment; a programmers diary.

internal links:

categories:

search:

archives:

January 2008
M T W T F S S
« Dec   Mar »
 123456
78910111213
14151617181920
21222324252627
28293031  

other:

Great Places

  • websiterepairguys.com
    Millions of websites need fixing. Here's the man for the job!
  • mydnsmanager.com
    Free DNS hosting, domain parking and domain name research tools
  • phpfreaks.com
    Excellent resource for all things PHP
  • boonex.com
    Boonex makes great, FREE, social networking software called Dolphin Smart Community Builder

About Me

My name is Mark Williamson and I am somewhat of a PHP freelancer and all around hacker. I have many years of experience in software development, covering a wide variety of languages, databases, and functional areas. From website content management systems, medical billing, website load testing, billing automation, and sales automation, I can pretty much say I've seen a few million lines of code. I am usually available for after-hours contract work (I have a full time day job). If you need assistance implementing ideas for your website, contact me and I'll give you an honest opinion on what it would take. You can see my other website at WebsiteRepairGuys .com (link at the top of this column).
All content Copyright (c) 2008, Mark Williamson