• Page 1 of 1
  • 1
Online Games
SirDarknight
Posts: 247
Reputation: -5

Message # 1 | 4:24 PM
How do I change the viewer's settings of all games? I don't want Guests can download or play games without registration.
Animorph
Posts: 2856
Reputation: 189

Message # 2 | 5:04 PM
SirDarknight, then go to CP ---> Design ---> Design management (templates) ---> page of entry full text and his comments

Find:

Code
<?if($SWF_LINK$)?><td align="center" valign="top"><?if($CID$=='8')?><a href="$SWF_LINK_DIRECT$" target="_blank"><?else?><a href="$SWF_LINK$"><?endif?><img alt="" border="0" src="/.s/img/icon/play.png" width="32" height="32"></a><div style="font-size:10px"><?if($CID$=='8')?><a href="$SWF_LINK_DIRECT$" target="_blank"><?else?><a style="text-decoration:none;" href="$SWF_LINK$"><?endif?><b><!--<s5392>-->Play online<!--</s>--></b></a></div></td><?endif?>
<?if($LINK_PC$)?><td align="center" valign="top"><a href="$LINK_PC$"><img alt="" border="0" src="/.s/img/icon/download1.png" width="32" height="32"></a><div style="font-size:10px"><a style="text-decoration:none;" href="$LINK_PC$"><!--<s5393>-->Download for<!--</s>--> PC</a></div></td><?endif?>
<?if($LINK_MAC$)?><td align="center" valign="top"><a href="$LINK_MAC$"><img alt="" border="0" src="/.s/img/icon/download2.png" width="32" height="32"></a><div style="font-size:10px"><a style="text-decoration:none;" href="$LINK_MAC$"><!--<s5393>-->Download for<!--</s>--> Mac</a></div></td><?endif?>
<?if($LINK_MOBILE$)?><td align="center" valign="top"><a href="$LINK_MOBILE$"><img alt="" border="0" src="/.s/img/icon/download3.png" width="32" height="32"></a><div style="font-size:10px"><a style="text-decoration:none;" href="$LINK_MOBILE$"><!--<s5393>-->Download for<!--</s>--> Mobile</a></div></td><?endif?>

replace by:

Code
<?if($USER_LOGGED_IN$)?><?if($SWF_LINK$)?><td align="center" valign="top"><?if($CID$=='8')?><a href="$SWF_LINK_DIRECT$" target="_blank"><?else?><a href="$SWF_LINK$"><?endif?><img alt="" border="0" src="/.s/img/icon/play.png" width="32" height="32"></a><div style="font-size:10px"><?if($CID$=='8')?><a href="$SWF_LINK_DIRECT$" target="_blank"><?else?><a style="text-decoration:none;" href="$SWF_LINK$"><?endif?><b><!--<s5392>-->Play online<!--</s>--></b></a></div></td><?endif?>
<?if($LINK_PC$)?><td align="center" valign="top"><a href="$LINK_PC$"><img alt="" border="0" src="/.s/img/icon/download1.png" width="32" height="32"></a><div style="font-size:10px"><a style="text-decoration:none;" href="$LINK_PC$"><!--<s5393>-->Download for<!--</s>--> PC</a></div></td><?endif?>
<?if($LINK_MAC$)?><td align="center" valign="top"><a href="$LINK_MAC$"><img alt="" border="0" src="/.s/img/icon/download2.png" width="32" height="32"></a><div style="font-size:10px"><a style="text-decoration:none;" href="$LINK_MAC$"><!--<s5393>-->Download for<!--</s>--> Mac</a></div></td><?endif?>
     <?if($LINK_MOBILE$)?><td align="center" valign="top"><a href="$LINK_MOBILE$"><img alt="" border="0" src="/.s/img/icon/download3.png" width="32" height="32"></a><div style="font-size:10px"><a style="text-decoration:none;" href="$LINK_MOBILE$"><!--<s5393>-->Download for<!--</s>--> Mobile</a></div></td><?endif?> <?else?> Hello, Guest! , you need to <a href="REGISTER_LINK$" target="nofollow">register</a> before you can play games <?endif?>

what i just did is used conditional operators to hide the play and download buttons for people who are not logged in to your website


To busy building a passive income online ;)
SirDarknight
Posts: 247
Reputation: -5

Message # 3 | 2:52 AM
Thanks
  • Page 1 of 1
  • 1
Search: