| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Sep 2004
Lives in High Desert, California, USA
27 posts
Gave thanks: 0
Thanked 0 times
|
Help With Includes, Please??
Hello! I run my site with the handy, liteweight cms PHP-Update. I'd like to begin to use Noah's Classifieds, but I need perfect integration with my existing site.
PHP-U divides all of its pages between a pre-made header template and a pre-made footer template. The content actually goes into <td></td> tags, the first being at the end of the header, the second at the start of the footer. I'd like to "inject" Noah's classifieds into that content area, but I can't figure out which part of Noah's controls the rest, or what I might need to change as far as paths in the Noah's configuration. make sense??? I have a beginner's skill with PHP, but I can follow logic well enough. Anyone out there able to help? Here's the site in questions: MWS Media. Thanks very, very much |
|
|
|
|
|
#2 (permalink) |
|
rocks your socks.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
|
This may take more than includes. I too am a beginner with php. If you need perfect integration with it, you'll end up doing way more in the way of conversion to bridge the databases to each other as well as functions. But just to plaster it in, wouldn't something like this work:
<?php include ("whereeverthepathtothe/index.php"); ?> it probably won't but may put you in the right direction, or others who know more than me |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Sep 2004
Lives in High Desert, California, USA
27 posts
Gave thanks: 0
Thanked 0 times
|
I get what you're saying -- I've looked at NoahC (tired of typing it out!) in detail, and the index.php file calls several other files. Might be more complicated than I'm prepared to tackle.
I wish I could find a nice, simple, no-bells-and-whistles classified script... every one I saw tries to throw everything in but the kitchen sink, and really, all I need is simplicity (and template customization.) All I need is everything, as Roddy Frame used to sing... |
|
|
|
|
|
#4 (permalink) |
|
rocks your socks.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
|
where did you find the script? when i'm in search of scripts i go to two places:
http://www.hotscripts.com http://www.php.resourceindex.com these may help you with what you need, if you haven't tried them yet ![]() |
|
|
|
|
|
#5 (permalink) |
|
Surpass Fan
Super #1
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
|
Could just try writing your own... If you truely just want it simple, than that would be really easy. Just incorporate PHP/MySQL and you're set.
__________________
- Evan Charlton | [site] | Server - SH58 |
|
|
|
|
|
#6 (permalink) |
|
rocks your socks.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
|
I always love how many people tell us beginners to write our own of what ever we are doing. I had a guy tell me to write my own forum the other day. I'm lucky to be able to write my own name.
|
|
|
|
|
|
#7 (permalink) | |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
|
Quote:
The reason they recommend coding your own is that integration is often a lot easier. Of course with little knowledge, that's not an option. You could likely get away with modifying the script you're currently using (take pieces that you need, throw it into your own file and hope it works). Then again, that too can be difficult. I'm horrible with integrating anything with anything else. |
|
|
|
|
|
|
#8 (permalink) |
|
rocks your socks.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
|
Yeah, that's exactly right. With the knowledge I have, I'm not able to code anything near that. However, I've got on my list of things I need to do, to write out scripts for the following:
Guestbook Simple Threaded BB (basically a peg board) Form Mail I'm going to write out scripts like these and give them away on my hosting site. Atleast, when I get the chance to sit down and get going on it. |
|
|
|
|
|
#9 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
|
Those are very good scripts to start on. They're somewhat basic and will help you along the way at a later time.
Silly me, I have myself coding a website for my school which will include a student and teacher login where class notices can be posted, along with student marks and lots of other crazy little things. Should be an interesting project and I have until Jan 28th to complete it. Guess it will go under testing 2nd semester. Hope they use it next year. ![]() Comment you code.. Always, always comment, you'll find it very useful later on when you're going through a 500 line document trying to find something. |
|
|
|