Quote:
|
Hey :)
What if I wanted to just clone the Home page? Meaning the first tab on the navbar 'Home' when you click it it takes you to the Home page where you can add articles. If I want a new page, lets call it 'Zome' I can make the new navbar tab called 'Zome' but what about the content page to go with it? Thanks |
The next part has become complicated for me. I even have no idea where to place those scripts.
|
OK I worked it out, thanks.
|
Hi,
I have a flatcast radio. So I added the following code to the php file. Code:
$HTML .='<div align="center"><IFRAME height="500">.......</IFRAME></div>' |
1 Attachment(s)
How to view a item from database
i have create a test page that followed this tutorial it work fine but i want to connect some item into the database the test.php Code:
<?php within data table i dunno how to put (variable of item) into the template page and they will show in the page any help will be appriciated also help create the xml file for this test if you guy needed i create it on local machine therefore i don't have a link |
If your variable name is $categories, then register it for use in the template:
PHP Code:
HTML Code:
{vb:raw categories.whatever} |
thanks Lynne
I tried it but nothing show Code:
$templater = vB_Template::create('TEST'); |
Well, you never did anything with $categories, so nothing is going to show up from it. You just have an empty while loop (and not even really that).
|
thanks for reply Lynne but i still dunno what is exactly your point and this is a point i'm not really got it
so, i'm going to put something in while loop like Code:
// ##### Initialize categories connection #### {vb:raw categories.name} do i have register the varialbe ($name, $des) for template? --------------- Added [DATE]1273540800[/DATE] at [TIME]1273540800[/TIME] --------------- and i tried to register them under $categories : Code:
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ###### the first item name: testing 1 it shows "t" only :confused: |
You would have to do something in here if you are in a loop:
PHP Code:
|
i was wondering..... is there a way i can add a forum to display on this custom page say for example the default main forum...or rather just the posts from that forum itself and if so how can i do this.
by the way.. this is by far one of my favorite things i have seen here at vb.org thank you so much. |
Quote:
|
Quote:
Btw It is you I am thanking for this thread...I love to try out products but things like this is what helps me understand how to better operate and modify vbulletin. So a proper thank you for this thread and your lightning response to my question :-) :up: |
thank you Lynne
from the post #291 that mean i have to create more tepmlate as TEST_1 for initial part of category. is it correct Lynne ! :) i am going to try it and let you know thanks again Lynne but how about template code i will use {vb:raw my_output.part of loop} (part of loop : $ name, $des right !!! or till the same {vb:raw categories.whatever} (whatever : name, des ) would you please ...... Lynne |
Quote:
Quote:
|
thanks Lynne
i got it, the way template work on VB4 Once again thanh you very much for your time Lynne i thought i need one more step about how to use a file CSS or connected it into a template i am going to create the TEST.css template (with google grids or kind of CSS for 2 or 3 columns) then on the top (head part) of the main page of cust_page put this link in Code:
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}TEST.css" /> thanks for all who distribute this knowlege Best regard, |
Would it be possible to put a widget on such a page? If then how?
|
Possible? Almost anything is possible if you code it. I do not know how to put a widget on the page, however, and I imagine it would be a lot more coding that just putting a custom block of your own on the page would be.
|
how to create multiple template under $_REQUEST[do] Lynne
i tried to get more template (on test.php) but i don't understand how to make a second template for it any help ! |
Quote:
PHP Code:
|
thank you Lynne
in the template "TEST2" it has carry on the head and footer like the template TEST is it correct ? |
TEST2 would look like whatever you make it to look like. You could even just use the exact same template, TEST, if you have the same variable names and such. I'm just giving an example in my post.
|
i got a second template as you sample. Lynne thanks
but i can put out the info from database (it's blank) it's so complicated to me Code:
// initialize db content i insert these line {vb:raw my_doc_view} (the other template i call TEST_2) and in the template TEST_2 i tried to point some info that i already register : {vb:raw title} {vb:raw content} then i got a blank view any idea Lynne |
Quote:
And if you are getting a blank page, it could be that you didn't put the template into the style you are using to view your page. |
oh okay Lynne, thanks for your time
but the problem it not on the second template page It shows out fine without the info that i try to put out from database however, sorry about mess up the posting here Lynne Sincerely, --------------- Added [DATE]1274051701[/DATE] at [TIME]1274051701[/TIME] --------------- well, finally, i got them all Lynne thank you for you time I took the sample from file profile.php of vbb4 and study the way they used the template "USERCP_SHELL" and apply your tutorial and now my test page it word great some kind of variable as Code:
// set shell template name Just call variable by {vb:raw whatever} hope this help somebody who likes me :)) Sincerely, |
I did this and it works perfectly. Unfortunately it won't work with PHP files that I am trying to include in my custom page. I made a thread about it here: https://vborg.vbsupport.ru/showthread.php?p=2038959
Can Lynne (or anyone?) help me get this working? |
It looks like Cellarius helped you out and you are now up and running. :)
|
can anyone help me with this one - so I'll be able to convert all my old codes to the new vbulletin system? heres the thread I made with a describtion of my problem
|
I have a simple question. I want a customer page that displays a table I created in Dreamweaver. Where do I place the html to have it display on my customer page?
|
Quote:
|
Quote:
Further, the page is viewable (unmodified) but not as a part of the VB framework. It is just blank page, without the tabs, headings and so forth. |
Quote:
|
So after you create the new test.php and the new template how do you get them to show up on your site? I assume you place the template in your template files, but what do you do with the test.php file?
--------------- Added [DATE]1275957752[/DATE] at [TIME]1275957752[/TIME] --------------- Ok i figured it out. You just place it in the main VBULLETIN folder that will be titled "forum" if you followed the install directions exactly as they are on the vb website :) |
You need to upload test.php to your site.
|
From an SEO perspective is it better to have the html code in the php file instead of using a template?
|
Really? Why?
You can put the php in the php file, it's just not as easy as using a template, but you are free to do it however you want. |
Thanks Lynne - but I am just asking which way is better for SEO or doesn't it matter as the bots will find it all just the same?
|
It doesn't matter
|
Thanks for posting this.
However, I'm receiving the following error on my page: >> Parse error: syntax error, unexpected T_VARIABLE in /home/bostonwh/public_html/adhub.php on line 44 ...where line 44 is as follows: $templater = vB_Template::create('adhub'); ... and I DO have a template defined by that name which is identical to what you have above (though, I'm wondering if it's acceptable for me to have 'test' and 'TEST' be the same term - which in my case is 'adhub' for both) |
All times are GMT. The time now is 05:31 AM. |
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:
|