Jump to content


Photo

Need A script!


  • Please log in to reply
11 replies to this topic

#1 ganich

ganich
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 11 September 2006 - 06:08 PM

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...on_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...on_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!

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 11 September 2006 - 06:40 PM

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?

Info: PHP Manual


#3 ganich

ganich
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 11 September 2006 - 06:55 PM

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

#4 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 11 September 2006 - 07:01 PM

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.

Info: PHP Manual


#5 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 11 September 2006 - 07:46 PM

what is it that you exactly need now i was a bit confused
because if i can help i will

#6 ganich

ganich
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 12 September 2006 - 09:20 AM

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 ...

#7 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 12 September 2006 - 09:39 AM

so you are talking about includes
where the you make a lot of pages that are just text
but have the full layout

#8 ganich

ganich
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 12 September 2006 - 02:52 PM

yes dude! can ya help?

#9 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 12 September 2006 - 03:11 PM

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 javascript +frames +brakeout 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]
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#10 ganich

ganich
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 12 September 2006 - 06:23 PM

Thanks, All Hands Up! do you have any idea on how to use Css Layout!

#11 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 12 September 2006 - 06:25 PM

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
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#12 honeyboy_20

honeyboy_20
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 12 September 2006 - 06:35 PM

...........?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users