Author |
Message |
ThePiston
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Dec 22, 2004
Posts: 135
|
Posted:
Wed Sep 28, 2005 10:22 am |
|
Ok, I have been making this site for a long time now... tweaking here and there etc. At first I was only putting benign info in the "Content" pages for anoymouse visitors. I started putting private info on them too and other sensitive info on them (without thinking) and I have put a lot of work into it. I just realized that I can't tell nuke which ones to show only to registered users.... does anyone know how I can fix this problem?? I've got some sensitive stuff on this page. Can I create a "Content2" and make it registered only or something? How about a hack to create privelages for Content's Categories? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Wed Sep 28, 2005 11:05 am |
|
There are a couple of options. You could:
* Develop a fancy way to define access at the content page level.
* Develop a way to show only certain categories of content to users or members of a group (assuming you use NSN Groups).
* Develop a separate content module - with different tables - and make that module only available to members of a group.
* Put the sensitive content into a private / hidden forum that only certain users or users in certain groups could see. There are probably other ways, too, but this should give you some things to consider. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ThePiston
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 28, 2005 11:29 am |
|
yeah, those all require a lot more grasp of the language than I have. I wish there was an easy way to give privelages to Content Categories instead of all-or-nothing that is is now. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 28, 2005 11:42 am |
|
Why not store the sensitive content in a private forum? That shouldn't require any code changes. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ThePiston
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 28, 2005 12:51 pm |
|
because I want the pages to look cohesive and not change around like that. I'm dealing with guys who are not computer geeks.... odler gentlemen who do not use computers too often. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Steptoe
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/db59d0e0432a3ca97d73f.gif)
Joined: Oct 09, 2004
Posts: 293
|
Posted:
Wed Sep 28, 2005 2:41 pm |
|
Quote: |
I'm dealing with guys who are not computer geeks.... odler gentlemen who do not use computers too often.
|
I had the same problem....members accessing hidden members section and staff accessing admin sections.
These did not show up in the scrolling forum block which from logs I was able to establish they used, by passing the forum index.
I bumbled thru made a custom user info out of others user info. When a user is logged in, just under the log out button, with the PM link, I put a link to posts since last visited, that appears only when logged in. this shows all posts since last visit that they have permissin to veiw.
From the logs I now see that this link is now commonly used.
Unfortunately my code is rather messy, (althu works)as I do not realy know what Im doing. therefore it would be irresponsable to release the user info in its current condition. It needs a coder to clean up and them to release. |
_________________ My Spelling is NOT incorrect, it's Creative |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
64bitguy
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/183ecd6a404a3683445de.gif)
Joined: Mar 06, 2004
Posts: 1164
|
Posted:
Wed Sep 28, 2005 5:50 pm |
|
NSN Groups. |
_________________ Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Xiode
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/ceff8af642caf31150ba9.gif)
Joined: Jun 15, 2005
Posts: 78
Location: AR
|
Posted:
Wed Sep 28, 2005 8:15 pm |
|
Here you go man.. Here is "Content2"... All I did was change the SQL so that it looks for a different second DB... It is the exact same module just # 2... No that wasn't a restroom joke .
It is based off 7.6.3.1....
All you have to do is upload the contents of the "html" folder...
Then go into phpmyadmin and run the sql querry....
I take no credit for this, use at your own risk blah blah.... So on... You know man. If you don't you should.
http://www.xiodestudios.com/temp/Content2.zip |
_________________ **Mental Note** Signature Goes Here! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ThePiston
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Sep 29, 2005 6:52 am |
|
wow, thanks. I'll let you know how it goes. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Xiode
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Oct 01, 2005 4:06 pm |
|
did everything work out for you? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Oct 02, 2005 7:08 am |
|
64bitguy wrote: | NSN Groups. |
On that "note", it might be another good "After-Patched" value-add to include more core group "awareness" within certain core nuke modules similar, I think, to NSN News to attach groups to specific articles? |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ThePiston
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 03, 2005 10:06 am |
|
worked very well, thank you. Now, how do I go about moving the private Content from old "nuke_pages" to "nuke_pages2"? What's the SQL code so I can do it in the DB and not by hand. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ThePiston
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 03, 2005 10:49 am |
|
nm, exported and just changed one number and then inserted into new pages... THANKS! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ThePiston
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 03, 2005 12:48 pm |
|
oops, spoke too soon... The links to the content pages in "Content2" have "name=Content" in them, how do I change that so it says "name=Content2"? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 03, 2005 9:01 pm |
|
ThePiston wrote: | oops, spoke too soon... The links to the content pages in "Content2" have "name=Content" in them, how do I change that so it says "name=Content2"? |
Since you already have the export/import process down pat, if you still have the file that you imported, I would change all references of "Content" to "Content2", truncate the table, and then re-import. However, if you no longer have the import file, I would export the table to file first, then change the data, truncate the table, and then re-import.
Regards,
montego |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ThePiston
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 03, 2005 11:00 pm |
|
yep, I exported all the tables and then replaced "pages" with pages2" and insterted. My problem now is that when I admin "Content2" pages, they all have links to "Content". How can I change that? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 04, 2005 4:43 am |
|
ThePiston wrote: | yep, I exported all the tables and then replaced "pages" with pages2" and insterted. My problem now is that when I admin "Content2" pages, they all have links to "Content". How can I change that? |
Depending upon your version of nuke (which you should always provide by the way in your up-front posts), you need to find the appropriate admin case.php and link.php for your new "Content2" module. You have to also make the case statements unique, such as changing "content" to "content2" and "content_edit" to "content_edit2", etc... You have to match those changes in your Content2 index.php as well.
Also in the Content2's admin index.php and possibly other scripts you need to look for the hardcoding of the url to "content" to be "content2". It looks like FB wasn't consistent in his use of the variable "$module_name" in the admin scripts.
Lastly, you need to change the admin's link.php script to also use "contents2" instead of "contents".
Unfortunately, cloning a module isn't as simple as copying it to another directory. If you run into any more issues, just post the details of what you are seeing and/or any error messages and we'll try and help you out.
Regards,
montego |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ThePiston
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 04, 2005 8:05 am |
|
got it, there was one instance in the admin/index.php file hat still had "content" and not "content2"... all aothers were fixed. DONE, thanks! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 04, 2005 7:48 pm |
|
u r welcome.
![RavensScripts](modules/Forums/images/smiles/ravensphpscripts.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|