| |
lionstarr Senior Googler


Joined: 28 Dec 2005
888.00 GC$
Items
|
Posted: Fri Dec 30, 2005 5:17 am Post subject: SEO PhpBB Mod |
|
|
|
Hello,
today i found this!
in the internet. It's a ( german ) Seo mod for phpBB.
What do you think about it ?
D you mean it's good?
Post your feedback,
greetings,
lionstarr _________________ Why do it easy, if it's possible to do it complicated!
www.lionstarr.de |
|
| Back to top |
|
|
jordydme Noogle


Joined: 08 Aug 2005
355.30 GC$
Items
|
Posted: Fri Feb 10, 2006 6:19 am Post subject: |
|
|
|
Couldn't read a word of it then i realized i don't know German  |
|
| Back to top |
|
|
kevgibbo Platinum Member

Joined: 08 Feb 2006 Location: Brisbane, Australia 9222.60 GC$
Items
|
Posted: Fri Feb 10, 2006 6:29 am Post subject: |
|
|
|
I found this archiving php code to be very useful for helping to get all of a client's forum pages indexed by Google.
You'll need to create an archive.php page which is linked to ideally from the header or footer section of the forum and use this code:
| Code: | <html>
<head>
<title>You phpBB Title</title>
</head>
<body>
<?php
// phpBB archiver generated config file
// Do not change anything in this file!
$dbhost = 'localhost';
$dbname = 'your_db_name';
$dbuser = 'your_db_username';
$dbpasswd = 'your_db_password';
$website = "http://www.yourwebsite.com/";
//============================================================================
// DO NOT TOUCH ANYTHING BEYOND THIS POINT UNLESS YOU KNOW WHAT YOU'RE DOING
//============================================================================
$connection = mysql_connect($dbhost, $dbuser, $dbpasswd) or die(mysql_error());
$db = mysql_select_db($dbname, $connection);
if (isset($_GET["id"]))
{
//=====================================================
// Get Topic Titles and Link to original ViewForum.php
//=====================================================
$q1 = "SELECT * FROM phpbb_topics WHERE forum_id = '" . $_GET["id"] . "'";
$r1 = mysql_query($q1) or die(mysql_error());
if(mysql_num_rows($r1) > '0')
{
while($a1 = mysql_fetch_array($r1))
{
echo "<a href='" . $website . "about.html$a1[topic_id]'>" . $a1["topic_title"] . "</a><br>\n";
}
}
}
else
{
//===========================================
// Get Forum Names and their Descriptions!!
//===========================================
$q1 = "SELECT * FROM phpbb_forums";
$r1 = mysql_query($q1) or die(mysql_error());
if(mysql_num_rows($r1) > '0')
{
while($a1 = mysql_fetch_array($r1))
{
echo "<a href='archive.php?id=$a1[forum_id]'>" . $a1["forum_name"] . "</a><br>" . $a1["forum_desc"] . "<br><br>\n";
}
}
}
?>
</body>
</html> |
_________________ SEO Services UK | Google AdWords Management from a qualified professional |
|
| Back to top |
|
|
jordydme Noogle


Joined: 08 Aug 2005
355.30 GC$
Items
|
Posted: Fri Feb 10, 2006 6:46 am Post subject: |
|
|
|
| so i would copy this code and create an archive.php file. I drop it nto the PHBbb main directory and then create a link to it in the header or footer? Can you be a little more specific? |
|
| Back to top |
|
|
kevgibbo Platinum Member

Joined: 08 Feb 2006 Location: Brisbane, Australia 9222.60 GC$
Items
|
Posted: Fri Feb 10, 2006 8:22 am Post subject: |
|
|
|
| jordydme wrote: | | so i would copy this code and create an archive.php file. I drop it nto the PHBbb main directory and then create a link to it in the header or footer? Can you be a little more specific? |
Yes, that is all you'll need to do. Plus you need to edit your forum database login details. _________________ SEO Services UK | Google AdWords Management from a qualified professional |
|
| Back to top |
|
|
Sponsored Links
|
Posted: 4 Dec 2008 2:32 am Post subject: Advertisements |
|
|
|
|
|
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.
alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden
|
|
|
|
|