You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 274 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Changing Registration Page? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Dreakon
Sergeant
Sergeant


Joined: Jun 13, 2004
Posts: 85


PostPosted: Tue Sep 28, 2004 6:22 pm Reply with quoteBack to top

How would I change the writing on the screen that says:

Quote:
You will receive a confirmation email with a link to a page you should visit to activate your account in the next 24 hours.

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 Web Links
* Access to WebMail
* Access to Content
* Access to gallery
* Access to Bug Report
* Create your own Journal
* Read custom headlines
* some other cool stuff...

Register Now! It's Free!
We don't sell/give to others your personal info.


I know to go into lang_english.php in Your_Account folder but I couldnt find half the things up there in it (like I couldnt find "Access to gallery"), plus I dont just want to change some of the text, I want to remove some lines also.

Could someone explain this to me please?

_________________
Splinter Cell PHP-Nuke fansite: http://www.scxtreme.net

Join, post and have fun Wink
Find all posts by DreakonView user's profileSend private messageVisit poster's website
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Thu Sep 30, 2004 4:24 am Reply with quoteBack to top

Heres how it works. It all happens in the new_user () function of modules/Your_Account/index.php. In there you will see some constants as follows:
Code:
       ."<ul>\n"
           ."<li>"._ASREG1."\n"
           ."<li>"._ASREG2."\n"
           ."<li>"._ASREG3."\n"
           ."<li>"._ASREG4."\n"
           ."<li>"._ASREG5."\n";


For Example _ASREG1 reads "Post comments with your name". You can find _ASREG1 in modules/Your_Account/language/lang-english.php. If you want to change the text change it in the language file. If you want to delete the line altogether delete the line
Code:
."<li>"._ASREG1."\n"

and it disappears.

Next is the Themes part......below the code shown above, you will find.
Code:
   $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."\n";
   }

This counts the number of themes you have and if there are more than one, echoes _ASREG6 on the screen. Again _ASREG6 is in the language file and can be edited there. If you dont want it to appear...even though you have more than one theme, just delete that whole block of code.

Next is the "access to various modules" part.

Code:
   $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 = stripslashes(check_html($row[custom_title], "nohtml"));
       if ($custom_title != "") {
      echo "<li>"._ACCESSTO." $custom_title\n";
       }
   }

This checks for Modules which are activated...but are for registered members only. It then loops thru them all and echoes Access to "the module" on the screen. Thats why you cannot find it in the language file.....the messages are created on the fly. If you dont want those access messages to appear, you can delete that whole block of code. If you want some and not others, then it is gonna need some fancy coding with if then and elses to decide which ones to display. That would go inside the while loop.

Next part is the same but for blocks.

By now...if you haven't got the drift, I would give up lol.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
rawaccess
Nuke Soldier
Nuke Soldier


Joined: Sep 09, 2004
Posts: 23


PostPosted: Thu Sep 30, 2004 10:55 pm Reply with quoteBack to top

this should be added into the PHPHOWTO manual
Find all posts by rawaccessView user's profileSend private message
toxicjason
Nuke Soldier
Nuke Soldier


Joined: Aug 06, 2005
Posts: 20

Location: Minneapolis, MN

PostPosted: Sun Aug 07, 2005 10:30 am Reply with quoteBack to top

I'm trying to change the registration page to include my terms of use. I have been monkeying with this for hours now and I'm definately missing something.

Is there a good resource for this? I don't know what to do at this point.

I tried adding:

.""._TERMSOFUSE."<br>\n" to the your_account/index page and...

define(“_TERMSOFUSE”, --followed by my terms of use-- to the your_account/languages/lang-english page...

when i do, the following shows up on my registration page:

_REGNEWUSER (_ALLREQUIRED)

Nickname:
_EMAIL:
Password:
_RETYPEPASSWORD:
(_BLANKFORAUTO)
Security Code:
Type Security Code:



_YOUWILLRECEIVE

_COOKIEWARNING
_ASREGUSER

_ASREG1
_ASREG2
_ASREG3
_ASREG4
_ASREG5
_ASREG6
_ASREG7
_ASREG8
_ASREG9
_ASREG6
_ACCESSTO Chat
_ACCESSTO Photo Gallery
_ACCESSTO User's Custom Box
_CREATEJOURNAL
_READHEADLINES
_ASREG7
_TERMSOFUSE
_REGISTERNOW
_WEDONTGIVE

What am I doing wrong? Is there an easier way to do this and I'm just making it more complicated?

Ideally I would like the terms of use to appear in a scrollable inline frame but couldn't get that to work either. Its find if the whole thing displays on the registration page.

Also, I want the register button to appear after the terms of use.... I'm really confused and struggling on this!!

Any help greatly appreciated
Find all posts by toxicjasonView user's profileSend private messageVisit poster's websiteAIM AddressMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.233 Seconds - 572 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::