Jump to content

Archived

This topic is now archived and is closed to further replies.

ganich

Need A script!

Recommended Posts

Hello,
        I need some help from you guys!

The problem is that when somebody hotLinks to my site pages it opens like this
http://gaming-nm.com/games/playstation_2/index.html

http://gaming-nm.com/index.html < the main layout things don't appear with the page, i want to use a PHP script which should attach index.html (.php wtever) with other pages..

like when i open http://gaming-nm.com/games/playstation_2/index.html it should open with full layout but orignally the page should only contain the current info but it should open with index.html page..

Please guide me step by step what should i do..which script should i use!

Share this post


Link to post
Share on other sites
We're not a script factory and I don't think anyone is going to lead you through this step-by-step.  Do you have any PHP experience?

Share this post


Link to post
Share on other sites
Not much..

the links become like this after the code > index.php?affiliates/index ..if you want to help thts great if you dont want to its ok

Share this post


Link to post
Share on other sites
It's not that I don't want to help.  We're here to help when you run into snags with scripts you wrote.  Not to write them for you.  I suggest  you start by trying something yourself and asking questions when you get stuck.  Either that, or head over to the main site or to somewhere like hotscripts to grab one that is pre-made.

Share this post


Link to post
Share on other sites
what is it that you exactly need now i was a bit confused
because if i can help i will

Share this post


Link to post
Share on other sites
I have a website which is fully made in HTML. I have used frames. You can visit it www.gaming-nm.com, all the pages open in one frame. Try opening some links there.

Now whenever somebody directlinks to my pages it only opens the content page but not with layout because the layout is only available in Index.html.

Now in PHP i heard that you can remove frames and can us (include wtever.php type of code).

i want such system in PHP by which i can create alot of pages with content but whenever somebody will open it ..it will open with the full layout..i hope you get me...

my other questionis that can i have such links for my navigation. www.gaming-nm.Com/index.php?home ...

Share this post


Link to post
Share on other sites
so you are talking about includes
where the you make a lot of pages that are just text
but have the full layout

Share this post


Link to post
Share on other sites
What you're looking for is JavaScript.  I used to use something similar that did the opposite.  If somone loaded my page inside a frame, my page detected it was in the frame and broke out.  Yours needs to check if it's in a frame, and if it isn't to frame itself.

A google for [url=http://www.google.co.uk/search?q=Javascript+%2Bframes+%2Bbreakout]javascript +frames +brakeout[/url] may point you in the right direction, even if it's not quite what you want.

I attach a zip file containing the following.

frameset.htm
header.htm
nav..htm
page 1.htm
page 2.htm
page 3.htm
link.htm

If you open page2.htm or page3.htm directly they will load the frameset and themselves into the main frame.

Regards
Rich

[attachment deleted by admin]

Share this post


Link to post
Share on other sites
You should really be asking this in the Layout forum, not the PHP Help forum.

Did the code I posted help at all?

Regards
Rich

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.