Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Admin32
Regular
Regular



Joined: Sep 14, 2003
Posts: 74

PostPosted: Thu Mar 13, 2008 3:59 pm Reply with quote

Hi everyone,

My site is currently running off phpnuke v6.9 and I'd like some advice on which way is best to include custom php files.

I write networking articles (php files) for my website which I then publish online for the community to read. Until now, when creating a new php file, I would add the following php code at the beggining, to force phpnuke 'wrap around' the page I wrote, thus, giving the impression the page loading within phpnuke:

<?php
include_once("header.php")
?>

Because I understand this is not the best way to do the job, I'm wondering if anyone else can suggest a better way of doing this;

The php files I create contain <head> and <body> <meta> tags, just like a normal html file, but most of these tags are lost when 'wrapping' the file with the phpnuke engine as it places its own static meta tags every time, thus not helping search engines 'read' the meta tags of the articles I write.


The goal is to use a method that will be more user friendly to search engines and get each article's meta tags visible while still loading within phpnuke!

Your suggestions are much appreciated!

Many thanks.

_________________
___________________
Chris Partsenidis
Founder & Senior Editor [ Only registered users can see links on this board! Get registered or login! ]
___________________ 
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Mar 13, 2008 4:59 pm Reply with quote

Just curious why don't you use the content or even the news module for articles?

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu Mar 13, 2008 8:42 pm Reply with quote

Well the meta data is loaded in includes/meta.php

You could probably write a variable to load your custom meta data first. And then include header.php (which will call meta.php at some point)

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Thu Mar 13, 2008 9:00 pm Reply with quote

Oh sorry, you wanted better meta tags. There is talk of adding that facility to a future version. I believe I've seen add-ons floating around that do this (wasn't the author of one slaytanic_wehrmact?).
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©