[HOW TO - vB4] Create a own vBulletin page (without plugin and php file)
1 Attachment(s)
Here is a trick that allows you to create vBulletin pages without plugin or php files.
PHP Code:
|
I was wondering if this changed or not. Best to use this with a mod rewrite so it just don't look wierd.
|
Great info Allan!
|
without php file, mytest.php -->plugin
/forum/mytest.php --> /forum/misc.php??????????? Is this possible? |
I dont know but, ive worked this code ten ways from Sunday and it just reverts to the smilie list. Either that or the instructions are geared towards somebody with more experience then me, and im missing something.
|
Works just fine for me guys.
Allan, perhaps something you need to emphasize here.... - The template MUST be named custom_xxxxxx - change xxxxxx to whatever you want. - When call the page, you enter template=xxxxxx where xxxxxx is the part of the template name after custom_ |
Quote:
|
Quote:
|
Having problems with this,
Put the code in a custom template called custom_shoutbox but when you navigate to it then nothing loads? http://www.twingooc.com/misc.php?do=...plate=shoutbox EDIT: SORTED!! --------------- Added [DATE]1259851799[/DATE] at [TIME]1259851799[/TIME] --------------- Ok i have done a test template for a simple homepage layout here Can you see the second ''block'' how would i alight that to the right of the first block and also create a block to the left of that as well? So works out like a 3 column template? |
Quote:
|
:up: Thanks
|
I created a new nav link to my custom page, how do i make that link selected/highlighted as if its on that page? Currently keeps my Forum tab highlighted/selected?
|
I was thinking this might make an easier way to integrate my current php scripts, using this article to create header and footer templates. I should have known somehow some way things would screw up, it just seemed to easy.
PHP Code:
Gives me the error Quote:
UPDATE I found that due to the variables (/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header will not work, it must be done with the url Code:
include('http://www.ahfb2000.com/4test/misc.php?do=page&template=css2header'); allow_url_fopen = On and Allow_url_include = On Still have all 3 errors ...hmmm oops, forgot to reload apache, now my errors are Quote:
|
Quote:
PHP Code:
PHP Code:
Quote:
|
update..again
removing the htaccess, now it works perfect!! Problem is how can I have a secret hidden test folder to get everything setup :( --------------- Added [DATE]1260373985[/DATE] at [TIME]1260373985[/TIME] --------------- Lynne, I used your tutorial on my static pages, it is very well writtin and was easy to follow, worked a charm :). On my scripts, well that is a different issue. I read 3 or 4 different tutorials and just could not get my pea-brain wrapped around the concept. Once this one was published I knew that though it may not be the optimal method to use, I could probably make it suit my needs. Yes, it does have downfalls, I must either go live and do the work on the live pages without htaccess or find a way for the include to send the htpasswd (thinking it can be done but have not investigated yet). The biggest possible downfall is potential security issues having Allow_url_fopen and Allow_url_include = On. I have read there could be issues but have not read what these issues could be. Is it possible you could enlighten me to these issues and any others I may not be aware of? thanks |
Quote:
|
I am about to give up, using my method the login does not work. Lynne, this particular script I am working on is a very simple proprietary tool. I hate to post this here for help as there are many attempts on the net to copy it. Do you mind if I pm you?
|
For Privacy Policy the very good :up:
Thank you very much |
I've read and reread this article and completely do not understand it. Could someone give a step by step and explain things for a neophyte like myself. I am trying to wrap my site pages with vB headers, footers and widgets, and I think this is what this is supposed to do.
Any help is appreciated. Thank you. |
Any way to make these URL friendly?
Like mydomain.com/aboutus ? |
Quote:
Quote:
|
Quote:
I'm currently using Mattyasia's. Thanks for replying |
Quote:
What I am doing now is making a widget with HTML code in a Static HTML widget. Then I make a new layout with the Layout manager and place the widget into the center of the layout, just below the Primary Content. Then I go to to the Section Manager and make a new section naming it accordingly. And with the Layout window in the Layout editor, I select the layout I created earlier. This puts the content of the widget on the center of a page all by itself, if I want. The only problem that I am having is that not all of the HTML codes work in the widgets. Headers and Navigational commands within the widget either don't work at all or take you to the Home page in CMS. For instance, I have a very long article that is in a widget and navigation code that will take you to a section heading so that you don't have to scroll through a lot of text to get to that section. And after you have read that section you can click a TOP button that should take you back to the top of the page where the Contents are listed. Either link takes you to the Home page in CMS. Here it is: http://www.light-after-darkness.org/...ssion-of-Faith Clicking on a title in the Contents section should take you to that section, it doesn't it takes you Home. Clicking on "TOP" at the end of a section should take you back to the Contents portion of the article, it doesn't. Any ideas, after this long post? |
Quote:
|
Quote:
SEE ME So I don't think it is something wrong with the code. |
Quote:
Code:
http://www.light-after-darkness.org/forums/articles/WCF1.php#I On the CMS page, the link for the first article is: Code:
http://www.light-after-darkness.org/forums/#I Code:
http://www.light-after-darkness.org/forums/content.php?59-The-Westminster-Confession-of-Faith#I |
Would it be possible to get rid of what I have attached here in yellow?
https://vborg.vbsupport.ru/external/2009/12/79.jpg I'm finding it to be quite redundant and also I'm unable to separate the words about and us like I can in the blockhead. |
I suppose you could, but you'll have to edit your template. To find the template to modify, do this - 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.
|
Quote:
My apologies, I'm understanding what you told me but I'm not understanding why you told me and how this would get rid of the aboutus text? :confused: I've create a template called, "custom_aboutus". If I were viewing this in firebug, I could see that the line for the aboutus text is this: Code:
<span>aboutus</span> Code:
{vb:stylevar htmldoctype} Code:
{vb:raw navbar} Thanks |
I can't see the text when i write on this template what stylevar color i have to edit?
|
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
|
Would it be possible to get "aboutus" to display "About Us"?
https://vborg.vbsupport.ru/external/2009/12/79.jpg |
Quote:
Code:
{vb:stylevar htmldoctype} |
It doesn't work for me on RC4.
I get an object not found 404 error. I named the template custom_banners and i use this url: http://localhost/vb4scifiw/forum/mis...mplate=banners |
That URl wont work, as it's not a web link the http://localhost bit should be your website e.g my website is www.twingooc.com localhost wont work as a URL iirc?
|
Quote:
|
Quote:
Quote:
|
Quote:
Thanks for your reply. You code removes the blockhead, I want to retain it. Actually what I'm looking to do is change the text from this... https://vborg.vbsupport.ru/external/2009/12/68.jpg to this... https://vborg.vbsupport.ru/external/2009/12/69.jpg Any idea on how to accomplish this? I plan on creating a massive amount of customized pages, like 50+ pages, so I'm debating on whether I should go this route or go with Lynne's method of using actual php files. |
All times are GMT. The time now is 09:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|