|
|
|
|
Joined: Jun 2011
Posts: 1
Lurker
|
|
Lurker
Joined: Jun 2011
Posts: 1 |
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: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Well, $page isn't passed to smarty to handle through the template file; since it's defined in the script, you'll just need to add it to the smarty handler. In /scripts/showflat.php Find: "pageprint1" => $pageprint1, Add before:
Last edited by Gizmo; 06/15/2011 2:05 PM.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,834
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 1336
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 3
|
|
|
|
|
|