Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Smile manager?
 New Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 25 May 2013 :  13:38:45  Show Profile
I'll install it on a virgin copy of 3.4.07 today and get back to you.

OK, done. The issue is in the new javascript code in "inc_smilies.asp". Replace that file with the original 3.4.07 version and it should work. I didn't add new smilies to test, but it inserts the code into the text now. Created and added a new smiley and it works for that, too. Only have one account (new forum) so didn't test it on other users.

Edited by - Carefree on 25 May 2013 14:15:26
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 25 May 2013 :  14:53:11  Show Profile
quote:
Originally posted by Carefree

I'll install it on a virgin copy of 3.4.07 today and get back to you.

OK, done. The issue is in the new javascript code in "inc_smilies.asp". Replace that file with the original 3.4.07 version and it should work. I didn't add new smilies to test, but it inserts the code into the text now. Created and added a new smiley and it works for that, too. Only have one account (new forum) so didn't test it on other users.


Hallelujah it's working now!!

To make it work, I used the script section from 3.4.07 and everything else below that with the smiley mod version code. The 3.4.07 was hard coded to display just the stock smileys after the script code, it wasn't recognizing the mod smileys.

Here's the working copy of "inc_smilies.asp".

http://www.eastonmass.com/forum/smiletxtfiles/2/inc_smilies.txt

Thank you very much for your help and putting up with me. Nice job!
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 26 May 2013 :  01:49:04  Show Profile
You're welcome. That's why I visit - to repay the help of those who helped me by helping others.
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 26 May 2013 :  02:20:50  Show Profile
I updated the SnitzBitz file to be 3.4.07 compatible.
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 26 May 2013 :  22:49:39  Show Profile
quote:
Originally posted by Carefree

I updated the SnitzBitz file to be 3.4.07 compatible.


Great, thanks!
Go to Top of Page

shaggy073077
Starting Member

29 Posts

Posted - 15 July 2013 :  15:30:52  Show Profile  Send shaggy073077 an AOL message  Send shaggy073077 a Yahoo! Message
I got a better idea? Just like the avatar catagories mod. How do I create catagories? both in posts.asp and also in admin (acp) to better catagorize everything cuz I have a lot smilies that I wouldn't mind using but this mod came with it just didn't come with any catagories just like the avatar catagories mod does. Is there a way to do this? Thanks.
Go to Top of Page

volkerc
Junior Member

Germany
159 Posts

Posted - 19 August 2013 :  19:04:54  Show Profile
Hey guys.
I decided to install this mod also. Sure eonough I ran into the same problems.Seem to have it running now,...except,...the new smileys show up in the post window. When I click on the new smiley it displays the code in the window. But when I click post or preview, I won't see a smilie, just the code. Where did I go wrong?
Go to Top of Page

volkerc
Junior Member

Germany
159 Posts

Posted - 20 August 2013 :  16:21:21  Show Profile
Nobody?
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 21 August 2013 :  00:45:17  Show Profile
Check the code in "inc_post_buttons.asp" and "inc_smilies.asp".
Go to Top of Page

volkerc
Junior Member

Germany
159 Posts

Posted - 21 August 2013 :  03:49:03  Show Profile
quote:
Originally posted by Carefree

Check the code in "inc_post_buttons.asp" and "inc_smilies.asp".

hi carefree,
anything in particular i should look for? i copied and pasted everything as instructed. everything seems to work, except that no smilie shows in a response, just the code in brackets.
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 21 August 2013 :  04:07:55  Show Profile
Post links to those two files in .txt format for us to review.
Go to Top of Page

volkerc
Junior Member

Germany
159 Posts

Posted - 21 August 2013 :  15:35:21  Show Profile
ok.
here they are:


Edited by - volkerc on 01 September 2013 14:06:54
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 21 August 2013 :  17:05:53  Show Profile
"inc_post_buttons.asp":

Look for the following lines (appx 67-72):
if lcase(strIcons) = "1" and strShowSmiliesTable = "0" then
   Response.Write "                <a href=""JavaScript:openWindow3('pop_new_smiles.asp')"" tabindex=""-1"">" & getCurrentIcon(strIconEditorSmilie,"Insert Smilie","align=""top""") & "</a>" & vbNewLine
   Response.Write "                <a href=""JavaScript:openWindow2('pop_icon_legend.asp')"" tabindex=""-1"">" & getCurrentIcon(strIconEditorSmilie,"Insert Smilie","align=""top""") & "</a>" & vbNewLine


