+ Reply to Thread
Results 1 to 9 of 9

Thread: Listing URL at end of Add Listing Page

  1. #1
    Senior Member
    Join Date
    Oct 2014
    Posts
    131

    Listing URL at end of Add Listing Page

    How can get the url of the current listing after posting to be show on final step?

    example: At end of add listing page users see -> "Your listing as be successfully added. Add another" <-- I would like the current listing url beneath that phrase.

  2. #2
    Hello Errol,


    You can do it in ftp. Open file: ftp://includes>>classes>>AddListing.php find method: 'stepDone'. In top of this method add code:

    PHP Code:
    Only registered members can view the code
    then below add code:
    PHP Code:
    Only registered members can view the code
    Then open file: ftp://tempaltes>>your_template>>controllers>>add_listing >>step_done.tpl
    insert code:
    Code:
    Only registered members can view the code.
    save and check again.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Oct 2014
    Posts
    131
    Hello Victor it works.

    How ever I need to pull that Title also for current listing.
    Can you please give code?

  4. #4
    Senior Member
    Join Date
    Oct 2014
    Posts
    131
    Hello Viktor please remember to research how to I pull Title also

  5. #5
    Junior Member
    Join Date
    Jun 2017
    Posts
    22

    Thank you Victor, one more question.

    this is fantastic help...thank you Victor.

    I added the following code to the display.

    <div style="margin: 15px 0">
    <a target="_blank" class="link" href="{$listing_link}">Review or Edit Your New Ad Here</a>
    </div>
    <div style="margin: 15px 0">
    Full Web Address/URL of your New Ad that you can copy and share is:<br>
    <a target="_blank" class="link" href="{$listing_link}">{$listing_link}</a>
    </div>

    how do I get it to pull the text from the language database instead?

  6. #6
    Senior Member
    Join Date
    Oct 2014
    Posts
    131
    Hello, Tim Wade my idea was to give the user an option to share their ad after posting by linking the url to facebook or twitter share buttons. However, facebook will pull the title of the ad whilst twitter WILL NOT.
    But now looking at your post I realize I can do more as you pointed out.

    1. Review & Edit
    2. Share on [Facebook] [Twitter] etc <- Icons

    I hope Viktor rely with how to pull Title

  7. #7
    Hi there,

    You can replace Viktor's code to following;

    PHP Code:
    Only registered members can view the code
    After you can use 2 variables in smarty {$listing_link} and {$listing_title}
    Thank you, Curtis.
    @Flynax Company

  8. #8
    Senior Member
    Join Date
    Oct 2014
    Posts
    131
    How do I achieve the same at the end of Upgrade Listing Page -> Title and URL?

  9. #9
    Quote Originally Posted by Errol View Post
    How do I achieve the same at the end of Upgrade Listing Page -> Title and URL?
    You can try to add the code in bottom of \includes\controllers\upgrade_listing.inc.php file.

    PHP Code:
    Only registered members can view the code
    Thank you, Curtis.
    @Flynax Company

+ Reply to Thread