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.
Printable View
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.
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:
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.tplPHP Code:
Only registered members can view the code.
insert code:
save and check again.Code:Only registered members can view the code.
Hello Victor it works.
How ever I need to pull that Title also for current listing.
Can you please give code?
Hello Viktor please remember to research how to I pull Title also
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?
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
Hi there,
You can replace Viktor's code to following;
After you can use 2 variables in smarty {$listing_link} and {$listing_title}PHP Code:
Only registered members can view the code.
How do I achieve the same at the end of Upgrade Listing Page -> Title and URL?
Hello, this method works prior 4.7. It's not working any more, did flynax change the logic? Can we get update? Thanks