vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   where the error vb4? (https://vborg.vbsupport.ru/showthread.php?t=229249)

Adem GEN? 12-01-2009 12:50 PM

where the error vb4?
 
1 Attachment(s)
Hi,

No problem for vBulletin 3.8.4

Not working for vb4xx
Problem list is empty

This vB 4.xxx
Attachment 107027

This vB 3.xxx (No problem)
Attachment 107026


PHP Code:

            $show['soyadlar'] = $vbulletin->options['soyadi_listesi'] ? true false;

            
$soyadlar explode("\n"$vbulletin->options['soyadi_listesi']);
            foreach( 
$soyadlar AS $soyad ){
            
$soyadlarial .= '<option value="'.$soyad.'">'.$soyad.'</option>';
            
$templater vB_Template::create('telefon_listesi');
            
$templater->register('soyadlarial'$soyadlarial);
            
$templater->render();  
            
            } 

Can you help please?


Best Regards

Lynne 12-01-2009 01:46 PM

And what is actually coming out in the source code?

And I think you should be doing something like:
PHP Code:

$whatever $templater->render(); 

And then registering/using $whatever for use in the 'next' template.

Adem GEN? 12-01-2009 02:27 PM

I'm beginner
With your help for myself I am trying to do something

$templater = vB_Template::create('telefon_rehberi');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('soyadlarial', $soyadlarial);
print_output($templater->render());

Added, now complete

Thank you very much


All times are GMT. The time now is 11:47 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
  • Page Generation 0.01002 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete