Support Forums

thanks.tpl facebook share

This is a discussion on thanks.tpl facebook share within the Templates, HTML, CSS, and Design Help forums, part of the General category; V 4.1.10 Developer Hi, I have modified my thanks.tpl page with certain options that will direct the customer to various ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 02-05-2011, 07:48 PM   #1
Scotty
 
Join Date: Apr 2010
Posts: 29
Rep Power: 6
pickyourownpet.com is on a distinguished road
Default thanks.tpl facebook share

V 4.1.10 Developer

Hi,

I have modified my thanks.tpl page with certain options that will direct the customer to various pages on my site once they have finished posting an ad. I have a "Share" (addtoany) button integrated on each individual ad (viewlistings2) so anyone can share the ad they see on Facebook, Twitter or whatever Social Site they are associate with. Is there a simple block of code that would allow the user to immediately Share their own ad on their Facebook etc. from the thanks.tpl? Even just Facebook would be fine if it's too big of a problem.

Any direction would be helpful! Thank you!

-Scott
pickyourownpet.com is offline   Reply With Quote
Old 02-05-2011, 08:28 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Code:
http://www.facebook.com/sharer.php?u=
Then the link to their ad, I don't think that facebook requires an urlencoded link anymore. If that doesn't work, then you'll have to somehow urlencode the link first before appending the facebook link.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 02-06-2011, 01:37 AM   #3
Scotty
 
Join Date: Apr 2010
Posts: 29
Rep Power: 6
pickyourownpet.com is on a distinguished road
Default where to get the listing ID?

Thanks Mike for the direction. I have put this in place now, but I am not entirely sure where to drag the listing URL from. I could use the same URL to post at the bottom so customers could view their own listing right after they post it.

I tried
Code:
http://www.pickyourownpet.com/classifieds/viewlisting.php?view={$listingid}
but this did not seem to work. I am messing around with a few other things, but to no avail... I do appreciate you constant help, and I hate to be a burden. But again, I thank you.

-Scott

Last edited by pickyourownpet.com; 02-06-2011 at 01:58 AM.
pickyourownpet.com is offline   Reply With Quote
Old 02-06-2011, 05:41 AM   #4
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

i had the same problem, the listing id number is not on the tanks.tpl so you would have to modify the php code to show it.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 02-06-2011, 01:38 PM   #5
Scotty
 
Join Date: Apr 2010
Posts: 29
Rep Power: 6
pickyourownpet.com is on a distinguished road
Default

Nick,

Did you ever modify it in a way that it would work? Could you point me in the right direction?

Thanks!
pickyourownpet.com is offline   Reply With Quote
Old 02-06-2011, 03:45 PM   #6
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by pickyourownpet.com
Nick,

Did you ever modify it in a way that it would work? Could you point me in the right direction?

Thanks!
Nah i never ended up doing it, might have a look at it when i get a chance.
Cheers,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 02-06-2011, 04:30 PM   #7
Customer
 
Join Date: May 2008
Posts: 129
Rep Power: 16
ombre is on a distinguished road
Talking Howto: Facebook sharer

Quote:
Originally Posted by Mike-N-Tosh
Code:
http://www.facebook.com/sharer.php?u=
Then the link to their ad, I don't think that facebook requires an urlencoded link anymore. If that doesn't work, then you'll have to somehow urlencode the link first before appending the facebook link.
I'm using this code:

Code:
 <span class="facebook">
{literal}
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script>
{/literal}
<a href="http://www.facebook.com/share.php" onclick="{literal}return fbs_click(){/literal}" target="_blank">Send to Facebook</a>
</span>
And this rock's

Hope this helps you, and others.

Ombre
__________________
Version 4.2.3 - in production with over 40.000 ads
  • Have a developer license to sell, only 99 $
  • Previous Next Mod for your website
ombre is offline   Reply With Quote
Old 02-06-2011, 05:19 PM   #8
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

You do realize that the code you posted would share the link to the thanks.tpl page on facebook since it is based on the current location, right? Not quite sure how this helps the poster with his issue.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 02-07-2011, 02:39 AM   #9
Customer
 
Join Date: May 2008
Posts: 129
Rep Power: 16
ombre is on a distinguished road
Default

Quote:
Originally Posted by Mike-N-Tosh
You do realize that the code you posted would share the link to the thanks.tpl page on facebook since it is based on the current location, right? Not quite sure how this helps the poster with his issue.
You are right. Maybe he should place "share" link on the listing page, so all users can post it to facebook also .
__________________
Version 4.2.3 - in production with over 40.000 ads
  • Have a developer license to sell, only 99 $
  • Previous Next Mod for your website
ombre is offline   Reply With Quote
Old 02-07-2011, 03:57 AM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

The easiest way is perhaps to allow the user to click a link on the thanks page to their advert. Then use the share link.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Facebook Module seymourjames Customizations 22 10-18-2010 05:31 AM
Facebook Connect janakmshah Customizations 4 04-28-2010 12:23 PM
V4.1.x Enhancing vBulletin share... shri Modules / Plugins / Modifications 0 03-09-2010 12:53 AM
3rd Party Authentication - Facebook Connect txm Technical Support 1 04-04-2009 12:48 PM


All times are GMT -4. The time now is 03:50 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0