The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I have this piece of code in my chat.php file which is in the forums/chat directory. When a guest tries to view the chat they get a no permission error like it is supposed to do. But for some reason, the header takes up half the page and it doesn't show the header image. It is looking for the header in the chat/images directory which doesn't exist. How can I avoid that when they get a no permission error?
PHP Code:
|
#2
|
||||
|
||||
![]()
No one has any ideas on how to fix this?
![]() |
#3
|
||||
|
||||
![]() Quote:
![]() Or use some nifty replaces in your html to replace links in the header and footer template vBa CMPS/ Gallery / Links does the latter. |
#4
|
||||
|
||||
![]() Quote:
![]() |
#5
|
||||
|
||||
![]()
Anyone else have any ideas how to fix this? It's all I need to finish up and release a RealChat vB integration hack.
|
#6
|
|||
|
|||
![]()
try changing this:
Code:
chdir('./../'); Code:
chdir('../'); |
#7
|
||||
|
||||
![]()
You're right, it didn't fix the problem. It is still looking for all the images in /chat/images instead of just /images.
![]() |
#8
|
||||
|
||||
![]() Quote:
OR use php to string replace on said templates like vBa CMPS / Gallery / Links Directory does |
#9
|
||||
|
||||
![]()
Ok, how do I use string replace in a template?
|
#10
|
||||
|
||||
![]() PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|