PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
msimonds
Regular
Regular


Joined: Jul 15, 2003
Posts: 56
Location: Dallas

PostPosted: Mon Jul 19, 2004 3:15 pm Reply with quote Back to top

I am trying to write a modification so that each forum used by forum_id has its own meta description. I am not getting any results and would like to see if anyone could help me out. Here is the meta.php that I have been working on!

Quote:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

if (eregi("meta.php",$_SERVER['PHP_SELF'])) {
Header("Location: ../index.php");
die();
}

##################################################
# Include for Meta Tags generation #
##################################################
global $phpbb_root_path, $nuke_root_path, $nuke_file_path, $php_root_dir, $module_name, $nukename, $pass, $nukename, $sitename;
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset="._CHARSET."\">\n";
echo "<META HTTP-EQUIV=\"EXPIRES\" CONTENT=\"0\">\n";
echo "<META NAME=\"RESOURCE-TYPE\" CONTENT=\"DOCUMENT\">\n";
echo "<META NAME=\"DISTRIBUTION\" CONTENT=\"GLOBAL\">\n";
echo "<META NAME=\"AUTHOR\" CONTENT=\"$sitename\">\n";
echo "<META NAME=\"COPYRIGHT\" CONTENT=\"Copyright (c) 2004 by $sitename\">\n";
require_once("/home/enginyr/public_html/club/modules/Forums/nukebb.php");
if($module_name=="Forums"){
$sql = "SELECT forum_name FROM ".$prefix."_bbforum WHERE forum_id='$f'";
switch($f){
case 1:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"General Discussion\">\n";
break;
case 2:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Classfieds\">\n";
break;
case 3:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Los Angeles Meets\">\n";
break;
case 4:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Seattle Meets\">\n";
break;
case 5:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Install instructions\">\n";
break;
case 6:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Off topic\">\n";
break;
case 8:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"IS300\">\n";
break;
case 9:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"GS300\">\n";
break;
case 10:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"RX300\">\n";
break;
case 11:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"LS400\">\n";
break;
case 12:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"ES300\">\n";
break;
case 13:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"SC300\">\n";
break;
case 14:
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Thanks\">\n";
break;

}

}else{
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Join Lexus Clubs Lextasy. Club Lextacy is where you can go to ask questions about the latest aftermarket parts for your Lexus RX300 ES300 IS300 GS300 GS400 or GS430 Los angeles Lexus club, lexus forum, lexus club, is300 forum, gs400 club, aftermarket parts accessories forum, club lextasy, clublextasy, lextasy, lextacy\">\n";
}
echo "<META NAME=\"ROBOTS\" CONTENT=\"INDEX, FOLLOW\">\n";
echo "<META NAME=\"REVISIT-AFTER\" CONTENT=\"1 DAYS\">\n";
echo "<META NAME=\"RATING\" CONTENT=\"GENERAL\">\n";

###############################################
# DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE! #
# YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS. #
###############################################

echo "<META NAME=\"GENERATOR\" CONTENT=\"PHP-Nuke $Version_Num - Copyright 2003 by
Only registered users can see links on this board!
Get registered or login to the forums!
">\n";

?>


can anyone please take a look at it! I would really appreciate the help


Thanks
Mike
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum