Jump to content


Photo

PHP navigation big problem.


  • Please log in to reply
6 replies to this topic

#1 lyall

lyall
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 15 July 2006 - 02:28 PM

Ok I am using this code for my php navigation script:

<?
if (isset($_GET['page']) && isset($_GET['id']) && file_exists('mods/'.$_GET[id].'/'.$_GET[page].'.php')) {
include 'mods/'.$_GET[id].'/'.$_GET[page].'.php';
}
else {
echo "Page Not Found";
}
?>

And it requires me to have a mods folder on my server and then any folders and filse inside this /mods folder is included in my frame and thats how the site works.

But I have installed a news script and its all working good but when you click comments it opens in a new window and the comments file is in another directory, is there anyway I can get the comments to display in my site frame.

If you go to this url http://media.bloodyrandom.com/funkrush/index2.php?id=pages&page=newsupdates you will see what I mean, click on view comments(3), (http://media.bloodyr...mments&newsid=1)
This is the page I need included in the frame.

PS nobody knows about this site its currently under construction and its going to rock when it comes out so please dont go posting this link around :)

#2 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 15 July 2006 - 02:47 PM

What blogware are you using, or did you write it yourself?

Why not just include() the comments?

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#3 lyall

lyall
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 15 July 2006 - 02:50 PM

I am using the http://www.webmobo.com/ news script and I can't just include the comments because the script uses a templating system and its got all sorts of security features so Its complex. the news script is ina different directory.

#4 lyall

lyall
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 15 July 2006 - 03:45 PM

Any ideas?

#5 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 15 July 2006 - 03:51 PM

I think it'd be easier to write your own, since loads of those have all these psycho templates for this and that, and it's a royal pain.

Seriously, if you can't include it, you'd have to go into the templates and code and change around a lot of stuff. I'm unfamiliar with the script, so I don't really know how they do everything...

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#6 lyall

lyall
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 15 July 2006 - 04:57 PM

:-(

#7 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 15 July 2006 - 05:03 PM

To be honest, incorporating existing scripts together that weren't made for each other is HARD. Thats why I'm lame and I dont do it.

Maybe include it within a table? Perhaps the styles wouldn't leave it...I dont know. XD

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users