![]() |
|
Article Options |
#46
|
||||
|
||||
You should not have to create/render any of those you posted there. When you go to render your own template, you would have this second line here to render those templates automatically for your page:
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#47
|
||||
|
||||
The problem is that I need the individual templates in variables. eFiction uses it's own template system and, barring a major rewrite of that code, the best solution I have is to export the templates, then import them into it's system.
__________________
The World of Necrotania - Story Writing Community No members have liked this post.
|
#48
|
||||
|
||||
... forget it, missed the answers on the next page
![]()
__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again. http://www.roma-antiqua.de No members have liked this post.
|
#49
|
||||
|
||||
What I can not run
In this thread the created tes.php created test template did not change anything Can not demonstrate this
How do I show? Regards No members have liked this post.
|
#50
|
||||||||
|
||||||||
Whoops. Find this line in test.php
And change to:
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#51
|
||||||||||||
|
||||||||||||
This does not exist
I want to show here is a variable Example:
HTML - template test
Does not appear on the page --------------- Added 28 Nov 2009 at 18:39 --------------- First message changed? I have to add the following for $adem variable is? $templater = vB_Template::create('TEST'); $templater->register_page_templates(); $templater->register('navbar', $navbar); $templater->register('pagetitle', $pagetitle); $templater->register('adem', $adem); print_output($templater->render()); No members have liked this post.
Last edited by Adem GENĒ; 28 Nov 2009 at 18:39. Reason: Auto-Merged DoublePost |
#52
|
||||
|
||||
Originally Posted by AdemGENĒ
Yes, you must register any variable you plan to use in your template.
![]()
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#53
|
||||
|
||||
Thank you very
Now okay No members have liked this post.
|
#54
|
||||
|
||||
How to show Whats going on Box on this new page?
No members have liked this post.
|
#55
|
||||
|
||||
I don't know, that article hasn't been updated. I would think the instructions are pretty much the same though.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#56
|
|||
|
|||
Thanks I use this article its very helphull for me
Can we add a widjet with a collum in the new page ? No members have liked this post.
|
#57
|
||||||||||||
|
||||||||||||
Ok I have tried every which way from sunday to understand how to be able to use this with a certain group of my scripts with no luck. Keep in mind any responses may have to be "dumbed down"
![]() Here is an example of how these scripts are set up. page is originally called as such
testpage.php would contain code
as well as
Of course all of the true scripting is located at /path/to/test.class.php can anybody be of help? I am hoping with an example I can finish the rest of my scripts which are similar and maybe get a better understranding so that I may do my other scripts which are different.
__________________
ahfb2000.com - HTML - Web Hosting Directory - Webmaster Tools - Webmaster Books Domain Names - PHP Scripts - Over 4000 5000 6000 ... 13,000 member strong Webmaster Forums No members have liked this post.
|
#58
|
||||
|
||||
And what if i have more than 10 Variables in a Template?
Do i have to register each variable ?
Does this way loose Performance (Many Class calls) ? Or is there a Array ? In my opinion the old way was more easier than this ! No members have liked this post.
Last edited by muratmunich; 15 Dec 2009 at 11:55. |
#59
|
|||
|
|||
You could put all youre variables into an array. Then you have only to register the arrayvariable.
No members have liked this post.
|
#60
|
||||
|
||||
Yep, that is what I did to a few of my mods. I had $variable1 and $variable2 and $variable3, etc. and just through them all into an array - $myarray['variable1'] and $myarray['variable2'] and $myarray['variable3'], etc. Then I just registered $myarray.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) 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 00:37.