![]() |
|
Article Options |
#46
|
|||
|
|||
Originally Posted by NTLDR
Awesome, that was it. Please give yourself a secondary title of booty-kicker. Thank you
![]() No members have liked this post.
|
#47
|
||||
|
||||
Originally Posted by VodkaFish
I've been trying to get my gallery to work all day long...if I put the template calling at the end of the file, it will load the images ABOVE the header...if I add the template calling before the images, nothing will load after the header...
Its driving me mad...here is my thread I also tried editing another gallery script, but I ended up with the same problems, images would only load above header, but nothing would load under it. No members have liked this post.
|
#48
|
||||
|
||||
it looks like your hard coding the file, this howto deals more with using the template system directly
__________________
Looking for ImpEx?
No members have liked this post.
|
#49
|
||||
|
||||
Originally Posted by Faranth
Seems so, so there is no way to add footer/header templates to hard coded page then?
No members have liked this post.
|
#50
|
||||
|
||||
Im sure there is, but i dont know how to do it really
__________________
Looking for ImpEx?
No members have liked this post.
|
#51
|
||||
|
||||
Cool, waiting for further instructions.
No members have liked this post.
|
#52
|
|||
|
|||
im confused - how do i make the navbar i have included in my page change to show your status as logged in?
No members have liked this post.
|
#53
|
||||
|
||||
Originally Posted by mossyuk
This is nice stuff here Faranth, very useful.
I do have a question, how do I have "Who is online" show the location. IE: Gio "Unknown" main.php To Gio Test Page test.php No members have liked this post.
|
#54
|
||||
|
||||
I THINK i know how to do that, but i need to double check somthing ^_^
__________________
Looking for ImpEx?
No members have liked this post.
|
#55
|
|||
|
|||
Originally Posted by Gio Takahashi
This would all be done in the ./includes/functions_online.php file. I'll let Faranth finish this up as it is his "HowTo" thread.
![]() No members have liked this post.
|
#56
|
|||
|
|||
VB3, installing new templates
What is the recommended way to install/upgrade the series of templates used with a hack? (I know htl deals with this but...) Installing the templates manually is a pain and error prone, as is asking the user to go to the admin cp and upload the xml file.
How does one create a new template group? I imagine one has to install/overwrite the templates in the base style(s). As a hack is being developed (and templates changed), one also has to be sure that any modified templates in the main and other styles are flagged. I'm sure that tips on these points would be most welcome. No members have liked this post.
|
#57
|
||||||||
|
||||||||
Edit: Sorry I got told off for posting in the wrong forum.
I fixed the problem and to simply make a new page which utilises existing stylesheets and headers, technically all you need to do is: 1. Create Custom Template with everything you Require - Ensure you include your header, footer etc references, shown below.
2. In your new page - use the below code to invoke your template. (My Custom template was called "blah").
Tony. No members have liked this post.
Last edited by Sent1nel; 11 Feb 2004 at 19:30. |
#58
|
||||||||
|
||||||||
Originally Posted by Sent1nel
Your methdo should only work for vB2 $templateused is no longer a valid varible in vB3
__________________
Looking for ImpEx?
No members have liked this post.
|
#59
|
||||
|
||||
Hi, I am making a mod and im new to VB but Im a fast learner.
I want to load a template called (test) inside test i want to put rows from a db table (test) with value1|value2|value3 i want to print the 3values for each row in the table and display them in the html defined in the (test2) template... and then load the rest of the (test) template. Is this possible? Another question is: Would cases be suitable rather than all the ifs? or are ifs better? thanks for help. No members have liked this post.
|
#60
|
|||
|
|||
Sorry for the stupid question -
How does one pass a variable from a php script TO the template? I've got a file, page.php, that includes the basic instructions in the first post in this thread, ending with (eval('print_output("' . fetch_template('my_template') . '");'); It works great - 'my_template' contains $header, some html, $footer, and it renders the page as expected. However, in page.php I also define a variable $output = "some output"; I put $output in 'my_template' but it does not print out "some output" as expected. Again sorry I'm probalby out of my legue here but if there's an easy way to do this please let me know! TIA! No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 19:45.