|
|
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: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|