A custom site? You mean in the template for this page? You can use {vb:raw bbuserinfo.username} in a template.
|
Yes, this was exactly it. Very easy ;-). Thanks a lot!
|
My forum is forum.com. However, I want to make a page at forum.com/pages/default.php
How do I go about doing this? I tried a couple of changes but no success. |
Quote:
All my pages are in a folder called pages so here is one of mine as an example. It is a page called "About This Site" and what you need to be aware of is the line that starts with "chdir" as this is where you will need to insert your site details so it changes the directory to where your forums are. Code:
<?php |
Thank you so much!! I will work on this now. I really appreciate it.
--------------- Added [DATE]1287381349[/DATE] at [TIME]1287381349[/TIME] --------------- My forums are located at forums.com however, I want the pages to be in forums.com/pages/ - however, when I change the location to home/ACCOUNT/public_html/pages it doesn't work. I get this error: Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ACCOUNT/public_html/PAGES/mypage.php When I install on the forum root, however, without any modifications it works like a charm. How can I get it to work in this directory? --------------- Added [DATE]1287381571[/DATE] at [TIME]1287381571[/TIME] --------------- Nevermind, I got it to work. Thank you! |
Hi, can I use $_GET from the test.php ?
|
Of course. You can use any php code. But you should use the vB input cleaning mechanisms: https://vborg.vbsupport.ru/showthread.php?t=119372
|
I've got a custom page that shows a search form, it then posts the result back to the same page. This works well if nobody is logged in.
If logged in you get the error: Quote:
|
You forgot to put the securitytoken into the form. Do a Search in Templates to find it used in other forms and use that code.
|
I've coded the form within the php page, not the template. Should the form be coded within the template page instead?
|
Quote:
|
Thank you Lynne for showing me how to do this. Now I can make a cutom home page with using VB templates.
------added-------- i wanted to make a page out of my vbulletin forum root. I keep getting this error and I have been stuck ever since. Fatal error: Call to undefined function construct_navbits() Anyone can PM me too if they want more details |
I tried as instructed. Everytime I click on the the new navigation, it takes me to the new page but the tab jumps over to the forum nav. What am I doing wrong?
|
Quote:
|
Quote:
|
Quote:
|
Yes. It's not the template. It's working now that I installed a new nav hack. It's very easy. Btw, I found your article on removing various navtab very help. I couldn't figure out how to remove the What's new. Thanks!!!
|
How do I allow my pages to use the do action like my old one?
Code:
eval('$navbar = "' . fetch_template('navbar') . '";'); |
Quote:
|
Why does this show at the top of every page?
$stylevar[htmldoctype] |
Quote:
|
Hi,
The copyright in the footer for the new page I was creating has now disappeared, since upgrading to vbulletin 4.1.0 PL2. PHP Code:
PHP Code:
PHP Code:
Thanks. |
Are you running 4.1.0 PL2? Or PL1 or no PL at all?
|
Sorry, post edited. PL2
|
Quote:
|
Original post updated.
This worked fine with 4.0.x until updated to 4.1.0 PL2 Any other mods that I have installed, the copyright for them has also disappeared. e.g. VB Pro Garage Timeslips 3.0.7 |
I don't know what you mean regarding the other mods (or what they have to do with this page). Have you tried putting the file contents directly into the main file and seeing if it works there? Or setting it to something else in the file to see if it works? Like I asked, what have you done so far to try to troubleshoot this?
And actually, you say it used to work? I could have sworn the footer template gets rendered when global.php is called, so I'm not sure how it could have worked before. And yes, I just checked and it is. You can't call your file that has a phrase to be used in the footer template *after* the footer template has been rendered. |
I got the new page up and working but when I put the following code into the template it will not load the Flash file.
PHP Code:
PHP Code:
Any help would be great appreciated as I do not have much hair left to pull out. |
What exactly is the result when you put that code in the template (do you see it? Is it in the page source? etc)? Do you have a link?
|
It looks like it is trying to load but doesn't. Here is a link http://forums.thecustomsabershop.com...mhsbuilder.php
|
Put in the full url for your swf.
|
Tried that already.. Its in there now though if you want to take a look. I can also remove those 2 lines of code to show that it loads fine without them. Something in the headinclude and headinclude_bottom make it not load. I am just not sure what.
EDIT.. Actually it does work now in firefox just not IE DOUBLE EDIT.. added one more full URL and it works fine now.. DUH!! Thanks and sorry for wasting your time. |
Can you create a second page that doesn't have the header/navbar so I can compare the two?
|
It works now when I put in the full URL. Evidently the headers change the working directory which made it not load without the full URL.
|
Great! :)
|
would this still work in a sub-folder?
--------------- Added [DATE]1292675660[/DATE] at [TIME]1292675660[/TIME] --------------- I'm struggling here on a test page; Why wont it allow the 'php include' function to show. <div class="blockbody"> <div class="blockrow"> Testing this page for php input. <?php include("offers/choice_ad1.php"); ?> </div> </div> |
Quote:
|
First, thank you for this. I learned a lot and have a few things planned!
When following the example, I noticed that if you went to the url: http://www.yoursite.com/test (with no .php) the page still comes up fine, but the online locations page would break. I fixed this easily by adding an extra statement to the switch in the plugin using the online_location_process hook: PHP Code:
|
Thanks for posting that. I'm guessing you are correct in that it has something to do with the mod rewrite rules because I can't go to just mysite.com/test and get the same page.
|
Quote:
|
All times are GMT. The time now is 01:20 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|