View Full Version : Side Nav on All Pages
ConqSoft
12-19-2004, 07:33 PM
Is there a way I can make the left-hand column of CMPS modules show up on ALL pages throughout vBulletin?
Spikeh
12-19-2004, 07:59 PM
Are you meaning on any page created in vBA or on the actual forum as well?
ConqSoft
12-19-2004, 08:03 PM
Everywhere. I want to use it for additional navigation, and who's online.
Spikeh
12-19-2004, 08:07 PM
Well for your normal pages created in vBA then you just need to go to
Admin CP > vbA > Edit Page
Choose the pages and make sure the checkboxes are ticked for each module you want active on the left and right.
For on the forums pages then you need to read this http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=6
Hope this helps.
Jester
12-19-2004, 08:29 PM
Well for your normal pages created in vBA then you just need to go to
Admin CP > vbA > Edit Page
Choose the pages and make sure the checkboxes are ticked for each module you want active on the left and right.
For on the forums pages then you need to read this http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=6
Hope this helps.
Thanks for passing that link a long it worked like a champ.
Spikeh
12-19-2004, 08:31 PM
Most welcome, I like to help where I can... with vB and vBA it isn't that often really lol.
ConqSoft
12-19-2004, 08:33 PM
Well for your normal pages created in vBA then you just need to go to
Admin CP > vbA > Edit Page
Choose the pages and make sure the checkboxes are ticked for each module you want active on the left and right.
For on the forums pages then you need to read this http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=6
Hope this helps.
Yeah, I know that. But the majority of my site is vBulletin. So, I would assume something would have to be done in the header/footer templates to make it site-wide.
Spikeh
12-19-2004, 08:34 PM
Read the link I posted.
ConqSoft
12-19-2004, 08:50 PM
Read the link I posted.
But that's only for the main forums pages. And I surely don't want to edit every fiile that the forum uses.
Which is why I was wondering if anyone had done it universally using the header, since that's used on every page of the whole site.
Jester
12-19-2004, 08:55 PM
But that's only for the main forums pages. And I surely don't want to edit every fiile that the forum uses.
Which is why I was wondering if anyone had done it universally using the header, since that's used on every page of the whole site.
I was kind of wondering the same thing myself. It is nice to have it on the forum index.php, but what would be nicer is to have the menu system on every page. Kind of like the nav bar at the top, except that I want different links on the left side.
Spikeh
12-19-2004, 08:58 PM
Unfotunately I don't know PHP enough to help you further. Have you checked http://www.vbulletin.org ?
Brian
12-20-2004, 10:34 AM
But that's only for the main forums pages. And I surely don't want to edit every fiile that the forum uses.
Which is why I was wondering if anyone had done it universally using the header, since that's used on every page of the whole site.
No, that's for every page. The main forum page is just used as the example. It really shouldn't take more than 5-10 minutes to add the code to all of your pages either.
Grumpy ol' Jim
12-24-2004, 01:58 AM
... For on the forums pages then you need to read this http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=6
I seem to be having a problem throughout the forums clicking on links to other parts of this site. I get only blank pages. I try refreshing and refreshing holding the shift key down, but still end up with a blank page.
Hope someone can help with this.
Jim
1996 328ti
12-24-2004, 11:30 AM
I seem to be having a problem throughout the forums clicking on links to other parts of this site. I get only blank pages. I try refreshing and refreshing holding the shift key down, but still end up with a blank page.
Hope someone can help with this.
Jim
Sorry I can offer no help but you are not alone. :confused:
1996 328ti
12-24-2004, 05:43 PM
Try this.
http://www.vbadvanced.com/membersarea.php
Click on User Manuals
Click on vBadvanced
Click on Integrating Other vB Pages & Hacks
...steven
Grumpy ol' Jim
12-24-2004, 06:48 PM
Yes, I am able to navigate the user manual area just fine. It's the links in messages and elsewhere that go to vBAd pages that turn up blank. Like you said, I'm not alone. I have seen this reported in other threads, but nothing has been said about it.
Thanks,
Jim
PS: When I clicked your link, it said I didn't have any licenses, but I have a vB license. Where do I put that info? The pages I've been on don't seem to offer a way to correct that.
1996 328ti
12-25-2004, 12:13 AM
PS: When I clicked your link, it said I didn't have any licenses, but I have a vB license. Where do I put that info? The pages I've been on don't seem to offer a way to correct that.
http://www.vbadvanced.com/forum/announcement.php?f=24&announcementid=1
Grumpy ol' Jim
12-25-2004, 02:08 AM
Thank you again. I'm sorry I went off-topic. I took my problem here ---> http://www.vbadvanced.com/forum/showthread.php?t=4276
Jim
Brian
12-25-2004, 10:05 PM
I seem to be having a problem throughout the forums clicking on links to other parts of this site. I get only blank pages. I try refreshing and refreshing holding the shift key down, but still end up with a blank page.
Hope someone can help with this.
Jim
What links exactly?
Grumpy ol' Jim
12-26-2004, 12:08 AM
Hi Brian,
See the link in post number 4 and everyone that quoted that link. Blank page. I've experienced that same anomaly in other threads too, but don't know the locations off-hand.
Thanks.
webspinner
12-26-2004, 12:00 PM
Hi Jim
I think the answer to you blank page problem is a small typo in the link within this thread. It uses "do=viewmanual" but should say "do=viewusermanual". I think if you follow the link below it will take you to the content you are after.
http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6
Hope this helps
Cheers
Dave
Jester
12-27-2004, 02:40 PM
Ok, so I tried to go through and make changes to the following files (to have the Nav Bar appear on all pages):
showthread.php, showpost.php, and forumdisplay.php
When I made the changes the Nav Bar is on the left, but no threads, posts, or forums show up. They all just vanish. Where am I going wrong?
ConqSoft
12-27-2004, 02:43 PM
Did you turn on the checkbox for Custom Content on the "include" page you made?
Jester
12-27-2004, 02:47 PM
Just checked and it is selected. This Mod works on my ./forums/index.php page so I can't figure out where I am going wrong.
1996 328ti
12-27-2004, 09:20 PM
OK, I am getting there.
I have sucessfully created a new page so when you click on my forum from the portal, the entire forum has a left side bar.
When I click on a category, I loose the side bar.
What is the next step?
Edit: Ooops. I'm at the same point as above.
1996 328ti
12-27-2004, 09:58 PM
I edited forumdisplay the same way I edited index.php expect I used FORUMDISPLAY instead of FORUMHOME.
When clicking on a category I get this error message.
Unable to add cookies, header already sent.
File: /xx/xx/public_html/forum/modules/subscribers.php
Line: 31
I assume the following files need to be edited.
announcement.php
articleattachment.php
calendar.php
editpost.php
faq.php
forumdisplay.php
joinrequests.php
login.php
member.php
memberlist.php
newreply.php
newthread.php
profile.php
register.php
search.php
sendmessage.php
showpost.php
showthread.php
subscription.php
usercp.php
mojotim
12-28-2004, 11:19 AM
OK, I got the left blocks on my main forum pages (thats all I wanted), but now I have this spacing issue that is bugging me. Which template do I have to play with to line these up (the left block top and the forum heading)?
Brian
12-28-2004, 11:25 AM
Jester & 1996 - If you guys would like to submit a support ticket via the Members' Area here I'll be glad to take a look and see what the problem is.
mojotim - I'd suggest checking the template for a <br /> or some other type of tag that would add spacing either just below the $header or $navbar variable.
mojotim
12-28-2004, 11:59 AM
Got it; it was hiding in forumbit_level_1 at the top, thanks.
bishop93
12-28-2004, 03:56 PM
Jester & 1996 - If you guys would like to submit a support ticket via the Members' Area here I'll be glad to take a look and see what the problem is.
But could you at least provide the fix on this out here? I'm having the exact same issue of the entire forum ending up in the left column. I don't want to really go forward with modifying any other templates until I know that there is a resolution.
Thanks in advance.
b
Brian
12-28-2004, 04:15 PM
But could you at least provide the fix on this out here? I'm having the exact same issue of the entire forum ending up in the left column. I don't want to really go forward with modifying any other templates until I know that there is a resolution.
Thanks in advance.
b
That's not the same issue others are having in this thread...
http://www.vbadvanced.com/forum/showpost.php?p=20618&postcount=8
bishop93
12-28-2004, 04:23 PM
Oops. You're right. Sorry about that. I misread that post above. *sigh* Okay. Well, I'll look around some more and see if I can't figure out what went wrong. I *think* I followed the directions to a T. But I guess not.
1996 328ti
12-28-2004, 08:43 PM
Jester & 1996 - If you guys would like to submit a support ticket via the Members' Area here I'll be glad to take a look and see what the problem is.
I'm gonna try a little more on my own if that is OK.
That's the only way I'm gonna learn. ;)
I'll go as far as I can and document my steps.
Then I'll surrender and ask for help.
1996 328ti
12-28-2004, 09:28 PM
I was kind of wondering the same thing myself. It is nice to have it on the forum index.php, but what would be nicer is to have the menu system on every page. Kind of like the nav bar at the top, except that I want different links on the left side.
I have sucessfully edited
index.php
faq.php
announcement.php
newreply.php
newthread.php
BACKUP YOUR FILES TO BE EDITED!
#
#-----[ FIND ]-------------------------------------
#// ################### PRE-CACHE TEMPLATES AND DATA #######################
#-----[ BEFORE, ADD ]-------------------------------------
#
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');
Go to the bottom
#
#-----[ FIND ]-------------------------------------
#eval('print_output("' . fetch_template('xxxxxx') . '");');#
#-----[ REPLACE WITH ]-------------------------------------
#eval('$HTML = "' . fetch_template('xxxxxx') . '";');
print_portal_output($home, $HTML);
I'm trying to get it to look like http://www.northamericanmotoring.com/forums/
forumdisplay.php and showthread.php gave me cookie errors.
Don't know what to do with calendar.php
Jester
12-28-2004, 11:25 PM
1996 328ti - thank you for posting that info. I am also having problems with the last two templates that you mentiond. And that site you posted is exactly what I am looking for.
I can almost see the light at the end of the tunnel...
1996 328ti
12-28-2004, 11:31 PM
What other php scripts need to be edited?
I figure we do what we can then ask Brian for help.
It looks like there is enough around here to keep him busy.
I also emailed the webmaster of NorthAmericanMotoring.
BTW- I restored my edited files back to the original form.
I don't want to confuse my users.
This is an excellent 'addition'!
One thing I noticed however is that every page you use this on changes the title in browser window to whatever you named your 'include' module.
For example, a thread titled "New stuff" would show in the browser title bar "mydomain.com - include" instead of "mydomain.com - New stuff"
Is there a work-around for this?
Thanks!
~Regs.
1996 328ti
12-29-2004, 09:03 PM
I am making progress. the cookie problem seems to be related to the subscribers block. When I turn subscribers block off, no more problem.
I continued to edit most of the php files. Very, very easy. :)
I will report back on the ones I'm stumped on.
1996 328ti
12-29-2004, 10:51 PM
I hit a major problem. :(
I edited most of the php files. The site looked exactly like I wanted. Navigation was perfect. Only minor problem, every forum was closed for posting. I could not create a new thread or reply to an old one. I restored the site but to normal.
Alan @ CIT
12-30-2004, 01:20 PM
Steven,
I've been editing my pages to add the leftbar in to them, and it was working well until I got to newreply.php, which when I made the changes, I get the same problem as you - it comes up with a message saying "Sorry! This forum is not accepting new posts.". (for a demo of what I mean, go to http://www.citconsultants.co.uk/techsource/forums and login as User: test Password: test and try and post a reply to either of the threads)
Any ideas?
Thanks,
Alan.
Alan @ CIT
12-30-2004, 03:16 PM
ok, spent a bit of time tracking this down now. Essentially, vbAdvanced is somehow managing to kill-off the $foruminfo array that vB uses in it's "posting allowed" checks.
When newreply.php is loaded, it checks 3 items in the $foruminfo array. If you comment out the define('VBA_PORTAL', true); line, and put and then print_r($foruminfo);, it'll print out the array just fine. Uncomment the define(VBA...) line, and print_r() draws a blank.
Anyway, back to the hunt - I'll post again when I track down why it's killing the $foruminfo array.
Thanks,
Alan.
Alan @ CIT
12-30-2004, 03:26 PM
Ok, problem solved.
The problem is caused by the module latesttopics.php. On line 108 (right near the end) it unset()'s the $foruminfo array. Normally this wouldn't cause a problem, but when adding the left nav bar (with the latest topics module enabled), it will cause all sorts of problems.
To Simon and anyone else who has had the same problem, you will need to either disable the Latest Topics module, or move it to the right side bar instead, so it won't get included on the reply/new topic pages.
Thanks,
Alan.
1996 328ti
12-30-2004, 06:55 PM
To Simon and anyone else who has had the same problem, you will need to either disable the Latest Topics module, or move it to the right side bar instead, so it won't get included on the reply/new topic pages.
I already moved the subscribers block off the left side because of a conflict.
I'd like a better solution for the Latest Topics. :(
I think by having the latest topics on the left side it will encourage people to post. That is the main reason I wanted to do this.
But I checked out your forum and the Latest Topics block is working.
festivalman
12-31-2004, 01:31 AM
Hi, I did the procedure for making a custom page and adding the bars to the left and right, but the problem is that the left bar shows up BELOW the forum stuff on whatever page I'm trying, be it forumhome or showthread. The right column always shows up fine. I've done this 5 or 6 times now from scratch and I can't see how I'm messing anything up. I even tried encapsulating the entire showthread template in a table to make sure it wasn't a rogue <br> or something. Ideas? Thanks.
bishop93
12-31-2004, 05:08 PM
Was there ever a solution found for the calendar page modification?
bishop93
12-31-2004, 10:27 PM
I'm also curious as to what replacement you used for such lines as:
eval('print_output("' . fetch_template($templatename) . '");');
I have a feeling that I've messed one up already, but I noticed the issue first with memberlist.php.
Thanks in advance.
Alan @ CIT
01-01-2005, 06:25 AM
Steven: Apologies, I made a fix for my board and forgot to post it.
To have the side bar enabled on newreply.php without it erroring, do the following.
Find:
if (!$foruminfo['allowposting'] OR $foruminfo['link'] OR !$foruminfo['cancontainthreads'])
And above it, put:
$foruminfo = fetch_foruminfo($threadinfo['forumid']);
To have the side bar enabled on newthread.php without it erroring, do the following.
Find:
if (!$foruminfo['allowposting'] OR $foruminfo['link'] OR !$foruminfo['cancontainthreads'])
and above it, put:
$foruminfo = fetch_foruminfo($forumid);
The sidebar should now appear, and you should also be able to create/reply to posts.
Festivalman: To fix your problem of the sidebar showing up below the main content, make This Change (http://www.vbadvanced.com/forum/showpost.php?p=20618&postcount=8)
Bishop93: Sorry, I don't know what the calendar page issue was. With reference to your last post though, just make the change as normal. Eg:
eval('print_output("' . fetch_template($templatename) . '");');
Would become:
eval('$HTML = "' . fetch_template($templatename) . '";');
print_portal_output($home, $HTML);
For reference, the pages you need to edit are: poll.php, sendmessage.php, showgroups.php, member.php, online.php, profile.php, subscription.php, private.php, usercp.php, search.php, faq.php, calendar.php, memberlist.php, editpost.php, newthread.php, showthread.php, forumdisplay.php and index.php. Once done, the theroy is, your forums should end up looking like http://www.citconsultants.co.uk/techsource/forums/ with the side bar on every page.
Thanks,
Alan.
bishop93
01-01-2005, 10:26 AM
Thanks. It works this morning and not last night. I guess I was missing something and too tired to see it.
I think I have done all the pages you list, most of the ones that 328ti listed and reverted the Profile and Search pages since they just look out of place with a left side bar like what we're doing.
I just have to figure out the breadcrumb issue (again) with the vBa Gallery installed and we're good to rock and roll. Yay! You guys have been great in helping out around here. Thanks, very much!
Alan @ CIT
01-01-2005, 11:13 AM
Hi Bishop,
Glad to hear your almost fully working. I hadn't noticed any problems with the search/profile pages as you mentioned, but I did make a change to the User Control Panel. I found that if you move the UserCP menu to the right of the screen, it looks a lot better than when it was on the left (see http://www.citconsultants.co.uk/pictures/therions-usercp1.png).
Thanks,
Alan.
1996 328ti
01-01-2005, 07:46 PM
You're right. It does look A LOT better on the right side.
I take it that is done in a template?
This is really making my New Year! :)
Thanks!
Now to make a tutorial.
I need to install this mod on a fresh install.
I'll take notes as I do it.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.