1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Node ID Codes - What are they?

Discussion in 'Styling and Customization Questions' started by MichaelCS, Oct 8, 2014.

  1. MichaelCS

    MichaelCS Member

    So I have the following code...

    Code:
    http://www.sitename.com/index.php?forums/{$forum.node_id}/&order=rating_count
    and that is great for if you are using friendly URLs, but I'm not.

    Anyone know what the code would be to pull the ENTIRE node name + id? for instance...

    Code:
    http://www.sitename.com/index.php?forums/oxide.30/
    
    What could would pull that oxide.30 part?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Friendly URLs has nothing to do with that.
    Friendly URLs relates to the index.php? portion of the URL.

    What are you trying to do?
     
  3. MichaelCS

    MichaelCS Member

    So I am wanting to generate code like this "http://www.site.com/index.php?forums/tbt-7k.83/&order=rating_count"

    Essentially, for each thread list I want to have an option that allows people to sort that particular node by the star ratings that each thread contains.

    The code below only displays the node number...

    Code:
    http://www.sitename.com/index.php?forums/{$forum.node_id}/&order=rating_count
    
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    If this is related to an add-on, you will need to post in the add-on thread.
     
  5. MichaelCS

    MichaelCS Member

    The "&order=rating_count" is part of an add-on but the prefix to that is part of XenForo. I already know the suffix code to sort it.

    If {$forum.node_id} displays just the node number ID number what code displays the whole thing? The node name AND number? example index.php?forums/michael.21
     

Share This Page