Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Documentation
Author Message
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Thu Nov 13, 2008 6:09 pm Reply with quote

Im not the best writer or publisher but I will start on the RNYA Documentation, Feel free to add, edit, burn, color-in any part of it.

RNYA (Raven Nuke Your Account)

The your account or RNYA module allows users to login, logout and resgister at your site.This allows them slightly elevated privilledges to view content that would otherwise be un-available.It also allows any content or posts they make to be associatated with there username.

RNYA also assigns visitor's and user's to your site with a unique key or seesion key that is stored in a cookie.The cookie DOES NOT contain any of your personal information, It is there to hold your settings for the site.

you can also;


    view your user page.
    administer users at Administration >> Edit Users ( admin.php?op=yaAdmin )
    create new users at Administration >> Edit Users >> Add a new user ( admin.php?op=yaUsers )
    create custom fields for registration Administration >> Edit Users >> Custom Fields ( admin.php?op=yaCustomFields )
    configure user registration, user email, and user settings at Administration >> Edit Users >> Configuration ( admin.php?op=yaUsersConfig )
    allow users to select themes from their user account by enabling themes in Administration >> Edit Users >> Configuration >> Permissions Tab



RNYA Custom Fields

RNYA has a great feature that allows Administrators to create there own fields with out having to know php.These fields can be setup in such away that they are required at Registration or just a custom field in the users account page.Custom Fields also has the option to use language constants and is set up as stated in the following example;

I want to add a gender field so that users can tell everyone if they are Male or Female.I have decided to use a drop down box with 3 options.The first option will just be "Select" and the second and third options will be "Male" and "Female".So first of all we will define the language constant for "Gender".

Add To: language/lang-english.php
Code:


if(!defined('_MYGENDERFIELD')) { define('_MYGENDERFIELD','Gender'); }


Next go to your website and log-in as admin.Then proceed to Administration >> Edit Users >> Custom Fields.

Click For Bigger Image
Image

In the first text box (ID Field Name) enter your defined constant, in this case _MYGENDERFIELD.

Now we want to add the drop down box with our 3 options.The way to create a drop down box in RNYA is to use 2 Colons ::, so in our case it will be;

Code:


Select::Male::Female


I always set the Size field as well, although it is not really required with a drop down list.But I will set it to 10 anyway.The next field is the Status field which allows you to select whether our new custom field will

1. Show at registration
2. Show at registration as a mandatory field (must be filled out)
3. Or Active which only makes it visible in the users your account page.

Next you can set the order of the field, So if you have 2 fields called Field1 & Field2 with an Order of 1 and 2 respectively, Field1 would be the first filed you see.

And finally select whether you want the Field to be public or not.If it is set Public, Anyone viewing your user profile will see this filed.

And here is the final result when looking in your users account page.

Click For Bigger Image
Image

If this has been helpfull please private message montego and say thank you. Shocked
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Thu Nov 13, 2008 9:51 pm Reply with quote

Testy, please don't post in two places at once. We do appreciate the effort that was made in this post and it would be even more valuable if it was just in one forum thread. You can be sure we will find it.

The RN team is working diligently to come up with an agreed upon approach to documentation so the material can be created once and stored in one place and found by all. Once we have that in place you can be sure we will incorporate the excellent start you've made here. Thanks. And please feel free to post anything else you come up with.
 
View user's profile Send private message Visit poster's website
testy1







PostPosted: Fri Nov 14, 2008 12:38 am Reply with quote

No problems, Thought it would be best in a post on its own thats why I did it that way.

feel free to tack it on the end of the other post if you like.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Documentation

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 ©