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
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Wed Sep 28, 2005 10:22 am Reply with quote Back to top

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?
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Sep 28, 2005 11:05 am Reply with quote Back to top

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.
View user's profile Send private message
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Wed Sep 28, 2005 11:29 am Reply with quote Back to top

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.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Sep 28, 2005 11:42 am Reply with quote Back to top

Why not store the sensitive content in a private forum? That shouldn't require any code changes.
View user's profile Send private message
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Wed Sep 28, 2005 12:51 pm Reply with quote Back to top

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.
View user's profile Send private message
Steptoe
Involved
Involved


Joined: Oct 09, 2004
Posts: 291

PostPosted: Wed Sep 28, 2005 2:41 pm Reply with quote Back to top

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.
View user's profile Send private message
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Wed Sep 28, 2005 5:50 pm Reply with quote Back to top

NSN Groups.
View user's profile Send private message Visit poster's website
Xiode
Regular
Regular


Joined: Jun 15, 2005
Posts: 78
Location: AR

PostPosted: Wed Sep 28, 2005 8:15 pm Reply with quote Back to top

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 Razz.

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.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Thu Sep 29, 2005 6:52 am Reply with quote Back to top

wow, thanks. I'll let you know how it goes.
View user's profile Send private message
Xiode
Regular
Regular


Joined: Jun 15, 2005
Posts: 78
Location: AR

PostPosted: Sat Oct 01, 2005 4:06 pm Reply with quote Back to top

did everything work out for you?
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sun Oct 02, 2005 7:08 am Reply with quote Back to top

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?
View user's profile Send private message Visit poster's website
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Mon Oct 03, 2005 10:06 am Reply with quote Back to top

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.
View user's profile Send private message
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Mon Oct 03, 2005 10:49 am Reply with quote Back to top

nm, exported and just changed one number and then inserted into new pages... THANKS!
View user's profile Send private message
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Mon Oct 03, 2005 12:48 pm Reply with quote Back to top

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"?
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Oct 03, 2005 9:01 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Mon Oct 03, 2005 11:00 pm Reply with quote Back to top

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?
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Tue Oct 04, 2005 4:43 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
ThePiston
Worker
Worker


Joined: Dec 22, 2004
Posts: 135

PostPosted: Tue Oct 04, 2005 8:05 am Reply with quote Back to top

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!
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Tue Oct 04, 2005 7:48 pm Reply with quote Back to top

u r welcome.

RavensScripts
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