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
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 206 guests, and 158 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)