1
AlexA
How can I...
  • 2005/8/1 10:04

  • AlexA

  • Just popping in

  • Posts: 3

  • Since: 2005/7/15


Hey all,

People on the site I'm managing don't seem to read the e-mails and understand they need to activate their accounts by clicking the link... so, I want to explain this better on the Register page. Where is the best place to add a header or footer to the register.php file?

Also, when a user clicks on a link to an area of the site they don't have access to, where do I change the "Sorry, you don't have permission..." page?

Many thanks!

Alex.

2
mboyden
Re: How can I...
  • 2005/8/1 16:06

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I'm going to assume you are using 2.0.X and not 2.2 because I can't answer that as it's changed quite a bit.

I must admit that the standard web page message after you register, which is:

Quote:
You are now registered. An email containing an user activation key has been sent to the email account you provided. Please follow the instructions in the mail to activate your account.


really isn't that confusing, especially as common a technique as it is on the web. However, you can change this message in the rootpath/language/english/user.php file. Look for the _US_YOURREGISTERED definition.

Easiest place to add info on the registration page would be to add something to the registration form as display only. This page doesn't use the usual smarty templates $xoopsTpl type of displaying. Find it at rootpath/include/registerform.php, but you'll need to learn about XOOPS forms and the likes, and this is a core file hack.

As for the No Permission, that's being called from the same user.php file. Look for the define of _US_NOPERMISS and change the message in there.

Finally, a more descriptive subject title is in order instead of "How can I....". Maybe something like "Add Header to Registration Page" or the likes. And tell people which version you are working on as each version has some changes.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

3
pegasus00321
Re: How can I...

In 2.2, there are templates for that which makes it easier to edit.

Which version are you using?
Pegasus00321


I would appricate it if you click this link
TuFat.com PHP Scripts and etc

Login

Who's Online

284 user(s) are online (203 user(s) are browsing Support Forums)


Members: 0


Guests: 284


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits