Smiley Pops

Started by BiGBLiZZ, October 28, 2007, 07:41:27 PM

Previous topic - Next topic

BiGBLiZZ

LINK TO MOD

If you have more than the default set of smileys, then this Mod is for you! It adds additional pop up windows for organizing smiles.  This mod has been tested on all flavors of forums.  Most themes will accept it without a manual install.  Known to work with 90% of other mods, no mods or manual mods.


The Mod in action.  This is the Post Form (or PM form) with the new pop up links showing.


The edit smileys window showing the groups location (Admin Panel)


New tab in Admin panel allowing you to name and organize your new pop ups!
Think you are clever?
Prove It!

asdas2

hmmm great mod ..... but i already have something like this ..... i fotgot the name ... it adds a lil "more" button after couple of smileys .... anywayz .....  thankz for the great mod ...
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

falguni1

that little more is not a mod but a default feature of SMF

I like this mod very much as I want to group the smileys

ES23

A great mod :) Awesome.An error I have discovered:

http://www.mywebsite.com/forums/index.php?action=smileys;sa=managegroups
2: Invalid argument supplied for foreach()
File: /var/www/html/forums/Themes/default/ManageSmileys.template.php (managegroups sub template - eval?)
Line: 751

This error repeats itself everytime I try accessing "Manage Groups" under "Smileys and Message Icons" of the forum.

So any way of solving this? :)

BiGBLiZZ

 :-\  That's one I have not seen before.  Does it prevent you from using the Mod in any way?  Obviously I couldn't have tested this with 100% of the Mods out there... perhaps there is a conflict?  What mods are you currently using?

One thing I noticed was that when an error was listed in ManageSmileys.template.php it never was in the template file, usually it was in the Subs-Post file.

I will look into it, but any more info you can provide would be helpful!
Think you are clever?
Prove It!

ES23

Quote from: BiGBLiZZ on October 30, 2007, 11:15:54 AM
:-\  That's one I have not seen before.  Does it prevent you from using the Mod in any way?  Obviously I couldn't have tested this with 100% of the Mods out there... perhaps there is a conflict?  What mods are you currently using?

One thing I noticed was that when an error was listed in ManageSmileys.template.php it never was in the template file, usually it was in the Subs-Post file.

I will look into it, but any more info you can provide would be helpful!

I don't think it prevent me from using the mod in any way.I'm able to access the admin page for manage groups with no problems.And this is actually my first mod in modifying my ManageSmileys portion.Other mods are like who voted what mod,quite some xhtml compliant mods which have nothing to do with this mod and I don't think it will affect this mod :)

The error repeats itself whenever I access this url:
http://www.mywebsite.com/forums/index.php?action=smileys;sa=managegroups

so I take it as it's this url which is giving me problems ... and that's managegroups and smiley words in the url so the problems are more or less got to do with that portion.

TheRogue


BiGBLiZZ

Top post.  must have deleted when I edited the content.  Fixed that though :D
Think you are clever?
Prove It!

BiGBLiZZ

Quote from: ES23 on October 30, 2007, 11:54:25 AM
I don't think it prevent me from using the mod in any way.I'm able to access the admin page for manage groups with no problems.And this is actually my first mod in modifying my ManageSmileys portion.Other mods are like who voted what mod,quite some xhtml compliant mods which have nothing to do with this mod and I don't think it will affect this mod :)

Can you show me line751 of your MS.template.php file?  (as it my be different from mine)
Think you are clever?
Prove It!

TheRogue

