PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
hql
New Member
New Member


Joined: Aug 08, 2008
Posts: 1

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

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 Back to top

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?
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum