vBulletin ModsThe Official vBulletin Modifications Site
http://www.vbulletin.org/forum/showthread.php?t=62164 |
Does anyone know how to insert $forumbits in test.php so that it will display some threads ??? (or any reason this wouldnt work ?)
edit: seems to be working now. |
Can I have the php pages set outside the forum root. Basically at the host root?
|
Amazing !
Works perfectly - even managed to get it into the Navbar :D |
Thank you to the original poster for providing this source code.
I have successfully installed the test page. Is there a way to only allow the test page to load if the user is logged in? I allow guests to browse my forums; but I do not want them to be able to browse my test page. Regards, Robert |
Quote:
|
I keep running into parse errors for some reason. I don't know why though since I've used this writeup before to add pages to another of my forums. On this other forum, I'm having issues. The forums are with different hosting companies. Would that make a difference?
The first error that I got said that there was a parse error due to an unexpected ~ on line 4. I took the tilde out and then it told me this:
Line 8 is the last line here:
|
||||||||||
Quote:
define('THIS_SCRIPT',+'writeups');+//+change+this+depending+on+your+filename You've got a + after the ; and before the // You can't do that. And I don't know about the + before 'writeups' either. |
|||||||||||
Actually, I have no idea where the + came from. I did a straight copy/paste and the + is not in there.
|
Quote:
|
Actually, it's funny that you say that since it is BBEdit that I used. I even tried copying and pasting the php from this thread into a text document in TextEdit and still, the same errors came up.
|
Quote:
(Is this thread the best place to discuss this or would it be better off in it's own thread where more people can come and help?) |
Nevermind... I don't know what I have set different but it's the version of BBEdit that is screwing this up somehow. (Although I'm not sure why I got the same results with TextEdit)
What I was doing last night was on my MacBook. I just tried to create the custom page again on my G4 tower and it worked fine. The G4 has BBEdit version 7 on it while the MacBook as the updated ver. 8. Well, it's either that or my FTP software is doing something funky... Both of the computers have the same version of that but maybe one is sending the file in a different manner... Either way, this is my issue to fix... Sorry for wasting everyone's time. --------------- Added 28 Mar 2008 at 16:58 --------------- Quote:
|
|||||||||||
How do you adapt this article to add queries and pull data from the database? Is there an additional article out there? I've searched but came up empty.
|
Quote:
|
Yeah, I end up figuring it out with trial and error. My problem was I didn't realize you needed a separate template for looping but I got it squared away.
|
| All times are GMT. The time now is 01:44. |
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2001 - , vbulletin.org. All rights reserved.