Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   [TSSE 5.1] Smiles BBCODE (http://www.bvlist.com/showthread.php?t=992)

TheLord 12th September 2008 15:07

[TSSE 5.1] Smiles BBCODE
 
1 Attachment(s)
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 


zenja7777 13th September 2008 13:17

And for TS v 5 1 this approaches fashions???

And for TS v 5 1 can such make fashions please

RikT 20th October 2008 12:34

I cant get this working just keep getting blank box

fireman 11th February 2009 21:24

Does anyone know how to get this to work?

Joshua 11th February 2009 23:02

Visit .::: COMIC TORRENT TRACKER :::. :: Dobrodosli na .::: COMIC TORRENT TRACKER :::. and see

fireman 12th February 2009 00:45

Quote:

Originally Posted by Joshua (Post 8970)

can u post the mod with all fixes on here


All times are GMT +2. The time now is 02:19.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.