View Full Version : Left Side Bar = No JavaScript
DGTLMIK
06-19-2005, 01:17 PM
I have hacked my entire Site using the instructions from Integrating Other vB Pages & Hacks (http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6), everything works perfectly except for 1 very important thing; JavaScripting does not operate correctly on the vB Pages that use it:
Smilies
- newthread.php
- newreply.php
- editpost.php
- private.php
- calendar.php
Due to this problem, I have had to remove the Left Side Bar feature from these pages or when clicking on the Smilies, nothing happens; Users would be forced to type in the Smiley Code instead (we have a lot of beginners that don't know how to do this).
AJAX Fast Open/Close Threads -> HERE (http://www.vbulletin.org/forum/showthread.php?t=81658)
- forumdisplay.php
When clicking on the Icon to the left of the Thread, to do the Quick Close/Open, nothing happens; however, if I remove the Left Side Bar feature from this Page, it works perfectly.
Brian, please tell me there is a way to resolve this problem; my Users really enjoy having the Left Side Bar visible on all Pages and AJAX is the greatest thing since Popcorn. :cool:
Brian
06-19-2005, 01:48 PM
If you'll look in your includes/vba_cmps_include_bottom.php file for this bit of code:
global $pages, $stylevar, $headinclude, $header, $footer, $vboptions, $vbphrase, $bbuserinfo, $stylevar, $show, $pmbox, $vba_options, $vba_style, $navbar, $cusid, $_REQUEST, $gobutton, $pagetitle, $pagecache, $permissions, $DB_site;
Replace with this:
global $pages, $stylevar, $headinclude, $header, $footer, $vboptions, $vbphrase, $bbuserinfo, $stylevar, $show, $pmbox, $vba_options, $vba_style, $navbar, $cusid, $_REQUEST, $gobutton, $pagetitle, $pagecache, $permissions, $DB_site, $onload;
Then look in your adv_portal template for the <body> tag and replace that with <body$onload> then that should take care of the smilie problem.
The AJAX problem is going to require a bit more work to fix, but I'll try to see if I can get a fix for that posted soon.
DGTLMIK
06-19-2005, 02:36 PM
First, thanks for the quick response! :)
Second my 'vba_cmps_include_bottom.php' file (running v1.0.1) did not have these variables:
$pagecache, $permissions, $DB_site
So, I just added the '$onload' to the end of mine ending up with:
global $pages, $stylevar, $headinclude, $header, $footer, $vboptions, $vbphrase, $bbuserinfo, $stylevar, $show, $pmbox, $vba_options, $vba_style, $navbar, $cusid, $_REQUEST, $gobutton, $pagetitle, $onload;
This solved the Smilies problem for 'editpost.php' and 'calendar.php' and I just realised I didn't want the Left Side Bar visible for 'private.php' since the 'USERCP_SHELL' is visible; it would look too convoluted, so that is no longer an issue.
However, the following Pages produce a 'Sorry! This forum is not accepting new posts.' error:
- newthread.php
- newreply.php
If I remeber correctly, this came up before and it had something to do with the fact that I have the 'Latest Forum Topics' Module in the Left Side Bar and the following line is the problem:
unset($thread, $threadbits, $foruminfo, $query, $inforums);
Any ideas?
Brian
06-20-2005, 01:37 PM
Try changing $foruminfo there to $foruminfo['allowratings'] and that should take care of the problem.
DGTLMIK
06-20-2005, 02:07 PM
Try changing $foruminfo there to $foruminfo['allowratings'] and that should take care of the problem.
Doing that causes 'forums/index.php' to only display the 'Breadcrumbs' and 'What's Going On?', no Categories/Forums are visible but 'forums/forumdisplay.php' and 'forums/showthread.php' appear to function correctly.
Any other ideas?
DGTLMIK
06-23-2005, 11:29 AM
bump...
Brian
06-23-2005, 01:26 PM
Hmm... Try removing $foruminfo from that list all together and see if that helps.
DGTLMIK
06-23-2005, 01:32 PM
Hmm... Try removing $foruminfo from that list all together and see if that helps.
Same problem as Post #5 :(
Next?
Brian
06-23-2005, 02:04 PM
Do you have the news module active on that page as well? If so, try removing $foruminfo from the bottom of that file as well.
DGTLMIK
06-23-2005, 02:45 PM
Do you have the news module active on that page as well?
Negative, the following are the currently active Modules, in order:
- Welcome Block
- Latest Forum Topics
- Online Users
- Buddy List
Brian
06-23-2005, 04:01 PM
I'm not sure why one of those would be creating a problem. If you'd like to submit a support ticket though I'll be glad to take a look at things for you.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.