Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2011
Posts: 2
N
stranger
stranger
N Offline
Joined: Jun 2011
Posts: 2
i want to add fb like button only displayed on the first page of thread

i'm using this code on showflat.tpl

{if $page==1}
fblike code here
{/if}

this code succes to get $page while we are on login mode, but if we doesn't login $page is empty

i'm still confused, cause in my localhost, $page always have any value

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
$page isn't passed to smarty. You'd need to edit scripts/showflat.inc.php, around line 1397 of that file you'll see where the variables are passed to smarty and you'd need to add your page variable in there.

Joined: Jun 2011
Posts: 2
N
stranger
stranger
N Offline
Joined: Jun 2011
Posts: 2
ok thanks for your advice. problem solved smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Ruben, 1 invisible), 998 guests, and 205 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)