|
|
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,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 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,833
Joined: January 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|