vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

kh99 08-02-2011 02:24 PM

Quote:

Originally Posted by mdelcour (Post 2228170)
I'm hoping someone can point me in the right direction here. I am needing to align an Iframe on the same line as a flash object. I created a new page via Lynne's incredible article. Now I'm just needing to set these two objects side by side instead of being one above the other.

I'm not the best person for these kinds of questions, but I think <p> starts a new line, so maybe if you just took those out? Or replace them with <span>...</span>?

Reycer 08-02-2011 02:57 PM

Quote:

Originally Posted by kh99 (Post 2228179)
I'm not the best person for these kinds of questions, but I think <p> starts a new line, so maybe if you just took those out? Or replace them with <span>...</span>?

I got it figured out.

ilanyon 08-03-2011 05:59 AM

Quote:

Originally Posted by Lynne (Post 2227491)
Your navtab template is all messed up. Your html is totally incorrect. firefox and other browsers are most likely "correcting" it for you and IE is giving you exactly the mess you are outputting. This is the html you have for what should be the third tab (you have a blank <li> </li> for the second tab, and your fourth tab, according to your html, is the About Us tab)...

If you need more help, you really need to post int he main forums as this isn't a thread for fixing html problems in your navbar template.

Thanks Lynne,
Fixed it. Actually had nothing to do with the navbar template being "all messed up" as you so eloquently put it (and given that you just took the page source code, not sure that you could say so with such confidence as you did...)

The problem was that I had placed an 'if member' condition around some java while trying to restrict the sub-navbar to members only...my bad...

I'm really sorry that I inconvenienced you so, as I was just looking for some help from more experienced people like yourself.

Regards,

Ian

cellarius 08-03-2011 09:59 AM

Quote:

Originally Posted by ilanyon (Post 2228551)
Actually had nothing to do with the navbar template being "all messed up" as you so eloquently put it (and given that you just took the page source code, not sure that you could say so with such confidence as you did...)

That's funny. What would you suggest other than looking at the page source to determine wether what's being send to the browser is a mess? Having looked at it myself just now, be assured: it is a mess, and Lynne even told you why.

maxie 08-16-2011 11:55 AM

i install pretty cool but i have problem on this two plugins '

hook location - online_location_process:

and

hook location online_location_unknown:

where do i put this two codes ?

how can i add this code to my template

kh99 08-16-2011 01:23 PM

Quote:

Originally Posted by maxie (Post 2234147)
...i have problem on this two plugins '

hook location - online_location_process:

and

hook location online_location_unknown:


where do i put this two codes ?

You need to create two new plugins, by going to "Plugins & Products" -> "Add New Plugin". The code goes in the large text box and you need to select the hook location from the dropdown menu. You also need to enter a title, and to select the "Yes" radio button to actuvate the plugin.

Diwanalk 08-18-2011 12:40 AM

1 Attachment(s)
Hello Lynne and all,

I'm rather new to VB and trying to learn. Your tutorial was a great help and following it I managed easily to create a page which works very well, thanks a lot for it. But I have a slight problem which I can't explain : at the top of this particular test page are some strange characters which don't appear on other pages. I join an image so that you can see it.

I verified that there was absolutely nothing before the <?php in the php page and before the {vb:stylevar htmldoctype} in the template, and I made the pages with Notepad.

Any idea ?

Thanks for your very useful help

Attachment 132056

kh99 08-18-2011 12:09 PM

I've seen that before but can't remember what was causing it. But you have to remember, vb works by collecting up all the output into a string and printing it at the end. So those characters could come from any code that's executed, and not just from the very beginning of the script.

cellarius 08-18-2011 01:26 PM

And notepad is not a suitable editor for web used files. Use notepad++ instead to edit and save files.

Diwanalk 08-18-2011 06:23 PM

Quote:

Originally Posted by kh99 (Post 2234913)
I've seen that before but can't remember what was causing it. But you have to remember, vb works by collecting up all the output into a string and printing it at the end. So those characters could come from any code that's executed, and not just from the very beginning of the script.

I tried removing completely the content of the template, it's still there. I tried removing line after line the content of the php file, it's still there. The only way to have it gone is to remove the whole content of the php file between <?php and ?> :(

@Cellarius : it's Notepad++ I meant, of course ^^

Thanks for your answers anyway

Edit : I just tried to use a hook instead of an external php file, following the method of Cellarius
Code:

$templater = vB_Template::create('my_own_template');
$templater->register_page_templates();
print_output($templater->render());

and there are no more extra characters.


All times are GMT. The time now is 11:08 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
  • Page Generation 0.01653 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete