Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #1  
Old 11th March 2012, 23:15
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Default clickable smilie popup for TSSE 5.6
so now here its gone to work:

first of all i use tsse 5.6 nulled by nightcrawler and used when i right remember modification shoutbox from lateam, but should be also from another coder or coderteam.

javascript is from torrenttrader and popuplink i created by myself.

so here are 2 screenshots for what i did for my home-tracker.

Click the image to open in full size.

and the 2nd one
Click the image to open in full size.

so first find in shoutbox.php from folder include/plugins/
around may be line 146 (may be another line)
PHP Code:
<td align="left">
            <
div id="loading-layer" name="loading-layer" style="float:right; display:none;"><img src="pic/codebuttons/ajax-loader.gif" border="0" class="inlineimg" /></div><center>
            
'.$_shoutbox_smilies.'
            '.ts_load_colors_shoutbox().'            
            
<br>

            <
input maxlength="800" name="shouter_comment" type="text" id="shoutbox" size="90" /> 
            <
img width=65 height=15 src="pic/codebuttons/boutonEnvoyer.gif" onClick="saveData(); return false;"></center><BR><center
after that add
PHP Code:
<img width=75 height=22 src="pic/codebuttons/moresmilies.png'.'" onClick="javascript:winop1();" return false;" class="button">
            <img width=75 height=22 src="
pic/codebuttons/welcomes.png'.'" onClick="javascript:winop2();" return false;" class="button"
so then find the end of shoutbox which should look like that may be about line 179 (can be another line)
PHP Code:
<!-- end shoutbox -->';
// END Plugin: Shoutbox
?> 
after that put in the following javascript, its from torrenttrader i think, so code its not by myself, i just found out how to use it with tsse 5.6 !!!!

PHP Code:
<script LANGUAGE="JavaScript"><!--
function mySubmit() {
   setTimeout('document.shbox.reset()',100);
}
function winop1()
{
windop1 = window.open("/shoutbox/smilies2.php?form=<?=$form?>&text=<?=$text?>","mywin","height=400,width=400,resizable=yes,scrollbars=yes");
}
function winop2()
{
windop2 = window.open("/shoutbox/smilies.welcome.php?form=<?=$form?>&text=<?=$text?>","mywin","height=400,width=1000,resizable=yes,scrollbars=yes");
}

//--></SCRIPT>
then send up f.e. to folder /shoutbox the smilies2.php and smilies.welcome.php i send with.

take the two buttons or take some own for your popup functions and up them into your pics folder f.e. or place you want.


so at the end thats all i did but works fine.

hope i donīt forgot nething important!!!!

to get rid off editing smilies from hand, say and i will post to do it per mysql directly in your db or due to TS Run SQL Query Tool.

I some1 wants to know i will tell or write down here.

greetz to all an have fun with that shitz all friends here on bvlist, coolest forum for stuffz like this i know :fans:
Attached Files
File Type: 7z shoutbox.popup.7z (742 Bytes, 137 views)
Reply With Quote
The Following 5 Users Say Thank You to eckeO5 For This Useful Post:
Botanicar (31st July 2013), FENIX (23rd January 2013), PAX (12th March 2012), Titya (13th March 2012), z3ro (12th March 2012)
  #2  
Old 12th March 2012, 11:24
PAX's Avatar
PAX PAX is offline
Senior Member
 
Join Date: Nov 2010
P2P
Posts: 41
Default
excellent mod! operates at 100%. thank you very much.
Reply With Quote
  #3  
Old 19th October 2012, 13:26
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Default attached files
so vesta here are the 2 files.
unfortunately cannot attache new files, tried a .rar but doesnīt work.

so make a file called:
smilies2.php

put this in it f.e

HTML Code:
<html>
<head>
<script language=javascript>

function SmileIT(smile,form,text){
window.opener.document.forms[form].elements[text].value = window.opener.document.forms[form].elements[text].value+" "+smile+" ";
window.opener.document.forms[form].elements[text].focus();
}
</script>
<title>Clickable Smilies</title>
<link rel="stylesheet" href="/include/templates/work1/style/style.css" type="text/css">

</head>

<table class="no" width="100%" border=0 cellspacing="2" cellpadding="2">
<h3><center><font color=red>.:: Clickables ::.</font></center></h3>
<tr align=center>
<TABLE BORDER=1>

<tr><td align=center><a href="javascript: SmileIT(':example:','shoutbox','shouter_comment')"><img border=0 src=/pic/smilies/example.gif></a></td>
<td align=center><a href="javascript: SmileIT(':example:','shoutbox','shouter_comment')"><img border=0 src=/pic/smilies/example.gif></a></td>
</tr>

</table>
<div align="center">
<a class=altlink_green href="javascript: window.close()"><h3>CLOSE</h3></a>
</div>
then 2nd file f.e. called:
smilies.welcome.php
HTML Code:
<html>
<head>
<script language=javascript>

function SmileIT(smile,form,text){
window.opener.document.forms[form].elements[text].value = window.opener.document.forms[form].elements[text].value+" "+smile+" ";
window.opener.document.forms[form].elements[text].focus();
}
</script>
<title>Clickable Smilies</title>
<link rel="stylesheet" href="/include/templates/work1/style/style.css" type="text/css">

</head>

<table class="no" width="100%" border=0 cellspacing="2" cellpadding="2">
<h3><center><font color=red>.:: ozr welcomes ::.</font></center></h3>
<tr align=center>
<TABLE BORDER=1>

<tr><td align=center><a href="javascript: SmileIT(':example:','shoutbox','shouter_comment')"><img border=0 src=/pic/smilies/example.gif></a></td>
<td align=center><a href="javascript: SmileIT(':example:','shoutbox','shouter_comment')"><img border=0 src=/pic/smilies/example.gif></a></td>
<td align=center><a href="javascript: SmileIT(':example:','shoutbox','shouter_comment')"><img border=0 src=/pic/smilies/example.gif></a></td>
</tr>

</table>
<div align="center">
<a class=altlink_green href="javascript: window.close()"><h3>CLOSE</h3></a>
</div>
thats it when i right remember.

greetz ecke
Reply With Quote
The Following User Says Thank You to eckeO5 For This Useful Post:
vesta (19th October 2012)
  #4  
Old 4th October 2013, 11:06
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
how to put emoticons (smilies to take from DB ? )

and ho to connect those 2 pages to db to show the header and footer :D

i triead stdhead(); stdfoot(); dbconn() include , require_once... but it gave's me error

Last edited by Marco; 4th October 2013 at 11:53.
Reply With Quote
Reply

Tags
56 , clickable , popup , smilie , tsse

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 16:45. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.