![]() |
|
Thread Tools |
#1
|
||||
|
||||
[HOW TO - vB4] Create your own vBulletin page
Hello,
I created my presentation page, but it does not work! Following this guide: https://www.vbulletin.org/forum/showthread.php?t=228112 Can you help me and correct the mistake? This is my .php file (presentazione.php): __________________________________________________________
_____________________________________________________________ Can you help my, please? No members have liked this post.
Last edited by MarkFL; 01 Jun 2017 at 19:01. Reason: Enclose code in appropriate tags. |
#2
|
||||
|
||||
I've moved your thread from the modifications area (those are for publishing vBulletin products/styles). I've also enclosed your PHP code in the appropriate tags to make it easier to read.
![]() The main issue I see is that you're trying to define the templates by using the code rather than giving the template names. You need to use the Style Manager to create the templates in the Master Style, and then use their names in your PHP script.
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#3
|
|||
|
|||
Originally Posted by MarkFL
![]()
I don't know how do it. Can you correct it so that I understand, please? ![]() No members have liked this post.
|
#4
|
||||||||
|
||||||||
This code here:
You need to create a template, with that code in it. Suppose you create this template and name it "mytesttemplate"...then your external script would look like:
Does this make sense? Do you know how to create a new template in your master style?
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons The following members like this post: RichieBoy67
|
#5
|
||||
|
||||
Go into the admincp under styles and under the main style click create template in the drop down menu.
__________________
No members have liked this post.
|
#6
|
||||||||
|
||||||||
Originally Posted by MarkFL
Actually, you need to name the template whatever you have called it in this line of your php file:![]()
and again called in this line:
According to the first line, you need to name the template "test". If you name it anything else, then it won't work. So, I think Mark corrected the template name on one line, but not the other. Both of those should be the same.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#7
|
||||||||||||
|
||||||||||||
Originally Posted by Lynne
I have always used one name for the script, and then other names for the templates rendered by the script. As long as the templates are specified in the $globaltemplates array, then they can be rendered without issue, at least that's been my experience. ![]()
![]() For example, here's a very simple script I coded a while back for someone:
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#8
|
||||
|
||||
ACK!!! My bad. I'm not sure what I was thinking - it's been a while since I have written a custom page and, um, uh, just forget what I said!!
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) The following members like this post: MarkFL
|
#9
|
|||
|
|||
I managed to create the page, thank for your support!
The following members like this post: MarkFL
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:17.