The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Registration
I would like to edit the page that says
"Thank you XXXX, your registration is now complete. You may now continue to edit your profile or take part in the forums" I have 2 questions. 1. What is the phrase to edit the text in that box? 2. What is the template that calls that phrase as I want to edit the whole page too, (position of the box etc) |
#2
|
||||
|
||||
AdminCP > Languages & Phrases > Search Phrases
Search for the words "your registration is now complete". That brings up 'registration_complete'. You should be able to search your templates for where that phrase is used. Edit: My mistake, I can't find where it's used in the templates... |
#3
|
||||
|
||||
1. Languages & Phrases > Search in Phrases "your registration is now complete" and you should find the phrase.
2. vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. |
#4
|
|||
|
|||
Quote:
Edit - When trying out what Lynne said, it came up as the template STANDARD_ERROR.. From what I understand: 1. it's not an error message. 2. the STANDARD_ERROR message is being called on a lot of templates, so how would I alter the position of this one page one? |
#5
|
||||
|
||||
Don't delete your test user. It is going to come in very handy over the life of your forum. Whenever you make a change to your board, your going to want to see what it looks like to other users and that is when your test user comes in handy.
STANDARD_ERROR is just a basic template. It's used for several vb messages that get displayed, whether they are considered errors or not. If you are wanting to only change what that page looks like for that one phrase, I think you will have to edit the php page. Somewhere in that page, I think it defines that after registration, the template used for the redirect is "STANDARD_ERROR" and so you may want to create a new one and change the template name there. Taking a quick look, function standard_error is in /includes/functions.php around line 2801. You may be able to use the hook location there - "error_generic" to define the template to use. |
#6
|
|||
|
|||
I have already created a test user for my forums, so I don't want to keep creating more etc.
I have edited the text for the phrase, of what is displayed in that box, but I have no idea when it comes to php, so I wouldn't know what file to edit and what code to put in to get it to call a different message with that content inside. Could you shed any light or example code please Lynne? Thanks |
#7
|
||||
|
||||
Whoops, I was in the process of editing my post when you posted. Just looked at it again.... this is the function - notice the optional fourth place:
PHP Code:
PHP Code:
|
#8
|
|||
|
|||
Forgive me for sounding thick here haha, but it is 5:30am and I've not slept yet lol, but how would I do this? I mean, you said to pass it a template, but templates and php not being my strong point, actually being like 1/10, I am scared that something will mess up haha.
I think it's just my brain telling me that I'm tired, but oh well I want to get this done first |
#9
|
||||
|
||||
You need to copy the error template and give it your own name - mytemplate. Modify it to how you want. Then change the register.php line to be something like this:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|