Log in

View Full Version : vB Forum Closed....


Hex_legend
09-25-2008, 04:18 PM
When you set your forum to close and set a message, it shows:

vBulletin Message
YOUR FORUM CLOSED MESSAGE GOES HERE

How do we edit that template? I want that page to remove some of the codes that the forum use?
For instance, we use a donation system and even that page shows the donation link. We also want the navbar taken off.

Also.. I want that one file to use a certain style, not dependant on what style the rest of the site is using..

Any help?

Lynne
09-25-2008, 04:25 PM
To find the template used - 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.

To edit that message, vboptions > Turn your board on/off > Reason For Turning Forum Off

Hex_legend
09-25-2008, 04:33 PM
The template is called STANDARD_ERROR

What I can't understand is that it is the message for when you are not logged in / have permission to post.

When I removed $navbar and $footer from the template, it updated the Forum Closed message.

However, I can't see any placeholders where I can edit the message box itself - NOT the content of the message.

I want to have a totally custom Forum Closed page which I would do with HTML, but its just finding where / how to edit the template.

Lynne
09-25-2008, 04:50 PM
I don't understand what you mean "edit the message box itself". If you want something different for when the board is closed, you may edit global.php to use another template (check the function standard_error in functions.php around line 2610 and you'll see how to pass another template to use).

Hex_legend
09-25-2008, 05:00 PM
I can't seem to find functions.php lol.
My global.php only has 1100 lines :D

agitated
09-25-2008, 05:23 PM
This might help

https://vborg.vbsupport.ru/showthread.php?t=178072

Hex_legend
09-25-2008, 05:42 PM
Thanks for that.
Although that doesn't seem to be helping me.

Lynne
09-25-2008, 05:44 PM
Maybe if you describe more what you are looking to do, it would be easier to help.

The functions.php page is in your /includes directory. It is the file I was saying to check around line 2610. global.php is in your forums directory and that is where the standard_error function gets called from and where you can modify that call to use a different template. See the function in functions.php to see how to call the other template.

agitated
09-25-2008, 07:32 PM
The custom Board_Closed template will allow you to do whatever you wish.
You can customize it to suit your needs.

The navbar will not be shown.
The exclusion of $footer will stop anyone changing style.
You could even create a new custom template and include that if you wish.

EDIT**
See attached. Our board closed message. This is all that shows.