Jump to content

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!
Link to comment
https://forums.phpfreaks.com/topic/20411-need-a-script/
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.
Link to comment
https://forums.phpfreaks.com/topic/20411-need-a-script/#findComment-89929
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 ...
Link to comment
https://forums.phpfreaks.com/topic/20411-need-a-script/#findComment-90283
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]
Link to comment
https://forums.phpfreaks.com/topic/20411-need-a-script/#findComment-90461
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.