<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:directory file (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:directory file
#1623
Tim (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
directory file 1 Year ago Karma: 0  
In the directory file you have

if(!empty($PATH_INFO)){
$url_array = explode("/",$PATH_INFO);
if ($url_array[1] == "new.html"{$show="new";}
if ($url_array[1] == "popular.html"{$show="pop";}
if ($url_array[1] == "cool.html"{$show="cool";}
if ($url_array[1] == "add.html"{$show="add";}
if ($url_array[1] == "about.html"{$show="about";}
if ($url_array[1] == "review.html"{$show="review";}
if ($url_array[1] == "update.html"{$show="update";}
if ($url_array[1] == "owner.html"{$show="owner";}
if ($url_array[1] == "lost.html"{$show="lost";}
if ($url_array[1] == "review_add.html"{$show="review_add";}
if (is_numeric (ereg_replace (".html", '', $url_array[1]))){
$PID = (ereg_replace (".html", '', $url_array[1]));
}
} else {$PID ="";}


Is there any way of adding adition menu options or changing them... for example the about.html points to the about section of the website, is there any way of changing this so it points a a new .html created by us? and can you add new files to it?

thanks...

If the answer isn't that easy, how can you major edit the about file, like add tables and columns etc, as it only seems to like text...

thanks again
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1624
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:directory file 1 Year ago Karma: 9  
Anything is possible.

Can I add new pages ? Yes.

Can I explain step by step how to add new pages ? Sorry, no.

To explain it, I'd have to go through it, documenting the steps and then post them here. That is outside the level of support I can offer for free.

You can edit the about.html file however you like , just keep in mind, it is HTML wrapped as PHP variables

You can also use about.html as an example to use in creating a new custom page.
http://www.dew-code.com/source/?filename=./dew-newphplinks.v.2.1.0.1b.sef/include/about.php

If quotes are used to define the variable, quotes within the variable must be escaped with a backslash.

Code:

$htmlsrc = $table2 . "<tr><td class=\"regularText\"><br />";
Appending more HTML with .=
Code:

$htmlsrc .="<blockquote>These links to third party sites are ...
Finally, print out the varaible we created and erase it,
Code:

echo table("100%","center","",$htmlsrc); unset($htmlsrc);
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1625
Tim (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Re:directory file 1 Year ago Karma: 0  
thank you for your help I will have a go and let you know
thanks again
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008