Quote:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
Quote:
|
I think I might have suused the issue. When I put in custom variables it doesn't like them e.g
// ###### YOUR CUSTOM CODE GOES HERE ##### $pagetitle = 'My Page Title'; $pagead = 'trial'; Then in template add {vb:raw pagead} Nothing shows, but alter the standards and the standards work fine. |
Quote:
|
Quote:
|
Quote:
PHP Code:
PHP Code:
|
Quote:
I found the answer in another thread of yours on vbulletin.com and used the following which works a dream. PHP Code:
|
Lynne,
First Thank you for helping everyone. My issue is a little more complexed I understand how to add a page and I completed it pretty quick (just your test page) Now that I have learned that what I need to do is get a bit more complex. I have a custom app I am trying to bring into vb4.x. Someone else had it in 3.8 but it was very sloppy and I want it to be perfect. So here are the first set of questions: 1. how do I add conditions in the template for if guest show this "please register" if Registered but never filled out app show this "Please Fill this out" If registered and filled this out show "Welcome Back." now all of this is already in PHP in my file but I want this app to be perfect like I said. 2. In my PHP file they have html / php mixed mainly queries of the database, display results, and $bbuserinfo[useremail], etc... Please go slow I am not a programmer but I want to learn how to do this. Thank you for your time |
This is an article about how to create another page. For your questions....
1. Read the other articles in this forum about conditions. If you have questions, post them in that article. If you can't get your page to work, you need to post your own thread with the complete code for your page and templates. 2. Not sure what your question is there as it's just a statement. |
Thank Lynne, I have started my own thread over here (in case you still want to help me)
My First Import |
Can you tell me what I'm doing wrong here? This script should be returning and printing out the id field from all entries in the database yet it only returns and prints the last id.
http://vb.newcelica.org/test.php Code:
$navbits = construct_navbits(array('' => 'Test Page')); |
Quote:
|
Any ideas how to get the like button to show on the page?
|
Quote:
|
hi i tried this but no luck using vb 4.1.0 PL2
test.php PHP Code:
HTML Code:
{vb:stylevar htmldoctype} |
Quote:
|
The page is working fine, but when it displays the new (Gallery) page, the Forum tab is up instead of the new (Gallery) tab and the submenu for Forum is showing. Any ideas?
--------------- Added [DATE]1294962412[/DATE] at [TIME]1294962412[/TIME] --------------- Never Mind. |
Hello Lynne,
I used this thread to create a Google custom search results page and it works great. However, my problem is I have Google adsense ads in the navbar and footer, how do I exclude the ads from the "search results page" as they are against Google terms of service? |
You would need to put a condition around the code in the ad to not show it on this page. (Use your definition of THIS__SCRIPT in the condition.)
|
Thank you Lynne for helping me and everyone else with in this thread...
Here is the condition I used around the ad, works great. Maybe this will help someone else! Code:
<vb:if condition="THIS_SCRIPT != 'Your_Definition'"> |
Hi Lynne - I'm wondering if you can help me. I have tons of pre-existing custom HTML (actually .php) pages, all which leverage a server-side include, let's call it header.php.
I'd like to replace the contents of header.php with something that would allow all of my pre-existing pages to automagically support my vbulletin header and navigation. All these pages also reference a footer.php, if that is helpful to the cause (but that's easy enough for me to replicate, at least visually what is shown to the user). --------------- Added [DATE]1295192670[/DATE] at [TIME]1295192670[/TIME] --------------- Quote:
|
Sorry tonmo, but I don't understand your question at all. This is just a tutorial on how to make a single custom page. If you want to reference other scripts in the page, that is fine, but you need to write the code in those scripts and write the code in the php page. This isn't a tutorial on how to write your code.
As for the undefined error.... you need to change Your_Definition to a valid name or that isn't going to work. |
To clarify - I have dozens of static php pages that I created long before I implemented vBulletin. The page format is this:
HEADER .. UNIQUE ARTICLE CONTENT .. FOOTER The HEADER and FOOTER are separate included files (i.e., header.php and footer.php); they are common across all article pages. I am wondering if there is any common vb4 code I can put into the header and footer files in order to wrap all of these articles into the vbulletin look and feel. I'm running 4.1.1. Does that help explain what I'm trying to do? |
Quote:
|
Quote:
|
Quote:
All of my static pages exist in different places throughout my site, and have signifcant inbound links that I don't want to break. So far I've found two ways to convert them into vb pages: 1) Simply create new Article pages via CMS and copy/paste the original article contents into the new file. Convert the static page to a permanent redirect which points to the new CMS article. 2) Use the method described in this thread (How To Create Your Own vBulletin Page). I'm finding both to be a bit labor-intensive (I have dozens of pages). Maybe 5 or 10 mins per article - those add up! Since all my static pages use server-side includes for the header and footer, I was hoping I could insert the logo, ad, and navbar at the top, and the footer at the bottom, so that I would only need to edit two files (the two includes) and viola! My site is converted. Seems that's not an option? |
Good article, thank you. ;)
|
I must be truly dumb, as I can't get this to work. I don't know what to use as a "link.php". Also, should the drop down appear if the link.php doesn't exist?
Stupid I'm sure. |
Quote:
|
Geez, I can't even post in the right thread.
|
Would someone who's gotten this up and running please PM me?
Thanks in advance |
Hi, would it be possible to add any information from a user's profile (Profile, Image Options, User Profile Fields) to a custom site? I have all the conditions etc., e.g. from postbit_legacy, but I don't get any of these to be displayed on a custom site. Or would I have to change the php file, or add something to the head of my custom site...? Sorry, I am lost, would be great to get a hint here. Thanks in advance.
|
Quote:
|
Phew, this means I need to find out which php is behind each condition? Would you know a trick to do so? Firebug doesn't help on this I am afraid. Let's say I want to copy the content from postbit_legacy to a custom site, how can I find out the correct php file? Can I just copy the content into the according php content of my custom page?
Just a little hint and I try my best to go on alone ;-). Thanks a lot for you quick help Lynne! |
Is it possible to get the "whos viewing this thread or post" box at the bottom of my custom page?
|
Quote:
|
I have found with 4.1.1 that:
- If I have the forums in my root - My pages in a folder /pages/ - I use the chdir ('/home/xxxx/public_html'); The page displays with correct styling ONLY if I have the vb option "Always use Forum URL as Base Path" set to Yes...If I set it to No (which I need to do) I lose all the styling from the vb style Anyone come across this and know of a way around it? |
All times are GMT. The time now is 12:45 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:
|