end if

Change them to say:
if lcase(strIcons) = "1" and strShowSmiliesTable = "0" then
'	##	SmileManager Plus Below
	Response.Write	"                <a href=""JavaScript:openWindow3('pop_new_smiles.asp')"" tabindex=""-1"">" & getCurrentIcon(strIconEditorSmilie,"Insert Smilie","align=""top""") & "</a>" & vbNewLine
'	##	SmileManager Plus Above
end if



Replace your "inc_smilies.asp" with this:


<%
'###############################################################################
'##
'##	              Snitz Forums 2000 v3.4.07
'##
'###############################################################################
'##
'## Copyright © 2000-09 Michael Anderson, Pierre Gorissen,
'##	          Huw Reddick and Richard Kinser
'##
'## This program is free. You can redistribute and/or modify it under the
'## terms of the GNU General Public License as published by the Free Software
'## Foundation; either version 2 or (at your option) any later version.
'##
'## All copyright notices regarding Snitz Forums 2000 must remain intact in
'## the scripts and in the HTML output.  The "powered by" text/logo with a
'## link back to http://forum.snitz.com in the footer of the pages MUST
'## remain visible when the pages are viewed on the internet or intranet.
'##
'## This program is distributed in the hope that it will be useful but
'## WITHOUT ANY WARRANTY; without even an implied warranty of MERCHANTABILITY
'## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
'## for more details.
'##
'## You should have received a copy of the GNU General Public License along
'## with this program; if not, write to:
'##
'##	          Free Software Foundation, Inc.
'##	          59 Temple Place, Suite 330
'##	          Boston, MA 02111-1307
'##
'## Support can be obtained from our support forums at:
'##
'##	            http://forum.snitz.com
'##
'## Correspondence and marketing questions can be sent to:
'##
'##	             manderson@snitz.com
'##
'###############################################################################
Response.Write	"<script language=""Javascript"" type=""text/javascript"">" & vbNewLine & _
	"	<!-- hide" & vbNewLine & _
	"		function insertsmilie(smilieface) {" & vbNewLine & _
	"			AddText(smilieface);" & vbNewLine & _
	"		}" & vbNewLine & _
	"	// -->" & vbNewLine & _
	"</script>" & vbNewLine & _
	"<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"">" & vbNewLine & _
	"	<tr>" & vbNewLine & _
	"		<td align=""center"" height=""20"" valign=""40""><a name=""smilies""></a><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><b>Smilies</b></font></td>" & vbNewLine & _
	"	</tr>" & vbNewLine
'	##	SmileManager Plus Below
If MemberID <> -1 Then
	strsql = "SELECT S2_AllowEdit FROM " & strTablePrefix & "SMILES2 WHERE S2_ID=1"
	Set aecheck = my_Conn.Execute(strsql)
	If not aecheck.EOF Then
		isae = aecheck("S2_AllowEdit")
		aecheck.Close
	End If
	Set aecheck = Nothing
	If isae = 1 Then
		allowedit = 1
		strsql = "SELECT S_ID FROM " & strTablePrefix & "SMILES_CUSTOM WHERE MEMBER_ID=" & MemberID
		Set mslist = my_Conn.Execute(strsql)
		thechecked = "|"
		If not mslist.EOF Then
			mslistdata = mslist.GetRows
			mslistnumrows = uBound(mslistdata,2)
			mslist.Close
			For mslisti = 0 to mslistnumrows
				thechecked = thechecked & mslistdata(0,mslisti) & "|"
			Next
		Else
			thechecked = ""
		End If
		Set mslist=Nothing
	Else
		allowedit = 0
		thechecked = ""
	End If
Else
	allowedit = 0
	thechecked = ""
End If
If allowedit = 1 Then
	Response.Write  "	<tr><td align=center><div style=""overflow:auto;height:100px;""><table cellspacing=0 cellpadding=2 border=0 width=""100%"">" & vbNewLine
