![]() |
|
|
#1
|
|||
|
|||
|
The reason I am doing this thread is simply because I get quite a lot of PMs asking how I did such and such page on my website.
If this is the wrong thread, any mod, feel free to move that one. But please leave a redirect since I send some people this link already - thanks Anyway, some people would like to add for example flashchat, irc chat or simple iframes including all those modules etc. etc. Some demos : FlashChat Custom Stuff etc. etc. So lets get started. First, you need to create a template. Lets use as exmaple an iframe where google.com runs in it ... Create a new template with the prefix adv_portal_ and name it for example google. Admincp > Styles & Templates > Style Manager > In drop down choose Add New Template ![]() Put in the code Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle]</title> </head> <body> $header $navbar <!-- Custom Code Start Here --> <center> <iframe src="http://www.google.com" width="80%" height="400"></iframe></center> <!-- / Custom Code Ends here --> $footer </body> </html> ![]() Now add a new Page which is Template Based ![]() Page Title : What you would like to have displayed in the browser title bar Page Identifier : This is the variable that will be used in the URL to link to this page. For example, if this option is set to 'games', then the link to this page would look like this: /cmps_index.php?page=games Template : adv_portal_google Should look something like ![]() You don't have to use the Module Shell Template Options, only if you would like to have a typicall box around the stuff you display including the button to expand / collapse it Now the important stuff : modules There is not really a guideline for it ... The most important modul you need : Custom Page Content If you don't use it - you will get a white page .. But for this example, lets disable all modules in the middle, except the one just mentioned, and some modules on the left and right. You will proparbly have a different module set, but once again : Custom Page content MUST and WILL be there ![]() ![]() Since you named the identifier google - you can browse now to that page using http://<domain>/cmps_index.php?page=google IF you renamed cmps_index.php to index.php - you need to change that of course... Here is a demo : http://www.ut2007world.com/index.php?page=google ![]() If you only would like to use a custom page without any modules, you can use the vbulletin build - in option If you would like to add custom pages (including header / footer of your forum) do the following: Add a new template in the style of your choice. You can name it whatever you want, it has to have the prefix Code:
custom_ You are then able to call the custompage using http://www.ut2007world.com/misc.php?do=page&template=test2 Change the red code with your domain and the blue code with your template name accordingly. Lets make an example. Admincp > Styles & Templates > Style Manager > In drop down choose Add New Template Name the template for example custom_google Use the following code : Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle]</title> </head> <body> $header $navbar <!-- Custom Code Start Here --> <center> <iframe src="http://www.google.com" width="80%" height="400"></iframe></center> <!-- / Custom Code Ends here --> $footer </body> </html> Now use your web-browser and go to http://<domain>/misc.php?do=page&template=google And change the domain to your own. See attached a screenshot how the above example would look like. Or check out one Example - Don't get confused about the Muts_Overview.php filename though - this was created before I learned about the build in stuff, but it looks the same. Also attached a default html code for a template. |
|
#2
|
|||
|
|||
|
Wow thanks a lot! I will try it asap and I let you know how is going.
Thanks again |
|
#3
|
|||
|
|||
|
You are welcome - I thought it might be better this way instead of email back and forth
![]() Unfortunately I don't know how to do it easier - the only thing I can offer you is doing it myself on your site .. I don't speak french - but I'll manage
|
|
#4
|
|||
|
|||
|
Ok it's working now
That's a very nice tutorial and thanks for the offer! I'm sure I will be able to use it to do a lot of things.Thx again |
|
#5
|
||||
|
||||
|
very nice bro...thx for your advice
|
|
#6
|
|||
|
|||
|
Great THX a lot
|
|
#7
|
|||
|
|||
|
When I try all the steps outlined and I'm using 3.6 and the latest vbadvanced and php 5.0.4, when I add all of this, I get a blank page. I have custom content module enabled too. I'm not sure what's going on. I tried it in two different styles, "default" and in the one I use personally. Both get a blank page with no errors and nothing showing.
|
|
#8
|
|||
|
|||
|
I'm trying to add a PHP file instead of a template and its giving me an error Could not find phrase 'adv_portal_invalid_file_path'.
Any help? |
|
#9
|
|||
|
|||
|
Thank you utw-Mephisto, template working.
I have one more question, how can make Code:
http://<domain>/cmps_index.php?page=google Now start page is: Code:
http://<domain> Solution for start (index) page with template ? Tnx in advance ! |
|
#10
|
|||
|
|||
|
Great tutorial!
1 little question. When you don't want to use the iframe, how is it done? It won't work with the "a href" statement. F.e. I have a links page in htm and want it displayed this way. But when boxed in iframe I also get a scrollbar and I just want the whole page displayed. Last edited by Black Tiger; 09-10-2006 at 10:35 PM. Reason: added the last line. |
|
#11
|
|||
|
|||
|
Good tutorial. I've gotten it to work somewhat. It seems that it changes the width of my left column when I use this. It makes it fatter. www.shoresofglory.org .... http://www.shoresofglory.org/forum/index.php?page=about
* I am not using the center column at all. Anyone know what I can do to fix this? + I've fixed this issue. Last edited by zaney; 09-17-2006 at 10:07 PM. |
|
#12
|
|||
|
|||
|
Quote:
Please Help me! |
|
#13
|
|||
|
|||
|
How about for 3.5.5, would this work??? if not where can i get this, add a custome page/s???????
Thanks.. |
|
#14
|
|||
|
|||
|
Excellent tutorial
|
|
#15
|
|||
|
|||
|
Great tutorial but how do I make other content from the page display inside the iframe?
This is the page I am talking about. When I click on something on the page it opens a completely different page. I would like to make it so it will function all inside the iframe. |
|
#16
|
|||
|
|||
|
Do you know how this works with cookies? I am using this for an affiliate program. My page is here:
http://vfrworld.com/index.php?page=bikebandit In your code, I included my affiliate ID in the link: Quote:
|
|
#17
|
|||
|
|||
|
Hi,
I've tried everything now to add a custom page. I followed the instructions in this topic, and the second type of custom page is not a problem, but I want a custom page WITH the left side columns and navbar. The problem is that when I go to the Portal and click on the link to the new custom page I'll still see the same main portal page (the url only changes to portal.php?=google instead of portal.php?page=google as described in this topic). But if I go to http://www.board.com/forum/misc.php?...&template=info I can see the content of the template, but I cannot see the left side columns and it's not really what I'm looking for. I'm sure it's just a silly mistake I'm making, but could someone please point me in the right direction? I run 3.6.4 and the latest portal. |
|
#18
|
|||
|
|||
|
I hope someone can help me out with this problem?
|
|
#19
|
|||
|
|||
|
Really nice, it works perfectly, but...
I have problems if I want to include some PHP code into the page I made and I have problems with code parsing if I use the template method, have a look here please : http://www.vbulletin.com/forum/showt...=206162&page=2 Is it possible to do the same with include PHP instead of inclulde Template in a custom page ? |
|
#20
|
|||
|
|||
|
Quote:
Anyone who can help? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing Forum from Latest Forum Topics | oly51 | "How Do I..." Questions | 11 | 07-19-2006 01:07 AM |
| i want the forum breadcrumb to goto root forum not portal. help | markymoo | Troubleshooting & Problems | 1 | 05-18-2006 10:23 PM |
| News Module, display threads from one forum first, then from another forum | GamingVidz.com | "How Do I..." Questions | 3 | 01-26-2006 03:37 PM |
| no forum link, forum displaying incorrectly | digeraticular | Troubleshooting / "How do I..." Questions | 5 | 01-02-2005 06:23 AM |