Quote:
Im assuming its the section in the showthread ??? Thanks for any info |
1 Attachment(s)
Quote:
|
Is there a way to add "who is viewing this thread" or in my case page to my custom page????
|
Quote:
|
Thank you for these instructions. I only have 1 question.
You said to create 2 new plugins. What do I name them? |
Quote:
|
Can someone please tell me how to add the vB sidebar to my own custom page?
|
Sorry folks, but I haven't read through this whole thread. I did see the first post where it suggests creating a template for a custom page.
I want to create a media kit for my site and I want to look good! I'm thinking it would be best to use some sort of page layout program (dreamweaver, etc.) and take the generated HTML and display it within my vBulletin 4.x site, probably in the content area. It could replace just the contents of a post or article, or completely fill the page between the header and footer. Ideally it wouldn't have to be recoded to be in the VB template language. How would I include the generated HTML in vbulletin? What about CCS files or anything else needed to display it inside of vBulletin? How would you suggest I proceed? And what's the best Mac program to use for the layout that's relatively simple but has some flexibility? Thanks! Barry |
Quote:
--------------- Added [DATE]1299794304[/DATE] at [TIME]1299794304[/TIME] --------------- Alternatively, Is there code we can add to the example Lynne provided that will bring in the cms layout? It may be just a matter of initializing and adding to the template? I have seen this which gives me hope: <div class="vbcms_content"> {vb:raw layout} </div> Then I could assign it to a section and category? That would be awesome! |
Hello all,
So if i have been ready it correct this is the way to get a custom homepage with the navbar and footer. Because i have been searching like crazy for it but if i can add my own html layout and still use the header and footer that would be great. This is correct right? Priest! |
Quote:
|
I just get the following when I navigate to http://www.mysite.com/test.php
'test')); eval('$navbar = "' . fetch_template('navbar') . '";'); // spit out template eval('print_output("' . fetch_template('test') . '");'); ?> Any Ideas? |
You've done something wrong. I suggest you redo it all and make sure you are using a plain text editor when creating the php file. like notepad.
|
Quote:
Another question if you don't mind... Please forgive me if my terminology is not perfect. I see that I can set values in the // ###### YOUR CUSTOM CODE GOES HERE ##### area and the register them for use by the template in the // ###### NOW YOUR TEMPLATE IS BEING RENDERED ###### area. However, I want to display the output from some php code. Is there a way to add the code and set it's value for template use? Or I guess, in other words, is there a way to run a php script and display it's output within the template? |
Quote:
|
Worked beautifully. Thank you Lynne :)
|
Excellent. I was able to make a very nice Privacy Statement rather than the pdf file I had before.
|
Hello,
Can anyone tell me how we view the page we have created, we followed all instructions but have no idea how to view the page. Please help?? |
Quote:
|
Hello Lynne,
Thanks for response, tried that this is what I get, sorry I am a technical idiot Mark Parse error: syntax error, unexpected T_STRING in /var/www/clients/client11/web26/web/custom.php on line 3 |
Quote:
|
We have fixed errors but now get a blank white page
|
Quote:
|
yes
|
Then check your error_logs and see if something is in there. Otherwise, go through your php and debug as needed (remove/comment out stuff, etc.).
|
our template is called new custom page but our php file is called custom, would that cause a problem
--------------- Added [DATE]1301338367[/DATE] at [TIME]1301338367[/TIME] --------------- Sorry stupid question but where do I find the error log |
It does not matter as long as you make sure to put the correct template name where needed.
If you don't know where your error_logs are, then you need to ask your host. |
this is the code we used
<?php error_reporting(E_ALL); define('THIS_SCRIPT', 'custom'); define('CSRF_PROTECTION',true); $phrasegroups = array(); $specialtemplates = array(); $globaltemplates = array('custom',); $actiontemplates = array(); require_once('./global.php'); $navbits = construct_navbits(array(''=>'Register')); $navbar = render_navbar_template($navbits); $pagetitle = 'Porsche Planet Register'; $templater = vB_Template::create('custom'); $templater->register_page_templates(); $templater->register('navbar', $navbar); $templater->register('pagetitle', $pagetitle); $templater->register('page', $page); print_output($templater->render()); ?> |
According to your code, the name of the template is "custom".
PHP Code:
|
I am not well versed with php, but I thought I would ask here for some help. I have a file on my site that is html and javascript. I used this article to convert it to a php file. Well, for the most part, it works. However, it shows adsense double and the footer is at the top. lol
Where did I go wrong? |
Hello Lynne,
we have changed the names to match but still just a blank white page, any chance you would consider having a look?? regards Mark Update: Okay we seem to have something working here but just the header and footer but not the HTML we inserted, will fool around and see what we have done wrong here. --------------- Added [DATE]1301403637[/DATE] at [TIME]1301403637[/TIME] --------------- Have managed to get it sort of working, there is a problem with our background not showing through as it hides behind the standard white page. I want to instert my custom HTML page between the header and the footer, I dont want the title or standard background to show, just the header and footer with all standard functions, but my own images and text in between the header and footer. Can anyone help me here?? Another Update: Okay we seem to have resolved most issues and this is a great mod Lynne thanks for all the hard work. One issue, on this page I need a different background that my standard VB background that is preset for all the other pages. We tried to somehow have an image coded into the background via HTML but it then hides behind the standard VB page and does not cover it, still trying to work it out, any ideas anyone?? |
Quote:
Quote:
|
Where does one create the template suggested in step #2?
|
[QUOTE=Lynne;2178776]Post a link to the page so we can see it and post an image of what you want it to look like, that way we can make a CSS recommendation.
Hello Lynne, site is not currently active I can pm you a test log in if you be prepared to check it for me regards Mark |
Quote:
Code:
{vb:stylevar htmldoctype} |
Quote:
Quote:
Quote:
HTML Code:
<div align="center"><form name=ipz><table style="font-size:11pt" |
Can these pages be modified in a program like Dream Weaver and then saved in the template? Would that create any issues?
|
Quote:
|
What have you used Lynne?
I was just hoping there's an easier way to add the break, bold, etc. tags to the page. |
Quote:
|
All times are GMT. The time now is 12:22 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:
|