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
sven
New Member
New Member


Joined: Apr 17, 2007
Posts: 16

PostPosted: Sun Jun 03, 2007 2:22 am Reply with quote Back to top

Hi,

I am running phpnuke 7.9, and have installed nsn groups, I have modded all the core files and all ok apart from the admin/modules/blocks.php file, all I get is a blank screen. I have tried uploading the same file from ravennuke, this works apart from I can't add any new blocks, I can edit/save ok.

Does anyone know how to fix this, or how I can downgrade to 7.6, or how I can change to ravennuke and keep all my site content, eg news posts, forum posts, user info etc.

Any help is apprieciated.


Thanks

Sven
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Jun 03, 2007 5:15 am Reply with quote Back to top

mmmm i hope you understand it can difficult to know whats wrong,we have no way of knowing exactly what you did...
to downgrade you can find info on that in the forums.....
theres a script floating somewhere that does that.
in the ravennuke version there's enough info how to install and getting it all compatible...
View user's profile Send private message
sven
New Member
New Member


Joined: Apr 17, 2007
Posts: 16

PostPosted: Sun Jun 03, 2007 6:51 am Reply with quote Back to top

Has anyone got nsn groups to work on phpnuke 7.9??
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Jun 03, 2007 6:55 am Reply with quote Back to top

Are you reading any of it i wrote ?
What you want ?
With the 7.9 or downgrade?
View user's profile Send private message
sven
New Member
New Member


Joined: Apr 17, 2007
Posts: 16

PostPosted: Sun Jun 03, 2007 7:02 am Reply with quote Back to top

What I was wondering, was before I go looking into downgrading, was if nsn groups is compatible with phpnuke 7.9, whether I have modded the block.php wrong or it just doesn't work with the newer version of phpnuke,

sorry didn't word my questions well Smile
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Jun 03, 2007 7:04 am Reply with quote Back to top

have you tried turning on error report in the config.php ?
and see if it shows any error ?
View user's profile Send private message
sven
New Member
New Member


Joined: Apr 17, 2007
Posts: 16

PostPosted: Sun Jun 03, 2007 7:06 am Reply with quote Back to top

Nope,

I am going to try now
View user's profile Send private message
sven
New Member
New Member


Joined: Apr 17, 2007
Posts: 16

PostPosted: Sun Jun 03, 2007 7:12 am Reply with quote Back to top

Its saying
Quote:
Parse error: syntax error, unexpected T_ELSE in /removed*by*admin*/public_html/admin/modules/blocks.php on line 1025


the code is

Code:
   function HeadlinesDel($hid, $ok=0) {
      global $prefix, $db, $admin_file;
      $hid = intval($hid);
      if($ok==1) {
         $db->sql_query("delete from ".$prefix."_headlines where hid='$hid'");
         Header("Location: ".$admin_file.".php?op=HeadlinesAdmin");
      } else {
         include("header.php");
         GraphicAdmin();
         OpenTable();
         echo "<center><br>";
         echo "<font class=\"option\">";
         echo "<b>"._SURE2DELHEADLINE."</b></font><br><br>";
      }
      echo "[ <a href=\"".$admin_file.".php?op=HeadlinesDel&amp;hid=$hid&amp;ok=1\">"._YES."</a> | <a href=\"".$admin_file.".php?op=HeadlinesAdmin\">"._NO."</a> ]<br><br>";
      CloseTable();
      include("footer.php");
   }

   switch($op) {

      case "BlocksAdmin":
      BlocksAdmin();
      break;

      case "BlocksAdd":
      BlocksAdd($title, $content, $url, $bposition, $active, $refresh, $headline, $blanguage, $blockfile, $view, $groups, $expire, $action, $subscription);
      break;

      case "BlocksEdit":
      BlocksEdit($bid);
      break;

      case "BlocksEditSave":
      BlocksEditSave($bid, $bkey, $title, $content, $url, $oldposition, $bposition, $active, $refresh, $weight, $blanguage, $blockfile, $view, $groups, $expire, $action, $subscription);
      break;

      case "ChangeStatus":
      ChangeStatus($bid, $ok, $de);
      break;

      case "BlocksDelete":
      BlocksDelete($bid, $ok);
      break;

      case "BlockOrder":
      BlockOrder ($weightrep,$weight,$bidrep,$bidori);
      break;

      case "HeadlinesDel":
      HeadlinesDel($hid, $ok);
      break;

      case "HeadlinesAdd":
      HeadlinesAdd($xsitename, $headlinesurl);
      break;

      case "HeadlinesSave":
      HeadlinesSave($hid, $xsitename, $headlinesurl);
      break;

      case "HeadlinesAdmin":
      HeadlinesAdmin();
      break;

      case "HeadlinesEdit":
      HeadlinesEdit($hid);
      break;

      case "fixweight":
      fixweight();
      break;

      case "block_show":
      block_show($bid);
      break;

   }

} else {
   echo "Access Denied";
}

?>


line 1025 is } else {

any ideas
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun Jun 03, 2007 10:32 am Reply with quote Back to top

You've got an else without an if (if you have posted all the code).
View user's profile Send private message
sven
New Member
New Member


Joined: Apr 17, 2007
Posts: 16

PostPosted: Sun Jun 03, 2007 11:00 am Reply with quote Back to top

Sorry can't post the full code nuke sentinel blocks it
View user's profile Send private message
sven
New Member
New Member


Joined: Apr 17, 2007
Posts: 16

PostPosted: Sun Jun 03, 2007 11:24 am Reply with quote Back to top

Found it!!

There was an extra "switch($op) {" command which when deleted the file works.


Thanks for the assistance Very Happy Very Happy
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun Jun 03, 2007 12:01 pm Reply with quote Back to top

That's great. In the long run you might consider switching to RavenNuke, as it has Sentinel, NSN Groups, etc, already installed for you.
View user's profile Send private message
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum