PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
whiteknight0571
Hangin' Around


Joined: May 05, 2004
Posts: 38
Location: PA USA

PostPosted: Thu May 27, 2004 4:47 pm Reply with quote Back to top

Hello to All,

First, let me say thanks to Raven, Chatserv, and the rest of the community here at Ravens PHP Scripts for such an informative and helpful collection of information on PHPNuke. I have been coming here for quite some time, and mostly spend HOURS at times searching for information to solve problems I am having with PHPNuke issues. Since I am not a PHP guru like most of you, many times I am not able to contribute help, or answer questions, and I appologize for that, but wanted to let everyone know that your time and answers are GREATLY appreciated. I kind of feel bad for posting a question when I have been able to do so little to contribute here, but as this is my CHOSEN PHPNuke "How To" site, I have little choice but to post my question here Wink Besides, I like the personal touch here as oposed to the high commercialization of PHPNuke.org and NukeCops. Very Happy

So on with my question already LOL. I have two questions.

#1. I am fairly familiar with the parts of PHPNuke that generate the meta tags for pages, but not being a programmer, I am unsure of how to approach my problem. I am looking for a tool that allows you to customize the meta tags based on the pages being viewed. Is ANYONE aware of a module or block that allows this? I do not wish to remove the PHPNuke credits in the meta tags, just a way to be able to customize the content tag to improve search engine results on a page by page basis, or on a section by section basis.

#2. I have spent HOURS going through the module creation process. I presently have two folders I would like to "modulize" without having to write PHP code for each page I want included. I have followed the PHPNuke How To on how to include pages in the portal, and have created the folders and initial index.php page, but I am having problems with the links on the internal pages, and can not figure out why. I have followed the rewrite for the new URL links and included the accept file protocals as outlined, but still am having no luck getting anything other than the initial default page to show. When a link is clicked on that page, it reloads the default page. The code of the initial index.php page is as follows:

Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* PHP-Nuke-HOWTO module for PHP-Nuke */
/* */
/* Copyright (c) 2003 index.php */
/* by Chris Karakas */
/* http://www.karakas-online.de */
/* */
/* See licence.html for the Licence of the other files */
/* distributed together with this index.php file. */
/* */
/* 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("modules.php", $PHP_SELF)) {
die ("You can’t access this file directly...");
}
$index = 0; // 0 : do not show right blocks - 1:show right blocks
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
$ACCEPT_FILE[’Advanced_Concrete.htm’] = ’Advanced_Concrete.htm’;
$ACCEPT_FILE[’Alvin_Reiff.htm’] = ’Alvin_Reiff.htm’;
$ACCEPT_FILE[’Big_Country_Radio.htm’] = ’Big_Country_Radio.htm’;
$ACCEPT_FILE[’body_mind_soul.htm’] = ’body_mind_soul.htm’;
$ACCEPT_FILE[’Bridge_Street_Auto.htm’] = ’Bridge_Street_Auto.htm’;
$ACCEPT_FILE[’BZmotors.htm’] = ’BZmotors.htm’;
$ACCEPT_FILE[’Cabinet_Surplus.htm’] = ’Cabinet_Surplus.htm’;
$ACCEPT_FILE[’classic_craft_storage.htm’] = ’classic_craft_storage.htm’;
$ACCEPT_FILE[’Classic_Woodburners.htm’] = ’Classic_Woodburners.htm’;
$ACCEPT_FILE[’Conrads_Lawn_Care.htm’] = ’Conrads_Lawn_Care.htm’;
$ACCEPT_FILE[’db_insurance.htm’] = ’db_insurance.htm’;
$ACCEPT_FILE[’Equipment_Rental.htm’] = ’Equipment_Rental.htm’;
$ACCEPT_FILE[’Garages_Plus.htm’] = ’Garages_Plus.htm’;
$ACCEPT_FILE[’Glen_Gery_Brick.htm’] = ’Glen_Gery_Brick.htm’;
$ACCEPT_FILE[’haubert_homes.htm’] = ’haubert_homes.htm’;
$ACCEPT_FILE[’Hidden_Stream_Farm.htm’] = ’Hidden_Stream_Farm.htm’;
$ACCEPT_FILE[’Hilly_Ridge.htm’] = ’Hilly_Ridge.htm’;
$ACCEPT_FILE[’HL_Klose.htm’] = ’HL_Klose.htm’;
$ACCEPT_FILE[’John_Griffith.htm’] = ’John_Griffith.htm’;
$ACCEPT_FILE[’johns_carpet_furniture_cleaning.htm’] = ’johns_carpet_furniture_cleaning.htm’;
$ACCEPT_FILE[’Kratzer_Insurance.htm’] = ’Kratzer_Insurance.htm’;
$ACCEPT_FILE[’Little_Stitches.htm’] = ’Little_Stitches.htm’;
$ACCEPT_FILE[’Moyer_Electronic.htm’] = ’Moyer_Electronic.htm’;
$ACCEPT_FILE[’Mountain_Side_4x4.htm’] = ’Mountain_Side_4x4.htm’;
$ACCEPT_FILE[’mountain_view_indoor_archery.htm’] = ’mountain_view_indoor_archery.htm’;
$ACCEPT_FILE[’Olde_Stone_Farmhouse.htm’] = ’Olde_Stone_Farmhouse.htm’;
$ACCEPT_FILE[’Open_Door_Gallery.htm’] = ’Open_Door_Gallery.htm’;
$ACCEPT_FILE[’rainbow_connection.htm’] = ’rainbow_connection.htm’;
$ACCEPT_FILE[’Rental_Stop.htm’] = ’Rental_Stop.htm’;
$ACCEPT_FILE[’Sanders_PC.htm’] = ’Sanders_PC.htm’;
$ACCEPT_FILE[’schoolhouse_music.htm’] = ’schoolhouse_music.htm’;
$ACCEPT_FILE[’shady_oak_furniture.htm’] = ’shady_oak_furniture.htm’;
$ACCEPT_FILE[’state_farm_insurance.htm’] = ’state_farm_insurance.htm’;
$ACCEPT_FILE[’Stauffers_Dry_Goods.htm’] = ’Stauffers_Dry_Goods.htm’;
$ACCEPT_FILE[’sunbury_market_house.htm’] = ’sunbury_market_house.htm’;
$ACCEPT_FILE[’susquehanna_sports_place.htm’] = ’susquehanna_sports_place.htm’;
$ACCEPT_FILE[’village_merchants.htm’] = ’village_merchants.htm’;
$ACCEPT_FILE[’walters_lawn_garden.htm’] = ’walters_lawn_garden.htm’;
$ACCEPT_FILE[’Wayne_Stahl.htm’] = ’Wayne_Stahl.htm’;
$ACCEPT_FILE[’Williams_Jewelers.htm’] = ’Williams_Jewelers.htm’;
$ACCEPT_FILE[’Woolrich_Company_Store.htm’] = ’Woolrich_Company_Store.htm’;

OpenTable();
$php_ver = phpversion();
$php_ver = explode(".", $php_ver);
$phpver = "$php_ver[0]$php_ver[1]";
if ($phpver >= 41) {
$page = $_GET[’page’];
} else {
$page = $HTTP_GET_VARS[’page’];
}
$pagename = $ACCEPT_FILE[$page];
if (!isSet($pagename)) $pagename = "tiptable.htm"; // default file
include("modules/Tips_on_Tables/$pagename");
CloseTable();
include("footer.php");
?>


The initial page code is as follows:

Code:
<!doctype html public "-//w3c//dtd html 3.2//en">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>TipsOnTable</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
</head>

<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">

<ul>   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Advanced_Concrete.htm">Advanced Concrete</a>
      <li></li><a href="modules.php?name=Tips_on_Tables&amp;page=Alvin_Reiff.htm">Alvin Reiff Woodworking</a>
</ul>
<ul>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Big_Country_Radio.htm">Big Country Radio</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=body_mind_soul.htm">Body Mind ~N~ Soul</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Bridge_Street_Auto.htm">Bridge Street Auto Body</a>
      <li><a href="modules.php?name=Tips_on_Tables&amp;page=BZmotors.htm">B.Z. Motors Group</a>
</ul>
<ul>   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Cabinet_Surplus.htm">Cabinet Surplus</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=classic_craft_storage.htm">Classic Craft Storage Buildings</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Classic_Woodburners.htm">Classic Woodburners</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Conrads_Lawn_Care.htm">Conrads Lawn Care</a>
</ul>
<ul>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=db_insurance.htm">D&amp;B Insurance</a>
 
</ul>
<ul>   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Equipment_Rental.htm">Equipment Rental</a>
</ul>

<ul>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Garages_Plus.htm">Garages Plus</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Glen_Gery_Brick.htm">Glen Gery Brick</a>
</ul>
<ul>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=haubert_homes.htm">Haubert Homes</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Hidden_Stream_Farm.htm">Hidden Stream Farm Home & Gifts</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Hilly_Ridge.htm">Hilly Ridge Sales & Service</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=HL_Klose.htm">H.L. Klose & Sons</a>
</ul>

<ul>   
   
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=John_Griffith.htm">John D. Griffith, Developer</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=johns_carpet_furniture_cleaning.htm">John's Carpets</a></li>
</ul>
<ul>   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Kratzer_Insurance.htm">Kratzer Insurance</a>
</ul>
<ul>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Little_Stitches.htm">Little Stitches... Again!</a>
</ul>
<ul>   
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=Moyer_Electronic.htm">Moyer Electronic Supply</a>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=Mountain_Side_4x4.htm">Mountain Side 4x4 Inc.</a>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=mountain_view_indoor_archery.htm">Mountain View Indoor 3D Archery Range</a>
 
</ul>

<ul>   
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Olde_Stone_Farmhouse.htm">Olde Stone Farmhouse</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Open_Door_Gallery.htm">Open Door Gallery</a>
</ul>

<ul>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=rainbow_connection.htm">Rainbow Connection</a></li>   
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Rental_Stop.htm">Rental Stop</a>
</ul>
<ul>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Sanders_PC.htm">Sanders PC Plus</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=schoolhouse_music.htm">Schoolhouse Music</a>
   
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=shady_oak_furniture.htm">Shady Oak Furniture</a>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=state_farm_insurance.htm">State Farm Insurance</a>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=Stauffers_Dry_Goods.htm">Stauffers Dry Goods</a>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=sunbury_market_house.htm">Sunbury Market House</a>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=susquehanna_sports_place.htm">Susquehanna Sports Place</a>   
</ul>
<ul>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=village_merchants.htm">Village Merchants</a>
  </ul>
<ul>   
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=walters_lawn_garden.htm">Walter's Lawn & Garden Equipment</a>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=Wayne_Stahl.htm">Wayne M. Stahl Contractor</a>
  <li><a href="modules.php?name=Tips_on_Tables&amp;page=Williams_Jewelers.htm">Williams & Williams Jewelers</a>
   <li><a href="modules.php?name=Tips_on_Tables&amp;page=Woolrich_Company_Store.htm">Woolrich Company Store</a>
</ul>
<ul></ul>
<ul></ul>
<ul></ul>



</body>

</html>


Once again, your help is greatly appreciated.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
whiteknight0571
Hangin' Around


Joined: May 05, 2004
Posts: 38
Location: PA USA

PostPosted: Thu May 27, 2004 5:27 pm Reply with quote Back to top

OK, I feel a bit stupid now Embarassed #2 solved. Little did I realize, that when copying and pasting from PDF to PHP file, I was geting a wrong character for the single quotes. Went through the entire index.php and changed the wrong character to the right single quote character, and voila, it all works now. Just have to change the image paths on the htm files, and all will be just peachy with question #2 Laughing

Thanks to all who have viewed the questions and taken time out of their schedules. As for question #1, that still eludes me. So any help for that will be greately appreciated.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Thu May 27, 2004 6:29 pm Reply with quote Back to top

There is a Dynamic Meta Keys addon but I don't remember who was last maintaining it. It was called DYNMETAKEYS and I think was started back in the 5.5 days so it might take a little searching to find the correct updated version. Quick search shows one version available at
Only registered users can see links on this board!
Get registered or login to the forums!

I think the most recent updated version is part of this package
Only registered users can see links on this board!
Get registered or login to the forums!


There is also a Dynamic Page Title addon but I've never tried that one to see if it works well ect...
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
whiteknight0571
Hangin' Around


Joined: May 05, 2004
Posts: 38
Location: PA USA

PostPosted: Thu May 27, 2004 7:02 pm Reply with quote Back to top

Thanks Six, much appreciated. I have a local test server running, so I just downloaded all the links you mentioned. I'll be glad to post the results back here if anyone is interested. Very Happy As for #2 above, it's HALF fixed. Now I have broken image links. Presently, I'm searching around to see how to fix it LOL.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Thu May 27, 2004 9:01 pm Reply with quote Back to top

If all else fails hard code them with the full url
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
whiteknight0571
Hangin' Around


Joined: May 05, 2004
Posts: 38
Location: PA USA

PostPosted: Thu May 27, 2004 10:45 pm Reply with quote Back to top

Naaa, I just looked at where Nuke was TRYING to call the images from given the base setup, and then moved the images to the appropriate folder and subfolder scheme. Seems that Nuke likes to call images from the images folder in root setup. Couldn't get around it, not even by using the root path to the images. It works now, I've just got a few extra folders in my main images folder Very Happy
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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