Announcement

Collapse
No announcement yet.

"php direct evaluation" - Guide/How to

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [CMS] "php direct evaluation" - Guide/How to

    Hey guys,

    Anyone got a link to any docuemntation surrounding "php direct evaluation"?

    Specifically im looking to see if i can call a template to display.

    Thanks
    W W W . C L U B V R 4 . C O M
    Mitsubishi Galant & Legnum Owners Club

  • #2
    Certainly. See http://www.vbulletin.com/forum/entry...-Content-Types. There's an attached RTF file which uses two different templates to render the results.
    Please- I'm not tech support. Don't send your problem reports to me unless I've asked you to.

    Comment


    • #3
      If you mean the used template for the widget, you would need to change the used template
      Click image for larger version

Name:	Widget Manager - Forums - vBulletin Admin Control Panel_1282067690433.jpg
Views:	1
Size:	35.9 KB
ID:	3679870

      Comment


      • #4
        Cheers, but not quite what im looking for - ill continue to reverse engineer it but im looking for something much simpler.

        Basically id like to use the PHP feature to call a template, nothing fancy just go to templates pull that one and display the content.
        W W W . C L U B V R 4 . C O M
        Mitsubishi Galant & Legnum Owners Club

        Comment


        • #5
          I found the following, which is much much closer to what i need but i cant get it to work

          http://www.vbulletin.org/forum/showthread.php?t=236245
          W W W . C L U B V R 4 . C O M
          Mitsubishi Galant & Legnum Owners Club

          Comment


          • #6
            Try this:

            $mytemplate = vB_Template::create('templatename');
            $output = $mytemplate->render();

            You can pass variables to the template with
            $mytemplate->register('varname', 'value');
            Please- I'm not tech support. Don't send your problem reports to me unless I've asked you to.

            Comment


            • #7
              Brilliant, exactly what i needed, thank you very much Edwin.
              W W W . C L U B V R 4 . C O M
              Mitsubishi Galant & Legnum Owners Club

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X