Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9
Author Message
sven
New Member
New Member



Joined: Apr 17, 2007
Posts: 16

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

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
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

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

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







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

Has anyone got nsn groups to work on phpnuke 7.9??
 
hitwalker







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

Are you reading any of it i wrote ?
What you want ?
With the 7.9 or downgrade?
 
sven







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

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
 
hitwalker







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

have you tried turning on error report in the config.php ?
and see if it shows any error ?
 
sven







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

Nope,

I am going to try now
 
sven







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

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
 
Gremmie
Former Moderator in Good Standing



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

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

You've got an else without an if (if you have posted all the code).

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
sven







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

Sorry can't post the full code nuke sentinel blocks it
 
sven







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

Found it!!

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


Thanks for the assistance Very Happy Very Happy
 
Gremmie







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

That's great. In the long run you might consider switching to RavenNuke, as it has Sentinel, NSN Groups, etc, already installed for you.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9

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 ©