Page 1 of 1
HELP!!! Total Newbie here
Posted: Sun Apr 13, 2003 9:39 am
by treelo
Ive just uploaded and created a portal in which my website is now incorporated with the forums.
http://www.blue-all-over.co.uk
i can edit the html ellements of the site but i now want to go that little bit further and add pages to the site.
i know i have to edit one of the php files but im not sure which one..here is what i want to be able to do
Keep the logo on the page with nav bar on right hand side but have the pages on my site load into the bit where all the info is currently
if anyone could point me to a tutorial or help me out id be very grateful[/url]
Posted: Sun Apr 13, 2003 12:45 pm
by McGruff
Suppose you create a php file which draws the header and sidebar and creates an empty table cell in the main body of the page (you can also use styles for page layout although I'm not quite convinced if CSS positioning attributes are widely enough supported yet).
If the above file has some code to process the query string, it can use vars passed in the query string to call up a script which draws the rest of the page.
For example: http://www.your_site.com/index.php?area=news&op=list&id=latest
The index.php script first draws the header and sidebar, then includes a php file given by $area - news.php in this case. A switch/case in news.php (on the $op var) can specify which function to run and any other vars present can be passed to the function as arguments. The functions would output html which slots into the rest of the page.
I tend to concatenate variables passed in the query string like this then explode() them later:
index.php?page=news_list_latest
It's a bit neater and also just a step away from the mod rewrite trick - try a search.
But, just how long can you hang on to Wayne Rooney?

Posted: Sun Apr 13, 2003 12:56 pm
by treelo
hes goin nowhere mate
but thanks for that
ill keep reading it until i go dzzy just trying to decipher it

Posted: Sun Apr 13, 2003 1:15 pm
by treelo
how lost am i
ive read through that a few times now and its gettin harder to understand with each one
Posted: Sun Apr 13, 2003 1:19 pm
by McGruff
How have you built the site so far? Are you using a CMS or your own php code?
Posted: Sun Apr 13, 2003 2:18 pm
by treelo
used a portal!
ive had to edit bits of it to get it looking like i want but they actual layout of it is pre-built
Posted: Sun Apr 13, 2003 4:43 pm
by McGruff
If you're using a CMS program there should be some options in the admin area to add new pages to the site. Try looking on the program's home page for a discussion forum or FAQ to explain how it works.
Posted: Mon Apr 14, 2003 5:36 pm
by m3mn0n
All you need is a
nuke.

Posted: Mon Apr 14, 2003 5:44 pm
by McGruff
Oromian wrote:All you need is a
nuke.

Aaaargh no! Nuke looks a real mess to me - various security holes for example. So bad in fact that I decided to learn php and write my own. PostNuke might be better - not really sure.
That's my humble opinion anyway - maybe others can correct me.
Posted: Tue Apr 15, 2003 6:38 am
by r337ard
you see phpnuke vunerabilities all the time if you keep up on bugtraq. most arnt anything major and to the best of my knowledge they are promptly fixed when bugs/veunerabilities are discovered.
the main problem may be keeping on top of the bugs and knowing if they apply to you. as im sure you dont want to have to load another nuke release every other week and make sure everything you've set up is workin like it should.
Posted: Tue Apr 15, 2003 10:19 am
by m3mn0n
I retract my previous statement.