#9
damn ..i just did a bubu :(( after instaling i uninstalled it and did
DROP TABLE `smf_smiley_groups`;
ALTER TABLE `smf_smileys`  DROP `smileyGroup`;
just like in readme.txt ...guess what ?:((
Table 'romroute_forum.smf_smiley_groups' doesn't exist
File: /home/romroute/public_html/forum/Sources/ManageSmileys.php
Line: 70 (in Smileys and Message Icons)

and

Unknown column 'smileyGroup' in 'field list'
File: /home/romroute/public_html/forum/Sources/Subs-Post.php
Line: 1209 (whenever i wanna post or pm someone)
can you pls help me?

i reinstaled the mod and now it gives me an error only at Smileys and Message Icons
Fatal error: Cannot redeclare managesmileygroups() (previously declared in /home/romroute/public_html/forum/Sources/ManageSmileys.php:1226) in /home/romroute/public_html/forum/Sources/ManageSmileys.php on line 1420

BiGBLiZZ

Run the uninstall again.. doing the SQL stuff last.  Then through FTP go to Packages directory and delete the smileyPOPs package.

Start all over with the install after that.
Think you are clever?
Prove It!

ES23

#11
function template_managegroups()
{
        global $context, $settings, $options, $scripturl, $txt, $modSettings;
        echo '
        <form action="', $scripturl, '?action=smileys;sa=managegroups" method="post" accept-charset="', $context['character_set'], '">
        <table border="0" cellspacing="1" cellpadding="4" align="center" width="50%" class="tborder" style="padding: 1px;">
        ';
        echo '
                <tr class="titlebg">
                        <td>Group Name</td>
                        <td>Group Number</td>
                        <td>Group Order</td>
                        <td>Modify</td>
                </tr>';
        $row_class = "windowbg";
        $max_group = 0;
foreach ($context['smiley_groups'] as $smiley_group)
        {
                $max_group = ($max_group > $smiley_group['number']) ? $max_group : $smiley_group['number'];
                echo '
                <tr class="', $row_class, '">
                        <td class="smalltext">', $smiley_group['name'], '</td>
                        <td class="smalltext">', $smiley_group['number'], '</td>
                        <td class="smalltext">', $smiley_group['order'], '</td>
                        <td class="smalltext"><a href="', $scripturl, '?action=smileys;sa=modifygroup;groupid=', $smiley_group['number'] ,'">Modify</a></td>
                </tr>';
                $row_class = ($row_class == "windowbg2") ? "windowbg" : "windowbg2";
        }


Line 751: foreach ($context['smiley_groups'] as $smiley_group)

So any solutions?... :)

BiGBLiZZ

Have you made any smiley groups yet?  And if so how many?  Also, have you placed smileys in all the groups you have made?

It looks like it is telling me that the foreach is in error state because there is nothing to each-for...  LOL  I will look into it more when I get home tonight.
Think you are clever?
Prove It!

ES23

Quote from: BiGBLiZZ on October 31, 2007, 03:25:47 PM
Have you made any smiley groups yet?  And if so how many?  Also, have you placed smileys in all the groups you have made?

It looks like it is telling me that the foreach is in error state because there is nothing to each-for...  LOL  I will look into it more when I get home tonight.

I haven't even started to create any smiley groups as yet.The first thing after I install is to run a test to check that the extra function has been added;then I visit the forum log to check for any errors ... :)

Qlim4X

hi

i have this theme

http://www.simplemachines.org/community/index.php?topic=169798.0

and i install your mod

but in the admin panel smile control i cant find the extra menus.

i have only the 2 standar ... why???

BiGBLiZZ

Quote from: ES23 on November 01, 2007, 01:31:48 AM
Quote from: BiGBLiZZ on October 31, 2007, 03:25:47 PM
Have you made any smiley groups yet?  And if so how many?  Also, have you placed smileys in all the groups you have made?

It looks like it is telling me that the foreach is in error state because there is nothing to each-for...  LOL  I will look into it more when I get home tonight.

I haven't even started to create any smiley groups as yet.The first thing after I install is to run a test to check that the extra function has been added;then I visit the forum log to check for any errors ... :)

Okay, it appears that the error here is looking for groups to manage except there aren't any.  Go to the manage groups tab and make one group at least.  then add all the smileys from your [more] pop up to that group. once done go to the error log and empty it completely.  then go make a post.  You should see the post form (visible) smileys and the [group] pop up.  Now go back to the edit smileys section of the admin panel, manage smileys panel, and then back to your error log.  It should be clear still.  If not, let me know.


Quote from: Qlim4X on November 01, 2007, 03:13:13 PM
hi

i have this theme

http://www.simplemachines.org/community/index.php?topic=169798.0

and i install your mod

but in the admin panel smile control i cant find the extra menus.

i have only the 2 standar ... why???

There are some themes that are not set up to use all of the default files that this Mod uses.  It is relatively simple though. in the package manager view the files of the smiley pops mod. there are only 5 files this Mod makes changes too.  write those file names down.  Then through FTP go to your forum files, go to the theme folder for the theme you are using.  check the list you made against the files in that folder.  if any match you will need to manually edit those files.

For example, if you find the file managesmileys.template.php in your current theme's folder you will need to manually do the changes from the install.xml.  If you don't find the files you don't need to edit them. (if they aren't in your themes folder then they use the default ones, which this mod already edited.
Think you are clever?
Prove It!

Qlim4X

i didnt find any think :( i m not good in moding...


snif i need to learn php.... grrrrrr


any help more :D to understand the logic....

BiGBLiZZ

post me a link to your forum.  If you can make a test account that would help too.  I have a few minutes that I can help out right now, otherwise it will have to wait about 24 hours.

If I get the account info for your forum I will talk to you over there about what to do, so I can see it.
Think you are clever?
Prove It!

ITB

Hello all I'm new to SMF and I tried to apply this mod after uploading with the package manager and I get this message

1.     Execute Modification     ./Sources/ManageSmileys.php     Test failed
2.    Execute Modification    ./Sources/Subs-Post.php    Test failed
3.    Execute Modification    ./Themes/default/ManageSmileys.template.php    Test failed
4.    Execute Modification    ./Themes/default/Post.template.php    Test failed
5.    Execute Modification    ./Themes/default/languages/ManageSmileys.english.php    Test successful
6.    Execute Code    add_settings.php    


I'm completely lost here I'm using SMF version 1.1.4

BiGBLiZZ

Every file should pass, and install without problems.  The only cause for this that I can see is that you have something that has already altered those files or for some reason the files don't exist where your forum is looking.

Do you have a link to your forum?  Have you renamed/removed any default files or folders?
Think you are clever?
Prove It!

Advertisement: