06.29.07

Remove timestamps from phpbb

Posted in Tutorials at 10:44 am

I am currently setting up a forum for a client. The client wanted me to take out post timestamps because he did not want people to track when he made posts. It was also for other users so nobody got in trouble for making forum posts at work. I could not find much on the web on how to do this so here is what I did. There may be more files that need this done. These were all I could find.

#
#—–[ OPEN ]——————————————
#
index.php
viewtopic.php
search.php
viewforum.php

#
#—–[ FIND ]——————————————
#
$post_date = create_date(

#
#—–[ AFTER, ADD ]——————————————
#
$post_date = substr($post_date,0,11);

#
#—–[ SAVE/CLOSE ALL FILES ]———————
#
# EoM

Technorati Tags: , , ,

06.21.07

Search Engine Friendly URL’s - coldfusion, cold fusion, CFML)

Posted in SEO, Tutorials at 4:19 pm

I have a client that has a site in coldfusion and I needed to fix their URL’s so they are search engine friendly. I don’t have access to the server so I needed a coldfusion solution. What I wanted was to make it so there were no ?, &, or = signs in the URL and convert them to /’s. I also wanted to 301 redirect the old URL’s to the new URL’s. Here is what I came up with

<cfset urlstring = cgi.path_info>
<cfloop from="1" to=#ListLen(urlstring,"/")# index="i">
<cfif i mod 2>
<cfset paramName = "URL." & ListGetAt(urlstring,i,"/")>
<cfelse>
<cfparam name="#paramName#" default="#ListGetAt(urlstring,i,"/")#">
</cfif>
</cfloop>

<cfif cgi.QUERY_STRING contains "=">
<cfset moveUrl = #rereplace (cgi.QUERY_STRING,"[=?&]","/","ALL")#>
<cfset newUrl = #cgi.path_info# & "/" & #moveUrl#>
<cfheader statuscode="301" statustext="Moved permanently">
<cfheader name="Location" value="#newUrl#">
</cfif>

Technorati Tags: , , , , , , ,

Multiple File Search & Replace using Dreamweaver MX and regular expressions

Posted in Tutorials, the webmaster series at 7:25 am

About a month ago I needed to do some work on a site where I needed to change a lot of code on every page. I set up IIS on my machine and copied the site to it. I then set up Dreamweaver so that I would work on the site locally. When I opened Dreamweaver I had all the files for my site listed on the left side. I found that when I did a search and replace in Dreamweaver I had the option to do it to the entire current site. That was real cool and I was using for some simple things. I got to a point where I needed to switch out some tags with tags. I like to use normal HTML whenever I can especially header elements.

The problem was that I need to find a string but leave the stuff inside the tags alone. Dreamweaver allows the use of regular expressions. I know very little about regular expressions so I was looking everywhere on how to do this. I finally found one document online that told me how. I can’t remember what that was but here is what I learned. I use (.+) in the search and $1 in the replace. If I want to find <span class=”HeaderL1″>My Heading</span> with <h1>My Header</h1> I search for <span class=”HeaderL1″>(.+)</span> and put <h1>$1</h1> in the replace field. I then tell it to search and replace the entire site. Make sure to have “use regular expressions” checked.

Technorati Tags: , , , , , , , ,

03.30.07

Robots.txt for WordPress blog

Posted in Google, Tutorials, blogging at 7:00 am

There is a nice plugin that help you do “noindex, nofollow” to certain pages to remove lots of duplicate content. These plug ins don’t cover pages that are not in WordPress. Here is an example WordPress robots.txt.

User-agent: *
Disallow: /wp-
Disallow: /feed/
Disallow: /trackback/
Disallow: /rss/
Disallow: /comments/feed/
Disallow: /page/
Disallow: /date/
Disallow: /comments/

I went from 100 pages in the supplemental to 9. This is not for all blogs. Some blogs have different URL’s. Check your supplemental index by typing

site:domain.com –view ***

This will show the pages you have in the supplemental index.

02.03.07

Webmaster Series Part 3 - Simple HTML Page

Posted in Tutorials, the webmaster series at 11:43 pm

Now that you have your domain name registered and your web host set up we need to put up a website. A lot of people like to use WYSIWYG or What You See Is What You Get editors like MS Front Page or Dreamweaver. Those are not necessary. It is not difficult to design your webpages in a nice text editor. I’m going to start out with the basic structure of a website. The most basic web page looks like this.
Read the rest of this entry »

01.25.07

Webmaster Series Part 2 - Web Hosting

Posted in Tutorials, the webmaster series at 2:34 pm

Now that you have your domain picked out you need a place to host your website. If you thought there were a lot of domain registrars wait till you start looking for a web host. There are a lot of them. There are several ways to host your site. Read the rest of this entry »

Saturday 11th of October 2008 01:48:23 PM
expert search engine optimization | www.pack.google.com