![]() |
why not supported vBcode??? and turn on/off signatures in news???
|
arracing - Ok, this should work for you... I have 2 files attached here (one in this post, one in the next... sorry, I'm being lazy and doing it this way rather than zipping them ;)) that should help allow you to turn myvbindex into more of a portal rather than just a homepage script. Since the only things you'll be using for the left side of the page are the poll, custom templates, and search, those are the only parts I put in the "portal" part. If you ever decide you need to add something else to that side let me know and I can tell you how to change it.
Now for the instructions... First open the include.php file attached here. Change the path in the chdir part to point to your forums (just as you did with the myvbindex.php file when you first installed it). Then upload both the include.php and myvbindex.php files to the root folder on your server and after they are uploaded you can check the myvbindex.php page to be sure it still loads right. Then you will want to create a new template called include with the following content: PHP Code:
PHP Code:
Now for the last part, which is actually getting that template to display. You want to create a new file... It can be called whatever you would like, but must have a .php extension. The content of the file should be something like this: PHP Code:
Well that should be everything you need to do. If you have any questions or problems let me know. :) |
And the 2nd file for arracing... :)
|
musclebody - The login box should already be present if a user is not logged in. Does it not show up? If not can you give me alink to the file on your site?
M.C. - vBcode works for the news. It does not work for the signatures becasue that was something I accidentally overlooked in this version. You can find the fix for that posted here - https://vborg.vbsupport.ru/showthrea...431#post344431 And you can disable signatures in the news by disabling it when you make the post, just as you normally would. |
im confused with the part where you said to put a comma after $templatesused
how come you didnt write it in the code part above. or did you make a mistake and is the period before the = supposed to be a comma? |
No, there shouldn't be a comma after $templatesused, just one after the template name in that part.
$templatesused .= 'testpage,'; That's the one I was talking about. ;) Honestly the only problem it will create is adding an extra query or two to that page if it was removed, but there's no sense in adding extra queries if they're not necessary. |
after i uploaded those 2 files i got this error
Fatal error: Call to undefined function: get_bbarraycookie() in /home/share/b/ar-racing/public_html/include.php on line 52 |
Did you ever have a problem with that before? That's a function that was changed after vBulletin 2.2.5, so if you're running 2.2.5 or an earlier version then that would be why... It just doesn't make sense that you wouldn't have had the problem before. Either way you should be able to fix it by opening the include.php file and looking for:
$index_header = ''; Right Above that Add: PHP Code:
|
okay i did that and page loaded fine. I created the about us page to test this all out but after doing everything for the about us link and making sure that the link pointed to the new about_us.php file i created in the root directory.
I got these errors Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/share/b/ar-racing/public_html/about_us.php on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/share/b/ar-racing/public_html/about_us.php on line 3 Parse error: parse error in /home/share/b/ar-racing/public_html/about_us.php on line 3 |
That would mean something was done wrong in the $templatesused part on line 3. I'm assuming you figured it out though since I just checked the page and it loaded fine... Let me know though if you have any other problems.
|
All times are GMT. The time now is 12:31 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|