vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Why doesn't it work??? (https://vborg.vbsupport.ru/showthread.php?t=92991)

harry1951 07-27-2005 08:48 AM

Why doesn't it work???
 
? 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:
PHP Code:

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/foru...isplay.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?


All times are GMT. The time now is 04:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01092 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete