| Author |
Message |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Jan 31, 2003 4:17 pm |
  |
Hi,
I'm wondering if it is possible to give group and or user permissions in the journal module, instead of it just being publicly viewable or not?
I'll try to give an example. My site is a firefighter site, and sometimes we have to deal with some pretty horrific stuff. I have a group of people that are there to help other firefighters, who have been specifically trained to deal with such things.
Since creating a forum for it would give everyone permission to see it, I'm looking for another avenue. I'm hoping it can be done through the journal, so that individual issues can be dealt with privately.
I really don't have any idea of how to go about modifying the journal, tables etc
Does anyone have any ideas?
Thank you for your help |
|
|
   |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Fri Jan 31, 2003 4:22 pm |
  |
If using a version of PHP-Nuke other than 6.5 you could try NSN-Groups from www.nukescripts.com |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Jan 31, 2003 4:25 pm |
  |
Thanks Chatserv
I'll give it a look
You know you guys are amazing, everytime I think I post something that is going to stump you, you are right there with a viable answer.
Thanks! |
|
|
   |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Jan 31, 2003 6:22 pm |
  |
This is probably going to sound like a stupid question, but I haven't run an installer on the site since I moved it to the domain and gave public access.
I've looked in all the folders and read the readme. I'm not sure where I put the installer, and if I have to point my browser to it to make it run.
thanks again for your help |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Fri Jan 31, 2003 8:11 pm |
  |
An installer for what? |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Jan 31, 2003 8:33 pm |
  |
Zhen-Xjell,
chatserv previously suggested that I get nsn groups, which I've done, it comes with an installer. This is the contents of the readme that comes with it.
| Code: |
/********************************************************/
/* NSN Groups for PHP-Nuke 6.0.0 */
/* 10 Jan 2003 */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Copyright © 2002-2003 by NukeScripts Network */
/********************************************************/
0. Copyright Notice
-------------------
- Our Package name and link MUST REMAIN in the credit footer of all NSN script
generated pages. Translations are permitted, not renaming.
- This package CAN NOT be ported without written permission.
- This package CAN NOT be mirrored without written permission.
- Use of this package requires that credits to the original PHPNuke remain in all
site generated page footers.
- The following are the only project licenses granted at this time (These projects
may reproduce and/or include our scripts).
1) The PHP-Nuke Project by Francisco Burzi
2) phpBB2 Port Project by Tom Nitzschner
3) OFFICIAL NSN Regional sites
0. SPECIAL NOTES:
-----------------
In this release you will find admin.php and admin/modules/authors.php and here is
why. In the 1.0.3c release a new field was added to your nuke_authors tables. This
new field is radmingroup and is intended to allow the SuperUser to assign non-Super-
User admin to have access to the Groups system. You DO NOT have to use these two files
if you choose not to (However the old ones will not work correctly), they add the
ability above.
1. Introduction and Requirements
--------------------------------
NSN Groups is a PHP-Nuke addon which allows the admin to assign user
groups. Add and/or remove groups and users within each group.
It requires PHP-Nuke 6.0.0 installed.
Delete old Email Groups (case.emailgroups.php, link.emailgroups.php,
& emailgroups.php) files. They are now merged into the Edit Groups
files.
2. Installation
---------------
Extract archive to temp dir and copy included as noted below(and chmod if shown):
---------------------------------------------------------------------------------
README.txt (do not upload, your reading it)
html/admin.php -------------------> admin.php
html/mainfile.php ----------------> mainfile.php
html/modules.php -----------------> modules.php
html/admin/*.* -------------------> admin/*.*
NOTE: If your server doesn't allow the installer to work then and only then use
the SQL file.
install/*.* ------------------------> *.* Contains both a php installer and a SQL file.
upgrade/*.* ------------------------> *.* Contains both php upgraders and SQL files.
3. Use
------
To use this module, just copy the files to the directories listed above. Then import
the included sql file before running the scripts. One imported you can start adding
groups and users to the groups.
You can now assign blocks, messages, and modules that only group users can view
|
|
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Fri Jan 31, 2003 9:14 pm |
  |
Ahh, you have to run the installer for the NSN Groups. The file should be in the compressed package. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Jan 31, 2003 9:47 pm |
  |
I have all the files, I just don't know where I am supposed to put the installer to run it. I know that sounds stupid, but I haven't run an installer on a production site. I have Nuke in my domain, so the other files will be loaded directly their folders. I'm not sure how to access the installer.
Just mydomain.com/install.php ? |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Fri Jan 31, 2003 10:03 pm |
  |
I prefer to run the sql files directly myself. Do you know how to do that? |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Fri Jan 31, 2003 10:03 pm |
  |
From what you posted the readme shows the structure and it would seem they say there is a install folder included which has two files inside, my best guess is you upload the install folder to nuke's root dir. then point your browser to http://yoursite.com/install/install.php and it also says that if the installer somehow fails you can use the sql file included in the install folder to create the tables using phpMyAdmin. |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Jan 31, 2003 11:15 pm |
  |
Yes I do know how to run sql queries.
Sorry for asking such a stupid question (I know it was one) I didn't want to make the whole bloody thing disappear (have done that before) or something if I was supposed to put the install file somewhere else.
Thanks very much for your help. |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Fri Jan 31, 2003 11:27 pm |
  |
No, don't apologize.
I believe the install sql for nsn groups creates new tables that don't affect your current ones. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Fri Jan 31, 2003 11:55 pm |
  |
The install.php didn't actually work, gave a fatal error because it couldn't open mainfile.php. I ran the install sql through phpmyadmin, and it worked great
I couldn't find the files I was supposed to delete though.
I assumed from the readme that they would be in the admin/* but I didn't have case.emailgroups.php, link.emailgroups.php, and emailgroups.php. |
|
|
   |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Sat Feb 01, 2003 12:19 am |
  |
I have a new problem. I made my groups, and put my users in there. I "think" this is the code that I have to alter in the journal/display.php so that the users can pick if they want it public, private or for a group, but I don't have the slightest clue how to add the groups there. Is this the part of the code I have to edit? It starts on line 62
| Code: |
while ($row = sql_fetch_array($result, $dbi)) {
$owner = $row[aid];
if (($row[status] == 'no') && ($row[aid] != $username)):
OpenTable();
echo "<center><br>"._ISPRIVATE."<br></center>";
CloseTable();
journalfoot();
endif; |
Thank you |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sat Feb 01, 2003 8:52 am |
  |
Oh gosh I'm not familiar with the groups code I'd have to find time and look into this. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
|
|