SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    vBulletin Ajax help

    Problem solved, thank you.
    Last edited by Teckinno; Nov 26, 2006 at 21:56.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did someone help you?

    Btw, your url, vBulletin.com/org, doesn't go anywhere. Perhaps you meant the vB forums?

    I'm curious, what is this? What is interpreting those custom elements? Is that something that vB does?
    Code:
    <if condition="$show['pendingevent']">
    <else />
    </if>
    One more question please:

    You have php variables directly in (what appears to be) the html. How does that work without turning it all into a string and using "echo" or "print"?

    Thanks

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Mike,

    Yes, I ment the vBulletin forum and no, nobody helped me.
    I'm only interested into a vBulletin code solution, not something hard coded:
    Code:
    $xml->add_tag();
    vBulletin uses template conditionals based on variables stored into file/memory.
    For example, $show['pendingevent'] is a boolean variable, defined into the php file.
    That will perform 2 actions:
    Code:
    <if condition="$show['pendingevent']">
    	Your html code here
    <else />
    	Your other html code here
    </if>
    The above code, in PHP language is:
    Code:
    if ($show['pendingevent'])
    {
    	// Your html code here
    }
    else
    {
    	// Your other html code here
    }
    About the php variables:
    $event['actual'] returns a value stored into the database.
    It could be either 'Pending' or 'Value X'. Value X could be either INTEGER or VARCHAR.

    $event['actualphrase'] will always return 'pending' (lower case always).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •