![]() |
|
|
|
#1
|
|||
|
|||
|
I'm trying to create a php module/page that will generate a list of links with descriptions and a thumbname image for each link. When a user clicks on a link it will prompt them to download or open the file assocated with that link.
The list of links will look similar to the attached screen shot. I've created my php file with the following code: worldslist.php PHP Code:
Warning: main(): open_basedir restriction in effect. File(/forums/modules/worldlist.php) is not within the allowed path(s): (/home3/wheezier:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/vba_cmps_include_bottom.php on line 348 Warning: main(/forums/modules/worldlist.php): failed to open stream: Operation not permitted in /includes/vba_cmps_include_bottom.php on line 348 Warning: main(): open_basedir restriction in effect. File(/forums/modules/worldlist.php) is not within the allowed path(s): (/home3/wheezier:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/vba_cmps_include_bottom.php on line 348 Warning: main(/forums/modules/worldlist.php): failed to open stream: Operation not permitted in /includes/vba_cmps_include_bottom.php on line 348 Fatal error: main(): Failed opening required '/forums/modules/worldlist.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home3/wheezier/public_html/forums/includes/vba_cmps_include_bottom.php on line 348 Any idea what I'm doing wrong? Thank you in advance for any help anyone can give, Jim admin http://www.nova-classifieds.com http://www.friendship-cafe.com |
|
#2
|
|||
|
|||
|
Ok.. I fixed the include errors I was getting by changing the path for the included php file to "./modules/worldlist.php". The issue I'm running into now is that my content isn't displaying when I reference my template.
|
|
#3
|
||||
|
||||
|
How were you able to change the path to include like that? When adding PHP file modules you should only be able to select the module from a drop-down list...
|
|
#4
|
|||
|
|||
|
Quote:
Well, I've tried this two ways.. Adding a php file as a page and as a module. So far I've gotten it to work partially by using the module method. When adding a php file as a page, I don't get a drop-down box, only a text box to type in the path to the file I want to include. I can't get the "php page" method to work. For some reason it's not connecting with the template. One of the [other] problems I'm running into now is that I can't get the template to loop through each record. It looks like it only captures the last record and displays it. If you go to http://www.friendship-cafe.com you will see what it looks like right below the welcome message. Jim |
|
#5
|
||||
|
||||
|
If you're trying to add it as a page, try using './modules/wordlist.php' as the file to include instead. Normally you should be able to use the full path, but you won't be able to since your host has the open_basedir restriction turned on.
Quote:
|
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
A file that was created to work as a module will not work when trying to include it in a new CMPS page. If you change the code so that the text is echoed out instead though then it should work when including it in a page.
|
|
#8
|
|||
|
|||
|
Quote:
![]() Jim |
|
#9
|
|||
|
|||
|
Quote:
PHP Code:
|
|
#10
|
||||
|
||||
|
Did you make sure that your 'Custom Page Content' module was enabled?
|
|
#11
|
|||
|
|||
|
Quote:
Jim |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Instructions to Create a New Module | Deriel | Module & Modification Discussion & Requests | 0 | 07-14-2005 10:18 AM |
| how do you create a module??? | cDizzle | Chit Chat | 1 | 05-08-2005 06:34 PM |
| How to create Module that have more than 1 php file ? | Lizard King | Troubleshooting / "How do I..." Questions | 1 | 03-14-2005 02:06 AM |
| How to create a AD module on the left | ncangler | Troubleshooting / "How do I..." Questions | 6 | 02-12-2005 01:35 AM |