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

'Add Another' link in options.

Discussion in 'XenForo Development Discussions' started by Matthew Hawley, Jul 14, 2013.

  1. Matthew Hawley

    Matthew Hawley Well-Known Member

    So what if I wanted to have 5 text options and wanted to have a 'add another' link to add another text option. How could I do this?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Do you mean like the list of Facebook Admins you can configure in Admin CP > Options > Facebook Integration?

    Use the settings of that option and its template as a reference.
     
  3. Matthew Hawley

    Matthew Hawley Well-Known Member

    I can't access facebooks code besides inspect element. I'm not sure how that's gonna help for xenforo.
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    What are you talking about?

    Read my post again, I'm talking about XenForo.
     
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    Chris is telling you to look into the XenForo ACP and use the basics of the Facebook integration code there (for the option) to learn how to accomplish what you want. You will need to be in debug mode.
     
  6. Matthew Hawley

    Matthew Hawley Well-Known Member

    Ohhh I thought you were talking about something else.

    Now, how do I get two text boxes next to each other. For example.

    (Text box) (Text Box)
     
  7. Matthew Hawley

    Matthew Hawley Well-Known Member

    I need to change some of the text on here. When I go to admin templates no templates show.

    image.jpg

    image.jpg
     
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    CSS. But really, is it worth the trouble to get them on the same line?
     
  9. Matthew Hawley

    Matthew Hawley Well-Known Member

    Well actually I need them on the same line.

    [text title] [link]
     
  10. Jeremy

    Jeremy XenForo Moderator Staff Member

    Then you'll have to modify CSS and HTML. Use Facebook's code as a basis, not a copy and paste.
     
  11. Matthew Hawley

    Matthew Hawley Well-Known Member

    I got this. I need those two options together. Could you give me the CSS?

    image.jpg
     
  12. Jeremy

    Jeremy XenForo Moderator Staff Member

    The system isn't design to have two separate options together completely as you want. Any type of CSS solution would require it to be the same option. Open up Chrome's element inspector and start messing with CSS. Its the best way to learn.
     
  13. Matthew Hawley

    Matthew Hawley Well-Known Member

    I know Jakes route changer does it. I'll look at his later.
     
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    He is using a custom display, with custom backend handling (to store the option) and each one that is displayed on the same line is within the same option.
     

Share This Page