+ Reply to Thread
Results 1 to 7 of 7

Thread: Why dont this button work ?

  1. #1

    Why dont this button work ?

    Im working on 'listing_details.tpl' trying to make a button if they use a field with link.

    The code that i thought would work are:
    PHP Code:
    Only registered members can view the code
    Im thinking like this that if that item key are used it will be using the button class.
    But it just looks wierd and not where the actual item key are placed on the site.

    Will this not work or am i doing something wrong ?

  2. #2
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    It should works is properly. But you need as add the field "produkt_lank" to listing form in admin panel.

    Code:
    Only registered members can view the code.

  3. #3
    I have a listing field "produkt_lank" where they fill in the direkt link to their product that they want to sell to make it easier for visitors to go and buy it.

    I place the code in "listing_details.tpl" but it doesnt work as it should.

    I have made it so it make a button but it uses the link as a name making the button long because it takes all the text and not only the link from the value.

    It only makes a new line and not taking the existing field value and make that into a button.

    Here you can see how it look:



    How it looks when i view the site in html mode.
    PHP Code:
    Only registered members can view the code
    Here you see the code and where i have put it.
    PHP Code:
    Only registered members can view the code
    I guess the best thing should be to make the existing URL into a button but i dont know where to change that.
    I have looked some in the admins tpl but it's hard to find.
    Attached Images Attached Images
    Last edited by Peter Jonsson; August 6, 2012 at 07:47 AM.

  4. #4
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    I've notice a small errors in your code, please see our code:

    Code:
    Only registered members can view the code.
    forum_2.JPG

    I hope it help you to resolve your problem.

  5. #5
    Whats the errors ? When i copied your code above into my i didnt see anything.

    I get the button but the link is messed up. It doesnt only show the link he provided it shows all the code.

    It should look like this:
    PHP Code:
    Only registered members can view the code
    But instead it look like this
    PHP Code:
    Only registered members can view the code
    How can i fix that ?
    Last edited by Peter Jonsson; August 6, 2012 at 10:59 AM.

  6. #6
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    I've fixed it on your domain.

    forum_3.JPG

  7. #7
    Awsome! Thanks Vladimir!

+ Reply to Thread