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
 Sub-Groups for smilies?
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Alfred
Senior Member

USA
1527 Posts

Posted - 20 December 2002 :  11:31:08  Show Profile  Visit Alfred's Homepage
I installed Smile Manager Plus and have different categories of smilies and/or emoticons I would like to offer for use.

  • Does anyone know of a way to group the smilies, so that the whole list does not have to be loaded when "show total list" is clicked?
For instance:
"Show all Basic Smilies"
"Show all Animated Emoticons"
"Show all Community Specific Emoticons"


Alfred
The Battle Group
CREDO

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 20 December 2002 :  20:49:30  Show Profile
hi~ Alfred,
there is a old Mod for 3.3 called Categorized Icons can do something similar to meet your demand.
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=25280
(i think you still can get this mod on Crash's File Exchang.)

it may need a lots modify to integrate with your SmileManager Plus, and i have no good idea how to do this...

for my situation, i like the original Snitz simle icons much ! so maybe i'll try to keep them in the "Quick Smile Panel"(inc_smiles.asp), and change/move the new Plus added smiles to the old pop_icon_legend.asp way.
and of course, you can make a lots "copy" to the smile button to put your different sub smiles group.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 20 December 2002 :  23:14:48  Show Profile  Visit Alfred's Homepage
I am using version 3.4.03, and if you don't know how to do it I would not have much chance!

The basic snitz smilies are fine, but I have a big variety of very specialized icons I want to make available (I run a strategy game club!).

I have seen some forums which load very slowly because of the high number of smilies they use, which I want to avoid by putting them on extra lists.

Alfred
The Battle Group
CREDO
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 20 December 2002 :  23:36:42  Show Profile  Visit Alfred's Homepage
I just looked at that mod, Dora.
It actually is not the answer to what I want to achieve, because it also loads the whole selection at once.
The only difference is that the icons are grouped.

Alfred
The Battle Group
CREDO
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 21 December 2002 :  15:07:12  Show Profile
hi~ Alfred,
in generally, the Smiles Manager Mod give us the feature to add more smile icons. and if we can implement some "Categorize" function to this mod, in actually, we can put the smiles list anywhere!
(the SMPlus put it on the Quick Panel by default, and the CatIcon put it on the same one pop-up window... we just need to "move" it to another place or more pop-up window....)

i take a look to the SMPlus Mod... there are a lots data fields can be used to do this "Categorize" job... S_DEFAULT, S_ENABLED, S_VISIBLE...(in fact, i'm totally confused what difference between these fields..). and the Admin interface also not so friendly for me.(too many smilies or pulldown menu always make my browser down..) so i really hard to test this implement work...

but anyway, i try to make some simple EXAMPLE for you... SmilesGroup.zip
just 3 files and totally 7 places modified. all base on original SMPlus mod files.
(i choose the S_DEFAULT field to do this job, i think it's the most safity one. )

how to install ??
1. if you did'nt change anything to these files by yourself...
backup first and just overwrite these files. then go to SmileManager Plus Admin change some "#1 Quick Panel" to "#2 Popup Group" or "#3 Popup Group". then see if it work on your post page....
2. if you have some self-modified code to these files...
just search '##### Smiles Group to konw where to modify. and you can add/edit more "Smiles Group" by yourself, i think the modified code is easy understanding.

test on a ServerHacker's forum, seem no any problem for me..(i did'nt have a 3.4 forum can test this mod..) but still not sure will work for you, so please try it and let me know if any problem.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 21 December 2002 :  23:02:32  Show Profile  Visit Alfred's Homepage
Dora,
quote:
i take a look to the SMPlus Mod... there are a lots data fields can be used to do this "Categorize" job... S_DEFAULT, S_ENABLED, S_VISIBLE...(
The "default" you used is the one which will show automatically in the left panel of a new post window.

I installed what was in your zip file, and I think that could work...

However, we have to find a way to call up each group separately with the link.
Where it says now: "Show Entire Smilie List" - we need to make new links for each group, for instance:

"Show Quickpanel"
"Show #1 Popup Group"
"Show #2 Popup Group"

Alfred
The Battle Group
CREDO

Edited by - Alfred on 21 December 2002 23:26:26
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 21 December 2002 :  23:59:05  Show Profile
hi~ Alfred,
can you find two extra forum code button showing on the Format: bar after code modify ??
-- for #2 Popup Group
-- for #3 Popup Group
(and you may need to change some smiles from "Quick Panel" group to "#2 or #3 Popup Group" in the SmileManager Admin section first.)

i did'nt include the icon files, i think you may like to replace with your favorite ones. and of course, you can add more or change the group name and button icon in the modified code. take a look in the '##### Smiles Group modified section, and change something in..

'========== if you want to add more Smiles Group, modify below section. ==========
:
:
==================================================================


Edited by - DoraMoon on 22 December 2002 00:04:02
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 22 December 2002 :  02:10:29  Show Profile  Visit Alfred's Homepage
I think I know what you mean, but I am not sure.

Instead of making text links under the Quick Panel ("Show all Basic Smilies"), you put icons on the Format bar, which will open the group they are linked to.

That would be very nice.

I will have to find the asp file and the code and experiment a little with this idea.

I will probably get stuck very quickly, and come crying for help again!

Alfred
The Battle Group
CREDO

Edited by - Alfred on 22 December 2002 02:11:25
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 22 December 2002 :  02:37:23  Show Profile
hi~ Alfred,
if you prefer put the new Smiles Group as a text link...
just add some lines in the bottom of inc_smilies.asp
end if
response.write " <tr align=""center"">" & vbNewLine & _
" <td align=""center"" height=""20"" ><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><a href=""JavaScript:openWindow3('pop_new_smiles.asp?cat=2')""><b>Show Smiles Group #2</b></a></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
response.write " <tr align=""center"">" & vbNewLine & _
" <td align=""center"" height=""20"" ><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><a href=""JavaScript:openWindow3('pop_new_smiles.asp?cat=3')""><b>Show Smiles Group #3</b></a></font></td>" & vbNewLine & _
" </tr>" & vbNewLine

response.write " </table>" & vbNewLine
'####################################################
%>


and as i said, you can put it anywhere you like... just remember the link url...
pop_new_smiles.asp -- show Entire Smiles List
pop_new_smiles.asp?cat=1 -- show the Smiles List default in Quick Panel
pop_new_smiles.asp?cat=2 -- show the #2 Smiles Group
pop_new_smiles.asp?cat=3 -- show the #3 Smiles Group
.....................

this modified code just example, did'nt have any friendly interface.. and you may need to change a lots group name, description, bad english.... by yourself.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 22 December 2002 :  23:08:54  Show Profile  Visit Alfred's Homepage
Oh boy, Dora - you will be proud of me!

Somehow I got it all to work, after an all day struggle...
I did both ways, the text links and the icon links.

I was trying to find where the spacing between the icons on the Format bar is controlled, but could not find it.
The three new ones should be grouped together, without space between them.

Also: the last one on the right (Equipment Icons) was built a little wider, but got trimmed by the code.
It is not part of the inc_iconfiles.asp page - where are the dimensions for the new icons?

Alfred
The Battle Group
CREDO
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 23 December 2002 :  07:43:20  Show Profile
hi~ Alfred,
glad that you did it finally!! after all day struggle...

about the spacing between icons... just remove the & vbNewLine after "</a>" (<a ...><img...>... & "</a>" & vbNewLine )
and of course, you can add these icons in inc_iconfile.asp. i just lazy to do it..(save one more file modified..). if you want to do it........ your inc_post_buttons.asp modified code should be like this..
'##### Smiles Group - replace above 5 lines with below ?? lines #####
if lcase(strIcons) = "1" then
Response.Write "<a href=""JavaScript:openWindow3('pop_new_smiles.asp')"" tabindex=""-1"">" & getCurrentIcon(strIconEditorSmilesGroup0,"All Icons","align=""top""") & "</a>"
'========== if you want to add more Smiles Group, modify below section. ==========
intMaxSmileGroup = 3
' intMaxSmileGroup = 4
for catid = 2 to intMaxSmileGroup
select case catid
'## (#2 Popup Group)
case 2
ButtonIcon = strIconEditorSmilesGroup2
ButtonTooltip = "Animated Emoticons"
'## (#3 Popup Group)
case 3
ButtonIcon = strIconEditorSmilesGroup3
ButtonTooltip = "Equipment Icons"
'## (#4 Popup Group)
' case 4
' ButtonIcon = "icon_editor_onemore_smile.gif"
' ButtonTooltip = "Add/Edit you new Smiles Group here..."
case else
ButtonIcon = "icon_editor_help.gif"
ButtonTooltip = "No this Smiles Group..."
end select
'================================================================
Response.Write "<a href=""JavaScript:openWindow3('pop_new_smiles.asp?cat=" & catid & "')"" tabindex=""-1"">" & getCurrentIcon(ButtonIcon,ButtonTooltip,"align=""top""") & "</a>"
next
end if
'########## Smiles Group ##########

and do'nt forget to add these new lines in inc_iconfile.asp
'##### Smiles Group - add below ?? lines #####
Const strIconEditorSmilesGroup0 = "icon_editor_smilie.gif|23|22"
Const strIconEditorSmilesGroup2 = "icon_editor_dans.gif|23|22"
Const strIconEditorSmilesGroup3 = "equip_icon.gif|35|22"

'########## Smiles Group ##########

i think it's a better way for you, if your editor icon not the same size.
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 23 December 2002 :  11:25:42  Show Profile  Visit Alfred's Homepage
This is weird, Dora!
I thought the & vbNewline has to be used to connect the code when you start another line - but it also just adds a space to anything?
I thought the & n b s p does that?

OK, I'll attend to that that first, and come back with more questions after - because there are more mysteries! )

Alfred
The Battle Group
CREDO
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 23 December 2002 :  11:39:39  Show Profile  Visit Alfred's Homepage
Next mystery:
quote:
and of course, you can add these icons in inc_iconfile.asp.
...it makes no difference whether it is added or not???

Alfred
The Battle Group
CREDO
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 23 December 2002 :  11:59:12  Show Profile  Visit Alfred's Homepage
Well, I removed the & vbNewline from the end of this
quote:
Response.Write "<a href=""JavaScript:openWindow3('pop_new_smiles.asp')"" tabindex=""-1"">" & getCurrentIcon(strIconEditorSmilie,"All Icons","align=""top""") & "</a>"
but the space is still there between the icons.

I also added this to the inc_iconfiles.asp
quote:
'##### Smiles Group - add below ?? lines #####
Const strIconEditorSmilesGroup0 = "icon_editor_smilie.gif|23|22"
Const strIconEditorSmilesGroup2 = "icon_editor_dans.gif|23|22"
Const strIconEditorSmilesGroup3 = "equip_icon.gif|35|22"
'########## Smiles Group ##########
but the "Equipment Icons" is still not 35 wide...
What code makes it 22 right now? Where?

Alfred
The Battle Group
CREDO
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 24 December 2002 :  08:18:18  Show Profile
quote:
Originally posted by DoraMoon

'================================================================
Response.Write "<a href=""JavaScript:openWindow3('pop_new_smiles.asp?cat=" & catid & "')"" tabindex=""-1"">" & getCurrentIcon(ButtonIcon,ButtonTooltip,"align=""top""") & "</a>"
next
end if
'########## Smiles Group ##########
[/size=1][/font=Tahoma]
hi~ Alfred,
i think you seem missing above one line modification......
it's for replacing this line in original modified code... (the 23,22 is the fixed icon size...)
Response.Write " <a href=""JavaScript:openWindow3('pop_new_smiles.asp?cat=" & catid & "')"" tabindex=""-1"">" & "<img src=""" & strImageUrl & ButtonIcon & """ alt=""" & ButtonTooltip & """ width=""23"" height=""22"" border=""0"" align=""top"">" & "</a>" & vbNewLine
Response.Write "<a href=""JavaScript:openWindow3('pop_new_smiles.asp?cat=" & catid & "')"" tabindex=""-1"">" & getCurrentIcon(ButtonIcon,ButtonTooltip,"align=""top""") & "</a>"

sorry, i did'nt explain this too much... but all the modify to inc_post_button.asp, just add the new "smiles group" buttons(icon with link..).

if you know what you do... in actually, you can just do this (inc_post_buttons.asp) for your situation now..
'##### Smiles Group - replace above 5 lines with below ?? lines #####
if lcase(strIcons) = "1" then
Response.Write "<a href=""JavaScript:openWindow3('pop_new_smiles.asp')"" tabindex=""-1"">" & getCurrentIcon(strIconEditorSmilesGroup0,"All Icons","align=""top""") & "</a>"
Response.Write "<a href=""JavaScript:openWindow3('pop_new_smiles.asp?cat=2')"" tabindex=""-1"">" & getCurrentIcon(strIconEditorSmilesGroup2,"Animated Emoticons","align=""top""") & "</a>"
Response.Write "<a href=""JavaScript:openWindow3('pop_new_smiles.asp?cat=3')"" tabindex=""-1"">" & getCurrentIcon(strIconEditorSmilesGroup3,"Equipment Icons","align=""top""") & "</a>"
end if
'########## Smiles Group ##########


i know it maybe make you more confuse again... but i really no idea how to say it more clearly..

Merry X'Mas...
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 24 December 2002 :  12:11:13  Show Profile  Visit Alfred's Homepage
quote:

if you know what you do... in actually, you can just do this (inc_post_buttons.asp) for your situation now..

you mean instead of the correction you explained?

Alfred
The Battle Group
CREDO
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07