Facebook "like" Button for Vbulletin

  • Konuyu başlatan Konuyu başlatan guclusat
  • Başlangıç Tarihi Başlangıç Tarihi

guclusat

Tanınmış Üye
Süper Moderatör
This is the code for each individual post in the postbit_legacy template.

PHP:
<iframe src="http://www.facebook.com/plugins/like.php?href=http://(domain)$_SERVER[VBSEO_URI]?p=$post[postid]&amp;layout=button_count&

amp;show_faces=true&amp;width=&amp;action=like&amp;colorscheme=light"  
 
scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:20px"></iframe>

URL that gets tossed to facebook looks like this:

PHP:
http://www.(domain)/forums/(forum title)/(threadid)-(thread title)-.html?p(ostid)=611602
The only thing I am having issues with, is the url text being the site name instead of what I want it to be, which is the Thread Name.



I have tried this on another forum that doesn't have vbSEO installed using the code below, and the URLs show up as the thread name. So this looks like an issue surrounding VBSEO. Any help would be much appreciated.



PHP:
<iframe src="http://www.facebook.com/plugins/like.php?href=http://(domain)/showthread.php$session[sessionurl]?p=$post[postid]&

amp;layout=button_count&amp;show_faces=true&amp;width=&amp;action=like&amp;colorscheme=light"  

 scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:20px"></iframe>
 
Geri
Yukarı