![]() |
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.
|
i messed around with it a bit and got it to work, i guess i had saved it in rich file format so it wasnt working. I saved it another way and it did.
thx Plur, i might have a question or 2 if i cant figure something out so i will just post it here. |
how can i group all those new templates i am making into 1 folder?
|
what does this stuff mean
<!-- no cache headers --> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="Cache-Control" content="no-cache"> <!-- end no cache headers --> |
also i cannot get the $index_footer
to be shown outside the table in the blue background area. |
also why did the poll section where it asks the question turn purple after i did this hack?
|
Quote:
$only['index'] = 'mYvBindex'; Right below that add: $only['mytemplates'] = 'Name Of Group'; Just change "mytemplates" in that code to the suffix you gave them, and Name of Group to whatever you want the heading in the template set to say. Then you would need to find each template in phpMyAdmin and change it's templatesetid to -1. Quote:
Quote:
Quote:
|
i tried moving the $index_footer to differnt spots but it wasnt coming out at the bottom. It works on the main index page but not when i click a link like about us. I ended up removing it from those templates but I really want to use it because it has the vb copyrights and my copyrights in it.
|
You should be able to get it to display at the bottom if the structure for the tables is right... You could try adding </td></tr></table> again right before $index_footer incase there's a table that wasn't ended somewhere.
|
i did all that stuff to group the templates together and i got this error when trying to refresh the admin control panel
Warning: Unknown MySQL Server Host 'db0.tyva.netherweb.com' (1) in /home/share/b/ar-racing/public_html/forums/admin/db_mysql.php on line 40 Warning: MySQL Connection Failed: Unknown MySQL Server Host 'db0.tyva.netherweb.com' (1) in /home/share/b/ar-racing/public_html/forums/admin/db_mysql.php on line 40 |
i refreshed again and it worked. I wish their was a way that when you add a new template it asks you what category you want it under so i dont have to keep going into my phpadmin and searching for it.
|
Actually, I didn't think about that... If it would be easier for you, you can put your server in dubug mode (Just add the code $debug="1"; at the bottom of your admin/config.php file, right before the ?>). Upload that file and then you'll see your Global template set when your edit your templates. Add the templates to that set and it will work that way too. Oh, and don't forget to take your board out of debug mode after you finish since it can be a security risk. ;)
|
Quote:
|
You would use the same files I posted above, but you would have to remove some code from the myvbindex file and place it in the include file...
First, in myvbindex.php you would need to find: // Show Avatar You would highlight everything below that, up to: // Online Users (about 45 lines of code) Remove that from the myvbindex.php file, and paste it in the include.php file right before: // Current Poll Then you would find: // Weather - by JJR512 Highlight everything below that up to: // Search Box Remove that and paste it in your include.php file right under the last code you added. |
Quote:
|
okay i just noticed this. In my lateste post table. where its supposed to say the last poster. it doenst show up. This happened after i uploaded the new myvbindex.php file. I went and looked at the old one before the new upload and copied the whole latest post section to the new one and still nothing shows up. Whats going on?
http://www.ar-racing.com/myvbindex.php |
what i did to try and solve this was use my old myvbindex file instead of the one you gave me. It worked with the old one. I was trying to compare the 2 files and the old one doesnt require the include file but the new one does. However everything is still working using the old file. So what is your new myvbindex file doing and why is it calling that include file. Whats the include file doing?
If you go to my site now its using the old myvbindex so thats why the last poster is working. But im trying to understand why you made me upload those 2 files if everything is working fine with the old one. I must be missing something. |
That's wierd... You are using myvbindex 3.1, right? The only difference between your old myvbindex and new one shoud be that it uses the require tag to also pull the info from include.php, and some of the features (search, custom tempates, & poll) were moved to the include file instead. It's a little better to do things that way incase you ever change it, but otherwise there wouldn't be anything wrong with using your original myvbindex file for your index page, and then the include file with your new pages.
|
Hi Plurplanet,
From my index.php, I ran across a 404 error from the pop up to take me to a new pm message. The link, for some reason, is mysite.com/private.php?s= and leaving out my forums directory in the bburl. I can't figure it out. |
I could have swore I put the instructions to edit that in the install file, but I guess not. Sorry about that...
You can fix it by editing your head_newpm template and looking for 2 places that you'll see private.php. Just add /fourms/ (or whatever your forum folder is called) in front of that and it should fix the problem. By the way, I haven't forgotten about your PM. I've just been really busy this week and haven't had a chance to look into those problems you asked me about yet. I'll try to look at those for you before the weekend though. :) |
Thanks a lot Plur, i'll try it out tonight and tell you how it works and/or if I have a probs.
|
Plurplanet,
Thank you! That fixed it. I vaguely remember instructions like that. Maybe I forgot to make the changes...I am prone to that. About the pm, no rush at all...I'm still excited that someone is finally going to help me out! -littlebit |
yea im using myvbindex3.1 w/ vbulletin 2.2.5
I still dont understand why the new index file wont show the last poster when i copied the whole latest post table section from the old file to the new one. Its very strange. |
hello again, cant seem to stay loged out, i did follow the instructions for the hack :\
|
I'm assuming you changed the cookie domain in the Admin CP as instructed in the install file, right? Since the cookie domain was changed, the cookies on your computer may conflict with each other. Try clearing your cookies and see if that helps... If not let me know.
|
jw, should it be www.[sitenamehere].com or .[sitenamehere].com
|
Assuming it's for the same site as in your profile, it should be .digitalkore.net (no "www" or anything else)
|
that didnt seem to be working even after i cleard my cookies :\
ive changed it back to blank and it seems to be working for everything now |
Hmm... It should work fine after you cleared your cookies. Did you close your browser and then log back in? As long as it's working ok with that being blank it shouldn't be a problem. I'd recommend double checking everything though (log in from myvbindex then log out from the board, then log in from the board and out from myvbindex). As long as it still works then you shouldn't have any problems.
|
I have a question... I don't know if it's been asked before, but I don't have time to read 16 pages of posts.
I want to add a 3rd "Custom Table". I have already added the option for it in the ACP, and I figured out how to add it to the index.php page... The first 2 custom tables are put in the index w/ $custom1 and $custom2 I have no freaking clue how to get my 3rd table to work by typing $custom3 ... You know what I mean? site: www.crystalchronicle.com |
Iezugod - Check this post https://vborg.vbsupport.ru/showthrea...tes#post327859
|
All times are GMT. The time now is 12:19 AM. |
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:
|