Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
djslue
Hangin' Around



Joined: Sep 26, 2007
Posts: 34

PostPosted: Mon Jul 07, 2008 2:29 pm Reply with quote

Hey, I want to customize what it says when people register. This is the text that is there when people register.

The site Administrator will review your application
and send you an activation link if you are approved.

Notice: Account preferences are cookie based.
As a registered user you can:

Post comments with your name
Send news with your name
Have a personal box in the Home
Select how many news you want in the Home
Customize the comments
Access to Downloads
Access to Shout
Access to User's Custom Box
Access to News
Access to Forums
Access to Photos
Create your own Journal
some other cool stuff...
Register Now! It's Free!
We don't sell/give to others your personal info.

How can I edit this please.

thanks
steve
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon Jul 07, 2008 4:57 pm Reply with quote

The top part can be defined in the language file, and the "As a registered user" stuff is more complicated, since its determine by the active modules you're using.

We are considering the ability to determine whether or not the "As a registered user" stuff is displayed in the upcoming release of RNYA, but it hasn't been implemented yet.

So the question is, do you want to change / eliminate the "As a registered user" stuff?

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
djslue







PostPosted: Mon Jul 07, 2008 5:23 pm Reply with quote

Hey man, I would like to remove this stuff in the white box, It doesn't really apply to my site and looks out of place. Is this possible ?

thanks
Steve

Image
 
djslue







PostPosted: Mon Jul 07, 2008 5:24 pm Reply with quote

Sorry, I would like to Keep

"The site Administrator will review your application
and send you an activation link if you are approved."

if possible.

thanks
steve
 
fkelly
Former Moderator in Good Standing



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

PostPosted: Mon Jul 07, 2008 5:37 pm Reply with quote

You should be able to find where these messages are generated in the new_user.php program. This is in the Your_Account/public directory. In the version I am looking at there is code like this:

Code:
echo ''._COOKIEWARNING.'<br />';

echo ''._ASREGUSER.'<br />';
echo '<ul>';
echo '<li>'._ASREG1.'</li>';
echo '<li>'._ASREG2.'</li>';
echo '<li>'._ASREG3.'</li>';
echo '<li>'._ASREG4.'</li>';
echo '<li>'._ASREG5.'</li>';
$handle=opendir('themes');
while ($file = readdir($handle)) {
   if ((!ereg("[.]",$file) AND file_exists('themes/'.$file.'/theme.php'))) { $thmcount++; }
}
closedir($handle);
if ($thmcount > 1) { echo '<li>'._ASREG6.'</li>'; }
$sql = "SELECT custom_title FROM ".$prefix."_modules WHERE active='1' AND view='1' AND inmenu='1'";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
   $custom_title = $row[custom_title];
   if ($custom_title != '') { echo '<li>'._ACCESSTO.' '.$custom_title.'</li>'; }
}
$sql = "SELECT title FROM ".$prefix."_blocks WHERE active='1' AND view='1'";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
   $b_title = $row['title'];
   if ($b_title != '') { echo '<li>'._ACCESSTO.' '.$b_title.'</li>'; }
}
   if (is_active('Journal')) { echo '<li>'._CREATEJOURNAL.'</li>'; }
   if ($my_headlines == 1) { echo '<li>'._READHEADLINES.'</li>'; }
echo '<li>'._ASREG7.'</li>';
echo '</ul>';


If you just eliminate everything after the _ASREGUSER including the whole unordered list, it should do what you want. But obviously I haven't tried that so do it with a backup on a test system.
 
View user's profile Send private message Visit poster's website
djslue







PostPosted: Mon Jul 07, 2008 6:09 pm Reply with quote

Hey, I have 3 different files,

new_user1.php
new_user2.php
new_user3.php

I did the changes you said to the "new_user1.php" file and it seems to have worked. Should I remove it from the others too ? or leave them alone ?

thanks again for all the help.

Steve
 
kguske







PostPosted: Mon Jul 07, 2008 6:44 pm Reply with quote

fkelly is looking at the new version of RNYA. In the 4.4.2 version you're using, you'll need to change the one that corresponds to the type of approval you require. I believe you're using 2, but it wouldn't hurt to do the others, too.
 
fkelly







PostPosted: Mon Jul 07, 2008 7:11 pm Reply with quote

Thanks Kguske!. I was scratching my head at that question. I had seen the new_user2 and new_user3 files but wasn't sure how or why they were used. We learn a little every day in serendipitous ways.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

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 ©