hope u like this lol kk here we go iv not been able to get it to run on my site but if u can plze leave haw u did it thnx folow what this next bit says :)
Terms of Agreement to be used with this before user is allowed to access Smilie Gallery. This would be better if added on shoutbox as a popup but linking to this file first as such and the smile_terms.php is linked to the readme file
PHP Code:
<a href="#" onclick="window.open(''.$BASEURL.'/smile_terms.php?popupsmilies=yes','smilies','toolbar=no, scrollbars=yes, resizable=no, width=900, height=600, top=250, left=250'); return false;">[SMILIES]</a>
Now to track who has agreed with terms and who has not add this to userdetails.php
Add this at the top:
PHP Code:
$lang->load('tsse_mods');
find this:
PHP Code:
print("<tr><td class='rowhead' width='20%'>".$lang->userdetails['refed_by']."</td><td align='left' width='80%'><a href=userdetails.php?id=".$user['referrer'].">".get_user_color($ref_name['username'], $ref_name['namestyle'])."</a></td></tr>n");
}
add this under it
PHP Code:
if ($user["smilieterms"] == 'yes')
{
print("<tr><td class=rowhead width=1%>".$lang->tsse_mods['smilieterms']."</td><td align=left width=99%>".sprintf($lang->tsse_mods['smilietermsyes'], $user['id'])."</td>n");
}
else
{
print("<tr><td class=rowhead width=1%>".$lang->tsse_mods['smilieterms']."</td><td align=left width=99%>".sprintf($lang->tsse_mods['smilietermsno'], $user['id'])."</td>n");
}
Now find this in userdetails.php
PHP Code:
stdhead(sprintf($lang->userdetails['head'], $user['username']), true, 'ps');
include_once(INC_PATH.'/functions_icons.php');
$usericon = get_user_icons($user);
and add it like this
PHP Code:
stdhead(sprintf($lang->userdetails['head'], $user['username']), true, 'ps');
?>
<script type="text/javascript<b></b>:" src="<?=$BASEURL;?>/scripts/tooltip.js"></script>
<?
include_once(INC_PATH.'/functions_icons.php');
$usericon = get_user_icons($user);
find this line in shoutbox.php
PHP Code:
<input type="button" value="'.strtolower($lang->global['smilies']).'" onclick="show_smilies()" class="btn">
add this line below it
PHP Code:
<input type="button" value="'.strtolower($lang->index['smilies']).'" onclick="window.open(\''.$BASEURL.'/smile_terms.php\',\'Smilies\',\'toolbar=no, scrollbars=yes, resizable=no, width=950, height=800, top=250, left=250\'); return false;" class="btn">
also add new language line to your index.lang.php file:
'smilies'=>'smilieadd',//Mod Added