vb:raw doesn't work any more

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Hewitt
    Senior Member
    • Apr 2000
    • 1195
    • 4.1.x

    [Forum] vb:raw doesn't work any more

    I'm sure this will have been covered elsewhere so apologies in advance.

    I have some simple code on my showthread.php e.g.

    if(something)
    $pickembar = "My Text";
    }

    vB_Template:reRegister('SHOWTHREAD',array('pickembar' => $pickembar));
    $templater->register('pickembar',$pickembar);

    Then in the template:
    {vb:raw pickembar}

    This has been working fine in vb4.1.1 and I haven't upgraded or changed the code, but I have moved servers, which I guess may have a different version of PHP? Any advice on how to get this working again?
    Motorsport Forums
  • Paul M
    Former Lead Developer
    vB.Com & vB.Org
    • Sep 2004
    • 9886

    #2
    I cannot see any reason a different version of PHP would make any difference, there must be some other issue would be my guess.
    Baby, I was born this way

    Comment

    • kh99
      Senior Member
      • Aug 2009
      • 533

      #3
      Originally posted by Mark Hewitt
      Code:
      vB_Template::preRegister('SHOWTHREAD',array('pickembar' => $pickembar));
      $templater->register('pickembar',$pickembar);
      You don't need both of these lines, and the second one will cause an error if $templater isn't set, so maybe try commenting out that one and see what happens.

      Comment

      • Mark Hewitt
        Senior Member
        • Apr 2000
        • 1195
        • 4.1.x

        #4
        No joy, the point is that this worked and worked fine for a year until I moved servers, with exactly the same code...
        Motorsport Forums

        Comment

        • kh99
          Senior Member
          • Aug 2009
          • 533

          #5
          nvm...
          Last edited by kh99; Mon 16 Jan '12, 4:17am.

          Comment

          • Lynne
            Former vBulletin Support
            • Oct 2004
            • 26255

            #6
            What hook location are you using?

            Please don't PM or VM me for support - I only help out in the threads.
            vBulletin Manual & vBulletin 4.0 Code Documentation (API)
            Want help modifying your vbulletin forum? Head on over to vbulletin.org
            If I post CSS and you don't know where it goes, throw it into the additional.css template.

            W3Schools <- awesome site for html/css help

            Comment

            Related Topics

            Collapse

            Working...