Log in

View Full Version : Why doesn't it work???


harry1951
07-27-2005, 08:48 AM
? need some help...
After reading this thread http://www.vbulletin.com/forum/showthread.php?t=81549 this is what I need.
I made a testpage http://www.jestaatnietalleen.nl/test1.php

It is an empty page with this in it:

<?php
chdir('./forum');
require('./forum/forumdisplay.php?f=4');
chdir('../') ;
?>

I also tried require_once but with same errors...

I also made an other testpage http://www.jestaatnietalleen.nl/test2.php

The script there is:

<?php
require('http://www.jestaatnietalleen.nl/forum/forumdisplay.php?f=4');
?>

I get output there but then all other vBulletin files are expected in the rootpath..

What do I wrong???

Gr. Harry

Logikos
07-27-2005, 09:15 AM
You can't use:

require('http://www.jestaatnietalleen.nl/forum/forumdisplay.php?f=4');


That file isn't setup to be a required file. What are you trying to do? Be descriptive.

harry1951
07-27-2005, 09:25 AM
What I exact want is to show on an own page the part where the forums are in. In test2.php it is the second block. Further I want a check if a user is logged in and has the permission to view the complete page and that part of the forum.
I hope it is clear what I want because my english is not my native language :-)

Logikos
07-27-2005, 09:35 AM
So you are wanting to show all the threads from this forum: http://www.jestaatnietalleen.nl/forum/forumdisplay.php?f=4 on test.php?

harry1951
07-27-2005, 09:43 AM
yep on page1 I want to display f=4 on page 2 display=f5 and so on. And every page checked if the user has the right permissions. Without the navbar and what's going on

harry1951
07-30-2005, 05:25 PM
Nobody who can help me with this???....

Marco van Herwaarden
07-30-2005, 08:46 PM
Just copy forumdisplay.php, and take out what you don't need.

harry1951
07-31-2005, 06:23 PM
The problem I'm running in now is that if a user logs in on a loginpage and goes then to the page with the forumdisplay then the screen comes up but user is shown as not logged in. I think the problem is in the cookie. I think forumdisplay is not looking into the cookie to check if the user is logged in. Or is it something else? Please help me out?
I'm brand new on vbulletin and just starting to understand php

Marco van Herwaarden
08-01-2005, 03:18 AM
What is the url to your mainpage, and the url to your forum?