1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

vb:raw inside vb:literal

Discussion in 'vBulletin' started by Instynct, Sep 11, 2011.

  1. #1
    Alright so basically I need to use the value of my vb:raw inside my javascript on the page. How do I call it from inside the vb:literal tag?

    Thanks for any help :)
     
    Instynct, Sep 11, 2011 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You can't... everything within vb:literal is just that... literal text.
     
    digitalpoint, Sep 12, 2011 IP
  3. Instynct

    Instynct Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I found the solution, in my vb:literal all I had to do was this </vb:literal>{vb:raw userid}<vb:literal>
     
    Last edited: Sep 12, 2011
    Instynct, Sep 12, 2011 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    If you could insert variables inside of a literal tag, it wouldn't be much of a literal tag, now would it? :)
     
    digitalpoint, Sep 12, 2011 IP
  5. Instynct

    Instynct Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    </vb:literal>{vb:raw userid}<vb:literal>
     
    Instynct, Sep 12, 2011 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    Right... literal means just that... no processing of variables or replacements within it... just spit it out as literal text.
     
    digitalpoint, Sep 12, 2011 IP