Else
	Response.Write  "	<tr><td align=center><div style=""overflow:auto;height:120px;""><table cellspacing=0 cellpadding=2 border=0 width=""100%"">" & vbNewLine
End If
If thechecked <> "" Then
	strsql = "SELECT S_ID, S_CODE, S_URL, S_Colspan, S_DESC FROM " & strTablePrefix & "SMILES WHERE S_VISIBLE=1 AND lCase(S_ENABLED)='yes' AND S_EXCLUDE=0 ORDER BY S_DESC"
Else
	strsql = "SELECT S_ID, S_CODE, S_URL, S_Colspan, S_DESC FROM " & strTablePrefix & "SMILES WHERE S_VISIBLE=1 AND lCase(S_ENABLED)='yes' AND S_DEFAULT=1 ORDER BY S_DESC"
End If
Set srs = my_Conn.Execute(strsql)
If not srs.EOF Then
	srsdata=srs.GetRows
	srsrows=uBound(srsdata,2)
	srs.Close
	smilecount = 0
	Do while not srsi > srsrows
		skipmoveNext = 0
		If (thechecked <> "" AND instr(thechecked,"|" & srsdata(0,srsi) & "|") > 0) OR thechecked = "" Then
			If smilecount >= 4 Then
				Response.Write	"</tr>"& vbNewLine
				smilecount = 0
			End If
			If smilecount = 0 Then
				Response.Write	"<tr>"& vbNewLine
			End If
			If srsdata(3,srsi) = 1 Then
				Response.Write	"		<td align=""center"" valign=""bottom""><a href=""javascript:insertsmilie('" & srsdata(1,srsi) & "')"" tabindex=""-1"">" & getCurrentIcon(srsdata(2,srsi) & "||",srsdata(4,srsi) & " " & srsdata(1,srsi),"") & "</a></td>"& vbNewLine
				smilecount = smilecount + 1
			Else
				If smilecount + srsdata(3,srsi) > 4 Then
					skipmoveNext = 1
					Do while not smilecount = 4
						Response.Write	"		<td align=""center"" valign=""bottom""> </td>" & vbNewLine
						smilecount=smilecount + 1
					Loop
				Else
					Response.Write	"		<td colspan=""" & srsdata(3,srsi) & """><a href=""javascript:insertsmilie('" & srsdata(1,srsi) & "')"" tabindex=""-1"">" & getCurrentIcon(srsdata(2,srsi) & "||",srsdata(4,srsi) & " " & srsdata(1,srsi),"") & "</a></td>"& vbNewLine
					smilecount = smilecount + srsdata(3,srsi)
				End If
			End If
		End If
		If skipmoveNext = 0 Then
			srsi = srsi + 1
		End If
	Loop
	Do while not smilecount = 4
		Response.Write	"		<td> </td>" & vbNewLine
		smilecount=smilecount + 1
	Loop
	Response.Write	"</tr>"
Else
	Response.Write	"	<tr><td colspan=3>No smiles found.</td></tr>"
End If
Set srs = Nothing
Response.Write	"</table></div></td></tr>" & vbNewLine
If allowedit = 1 Then
	Response.Write		"	<tr align=""center"">" & vbNewLine & _
		"		<td align=""center"" height=""20"" ><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><a href=""JavaScript:openWindow3('pop_members_smiles.asp')""><b>Edit Smile List</b></a></font></td>" & vbNewLine & _
		"	</tr>" & vbNewLine &_
		"	<tr align=""center"">" & vbNewLine & _
		"		<td align=""center"" height=""20"" ><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><a href=""JavaScript:openWindow3('pop_new_smiles.asp')""><b>Show Entire Smile List</b></a></font></td>" & vbNewLine & _
		"	</tr>" & vbNewLine
End If
Response.Write	"</table>" & vbNewLine
'	##	SmileManager Plus Above
%>
Go to Top of Page

volkerc
Junior Member

Germany
159 Posts

Posted - 22 August 2013 :  15:03:36  Show Profile
hi carefree,
thanks for the help. however same old. only shows the code, no smilie in the comment/post.
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 22 August 2013 :  16:14:50  Show Profile
It sounds like you're not using v3.4.07 because the "addtext" function isn't performing. Check in "inc_code.js" to make sure the command is there.
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07