The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
![]()
Oooooooh YEAH It works..displays the events
fim but on top of the 5 events listings I get this error: Warning: Failed opening './global.php' for inclusion (include_path='') in D:\websites\clubFREESTYLE.com\test.php on line 138 you can see for youself on our test page: http://www.clubfreestyle.com/test.php (left side column) ----------------------- If i change the code to reflect: forum/admin I get this error: Warning: Failed opening '/forum/global.php' for inclusion (include_path='') in D:\websites\clubFREESTYLE.com\test.php on line 137 Thanks |
#22
|
|||
|
|||
![]()
UPDATE:
I removed the : include('./global.php'); call and it works fine with no error Is this ok to do? |
#23
|
|||
|
|||
![]()
Hi everyone,
this hacks just works fine - if, yes if the php file which includes the calendar_hack.php3 is in the vb directory. I would like to include the hack code like this PHP Code:
When I do this from outside that dir, it always give me a Quote:
So, how do I have to include correctly (best would be in absolute paths) that it works for pages from outside the vb directory??? Many thanks in advance! Markus |
#24
|
|||
|
|||
![]()
Ok thanks,
chdir('directory'); before the inclusion is the correct way... Markus |
#25
|
|||
|
|||
![]() Quote:
tried this but get this error: Fatal error: Failed opening required './admin/config.php' (include_path='.:/usr/local/lib/php') in /home/atease/public_html/forums/global.php on line 72 does anyone know what i might have done wrong? i'd appreciate it. thanks |
#26
|
|||
|
|||
![]()
Well, I have a completely new (but spectacular) issue with this great little scrap of code that calls out the next 5 events.
First, it works, ![]() However, I'm changing things over to a PostNuke front page and content pages for a site, with VB as the workhorse forum and community. I need the little events script to run in a standard php block for PostNuke. The PostNuke is in a separate mySQL database from the vBulletin. Now, I did get it to run. BUT, it seems to *clobber* the living daylights out of a couple (but not all) other modules that are used with PostNuke. So the page loads, the events are listed, but the moment you try to go to one of the affected modules, it starts spitting out: Warning: Supplied argument is not a valid MySQL result resource and goes on to give the path of the php file, which I won't bore you with here. There's a few warnings like this. It's really quite spectacular all over the screen. ![]() First, let me say I know enough about php and mySQL to be dangerous. But I follow directions very well! I have a suspicion that after the events query is made, the rest of the page gets confused about what database it is in. But why this only happens with some modules and not others is a mystery to me. I might be all wrong. Whatever is happening, it isn't pretty, and I'd really like to be able to include the events on the front page. I don't know how to fix it, whether it is what I think it is or not, though. :| Would someone please explain to me what could be going on, and how to fix it? I can point you to specific files and examples if needed, but I'll bet you vBulletin and php gurus would know what to do in your sleep with your hands tied and your computer off! It seems like some sort of obvious error condition like that to me. ![]() Halp Mr. Wizard! -deb |
#27
|
|||
|
|||
![]()
I can get this to work fine if I call the events.php file itself. But when I try to include that file on my front page I get the following:
Warning: Failed opening './global.php' for inclusion (include_path='') in /path/to/my/board/events.php on line 3 Fatal error: Call to a member function on a non-object in /path/to/my/board/events.php on line 5 I tried putting the assolute path in line 3: include('/path/to/my/board/global.php'); but that simply produces a blank screen? |
#28
|
|||
|
|||
![]()
I just found this, and it is EXACTLY what I'm looking for. When I originally installed the hack, I had less than 5 next events. I then added a lot more dates (about 15 more).
Now, I receive this error: Warning: Cannot add header information - headers already sent by (output started at /path/username/to/boards/calendarfront.php:3) in /path/username/to/boards/admin/functions.php on line 1581 I named this PHP script calendarfront.php Thanks for any help! |
#29
|
|||
|
|||
![]()
I did some more trouble shooting with this and found that when I went DIRECTLY to the page that loads the script I get that error. However, if I first go to my message boards, and then go to the page, it works fine.
EX: Go to http://www.finheaven.com/, then http://www.finheaven.com/seasonal/dates.shtml in a new browser window after all other windows are closed Someone I talked to said that it sounds like a cookie issue, but that's just a guess - i.e. expecting a cookie to exist that does not However, if you go to the message boards: http://boards.finheaven.com/ and then type the URL in the Address bar it works fine. Strange.... Any ideas? |
#30
|
|||
|
|||
![]()
I found out why the problem was being caused. Thank you for your time.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|