Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block
Author Message
hql
New Member
New Member


Joined: Aug 08, 2008
Posts: 1

PostPosted: Fri Aug 08, 2008 6:24 am Reply with quote

Hi guys, im a newbie at all this, i downloaded the collapsing forum block from this site, and after following the instructions from the zip file i still cannot get the forum block to appear, and every time i do activate it, all the blocks on the right dissapear, below is wat my javascript.php code looks like:

Code:
<?php


/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (stristr(htmlentities($_SERVER['PHP_SELF']), 'javascript.php')) {
    Header('Location: ../index.php');
    die();
}

##################################################
# Include for some common javascripts functions  #
##################################################
/******************************************************/
/* used in modules.php                                */
/******************************************************/
echo <<<_MODULES_
<script type="text/javascript">
   function gotoURL(dropDown) {
      URL=dropDown.options[dropDown.selectedIndex].value;
      if(URL.length>0) {
         top.location.href = URL;
      }
   }
</script>
<style type="text/css">
.mymodulesselectbox{
   width:140px;
   background:#f7f8fc;
}
</style>
_MODULES_;

if ($userpage == 1) {
    echo '<script type="text/javascript">'."\n";
    echo '<!--'."\n";
    echo 'function showimage() {'."\n";
    echo 'if (!document.images)'."\n";
    echo 'return'."\n";
    echo 'document.images.avatar.src='."\n";
    echo "'$nukeurl".'/modules/Forums/images/avatars/gallery/\' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value'."\n";
    echo "}\n";
    echo '//-->'."\n";
    echo '</script>'."\n\n";
}

global $name;

if (defined('MODULE_FILE') AND file_exists('modules/'.$name.'/copyright.php')) {
    echo '<script type="text/javascript">'."\n";
    echo '<!--'."\n";
    echo 'function openwindow(){'."\n";
    echo '   window.open (\'modules/'.$name.'/copyright.php\',\'Copyright\',\'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=200\');'."\n";
    echo "}\n";
    echo '//-->'."\n";
    echo '</script>'."\n\n";
}
// BEGIN - Add style sheet for collapsing forum block
echo <<<_JS_
<style type="text/css">
<!--

#listbutton{
border:1px solid #4B4B4B;
background-color:#F3F3F3;
width:60px;
height:12px;
font: normal 11px Arial, Verdana, Helvetica, sans-serif;
text-align:center;
cursor:pointer;cursor:pointer;
vertical-align:top;
}

.expandhighlight, .expandhighlight a{
color:red;
}

-->
</style>
_JS_;
// END - Add style sheet for collapsing forum block

?>



PLS HELP ME , IM SURE SOME1 WILL KNOW WAT IM DOING WRONG

AND THANKS IN ADVANCE Confused
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri Aug 08, 2008 3:10 pm Reply with quote

Not sure what the Javascript is used for. It should be fine, but we'd need to see the block code to determine if there is a problem.

With that block active, have you enabled error reporting and checked your error logs?

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©