Archive for August, 2007

How to redirect phpList to custom subscribe and unsubscribe pages. A phpList hack!

Wednesday, August 29th, 2007 | Permalink

In some cases it is necessary to redirect request from your phpList installation to a website in your cms.
PHPList does provide custom pages, but sometimes it is easier to redirect request to your cms, because in a cms for example, you already have your template and all your informations. You don’t have to write the html code again, you just create a new article and your done. So for all that were looking for an easy way, there is none!

You have to edit php code! Let’s start.

First of all, the confirmation page:

Open the file /lists/index.php at line: 531 (remove the dots in the html tags)

$res = ''.$GLOBALS["strConfirmTitle"].'';
$res .= $data["header"];
$res .= '<.h1>'.$info.'<./h1>';
$res .= $html;
$res .= "<.P>".$GLOBALS["PoweredBy"].'';
$res .= $data["footer"];
return $res;


Modify it by adding the following:

$res = ''.$GLOBALS["strConfirmTitle"].'';
/*$res .= $data["header"];
$res .= '<.h1>'.$info.'<./h1>';
$res .= $html;
$res .= "<.P>".$GLOBALS["PoweredBy"].'<./p>';
$res .= $data["footer"];
*/
$res = header("Location: http://www.spamcollect.com/confirmation_page");
return $res;

Next step is the unsubscription page.
Goto line: 589
There you see the following:


if ($userid) {
$res .= '<.h1>...'.$GLOBALS["strUnsubscribeDone"] ."<./h1><.P>";
$res .= $GLOBALS["PoweredBy"].'<./p>';
$res .= $pagedata["footer"];
return $res;
}


Change it to:


if ($userid)
/*$res .= '<.h1>...'.$GLOBALS["strUnsubscribeDone"] ."<./h1><.P>";
$res .= $GLOBALS["PoweredBy"].'<./p>';
$res .= $pagedata["footer"];*/
$res = header("Location: http://www.spamcollect.com/unsubscribe_confirm");
return $res;

The last one is the subscribe page. To change that, you’ll have to open the file lists/admin/subscribelib2.php.
Goto line: 288


if ($subscribepagedata["thankyoupage"]) {
$thankyoupage = $subscribepagedata["thankyoupage"];
} else {
$thankyoupage = '<.h3>'.$strThanks.'<./h3>'. $strEmailConfirmation;
}


Modify it so it looks like:

if ($subscribepagedata["thankyoupage"]) {
//$thankyoupage = $subscribepagedata["thankyoupage"];
header('Location: http://www.spamcollect.com/subscription_successful');
} else {
//$thankyoupage = '<.h3>'.$strThanks.'<./h3>'. $strEmailConfirmation;
header("Location: http://www.spamcollect.com/subscription_successful");
}


Now you’re done and your users won’t see any pages from phplist.

UPDATE: http://www.spamcollect.com/archives/75

I got Joost and I’m still waiting for the revolution on my screen.

Thursday, August 23rd, 2007 | Permalink

Hey,

Joost picked me to be an beta tester. I’m ready for the revolution… let’s get it started.

After installing the beast, I have a nice gui to select tv stations. There is a racing channel, a football channel, several music channels and a lot more. Oh… I forgot, there is this “show-I-have-ever-waited-for”-Channel WEDDING CHANNEL. Yes, a wedding channel. What the f***.
After selecting a channel, you can select a show you would like to see. I didn’t find anything that is kind of actual. The music channels show only old stuff half-a-year and older, the football channel only show south-american games and the wedding channel… NO COMMENT.

Okay here is the summary, I got a big software package, a tool that let me watch tv shows that not interest me and I’m still waiting for a revolution that where promised to me.

A lot of hype about something that isn’t something new.

First I thought, cool thing, now I’m waiting for the promised revolution.

Is web 2.0 similar to beta? Does that mean web 1.0 is alpha?

Wednesday, August 22nd, 2007 | Permalink

On all these web 2.0 sites like squidoo.com, fon.com, etsy.com, writely, frappr.com you name it there is always this little beta beside the logo.
I’m kind of confused. Does that mean web 2.0 is similar to beta? Is web 1.0 or www similiar to alpha?
What’s the next step? Gamma?

For me beta was always something… I don’t like to say bad, but in fact that means the software isn’t ready, save or whatever.

Or is it more like this in these web 2.0 applications:

Alpha = I have an idea and nothing done yet
Beta = I have an application and I have someone who gives me money
Gamma = I’m one year old now and hey the dotcom bubble didn’t kick me out of business.

I’m confused!
I think I’m DELTA

avoid duplicate content

Thursday, August 16th, 2007 | Permalink

in the last weeks i started to read a lot of seo stuff.
one main thing i learned was to avoid duplicate content.
normally if you have a domain registered at an isp, your website is reachable under www.domain.tld and domain.tld. for google, msn, yahoo and so on, this means there are two sites with the same content. that could affect that your website is getting a bad rank in the searchengine. there is an easy way the remove that.

edit your .htaccess and add the following:

RewriteCond %{HTTP_HOST} !^www\.yourdomain\.tld$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.tld/$1 [R=301,L]

in some cases you’ll have to add this on the top:

RewriteEngine On

compile error on qmail and other djb products like ucspi-tcp, daemontools, djbdns, tinydns

Wednesday, August 1st, 2007 | Permalink

since the new gcc version is out, djb software has its problems with compiling. also netqmail has problems.
something with errno … bla…bla…bla…

there is a simple fix for that.
just go to the sourcecode and find the file conf-cc.
edit it and add the following code :
cc -O2 -include /usr/include/errno.h

now it should work.