vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Favorite Smilies (https://vborg.vbsupport.ru/showthread.php?t=123116)

leannet 05-22-2008 01:43 AM

Where do I find this?

Open file includes/functions_editor.php

Fungsten 05-22-2008 01:52 AM

Quote:

Originally Posted by leannet (Post 1527497)
Where do I find this?

Open file includes/functions_editor.php

When I did edit that the smilies stopped working all together.

leannet 05-22-2008 04:23 AM

I found the includes/function_editor but couldnt get it to load to my site, but it seems to be working fine without it so I think I will leave it how it is, thanks for your reply.

FENIX 05-22-2008 06:58 AM

On 3.7.0 this code is no longer included in functions_editor.php

Code:

else
                                                {
                                                        $vBeditJs['smilie_options_array']["$smilie[category]"][] = "\t\t'more' : '" . addslashes_js($vbphrase['show_all_smilies']) . "'\n";
                                                        break;
                                                }
                                        }

I added the required phrase a little further down however this caused my topics to open as blank pages. Could someone post the correct placement for it, incase its just me :)

Thanks

leannet 05-22-2008 08:48 AM

I had previously added smilies in quick reply and now its not working, does anyone know how I can fix this?

Pamela 05-22-2008 11:36 PM

When I make the recommended edits in includes/functions_editor.php on 3.7.0, the smilies box goes completely missing!

Can anyone get this to work in 3.7.0?

Darwinist, can you please update this for us? It's an awesome mod so a ton of us would appreciate it. Thanks! :D

gpc10347 05-27-2008 05:45 PM

Whew.. just updated to 3.7.1 - had to remod functions_editor but: The smilies are working well! Installed... Officially Installed!

Nice mod!

Pamela 05-29-2008 07:41 PM

Quote:

Originally Posted by gpc10347 (Post 1533169)
Whew.. just updated to 3.7.1 - had to remod functions_editor but: The smilies are working well! Installed... Officially Installed!

Nice mod!

Can you (or anyone) please share with us how you did that? :confused:

Thank you!

gpc10347 05-29-2008 11:50 PM

Quote:

Originally Posted by Pamela (Post 1535509)
Can you (or anyone) please share with us how you did that? :confused:

Thank you!

I am a true newbie at this so... forgive me..

includes/functions_editor.php

Immediately following this:
PHP Code:

if ($toolbartype AND ($vbulletin->options['smtotal'] > OR $vbulletin->options['wysiwyg_smtotal'] > 0))
        { 

I have this:
PHP Code:

        // query smilies
    ############### FAVORITE SMILIES #################
            
global $permissions;
            if ((
$vbulletin->userinfo['favsmilies']) AND ($vbulletin->options['favsmiliesactive']) AND ($permissions['favsmiliepermissions'] & $vbulletin->bf_ugp_favsmiliepermissions['canusefavsmilies'])) {
                
$show['favsmilies'] = true;
                
$favsmilies str_replace(" "", "$vbulletin->userinfo['favsmilies']);
                
$smilies $vbulletin->db->query_read_slave("
                    SELECT smilieid, smilietext, smiliepath, smilie.title,
                        imagecategory.title AS category
                    FROM " 
TABLE_PREFIX "smilie AS smilie
                    LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
                    WHERE smilieid IN (
$favsmilies)
                    ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
                "
);
                
$favsmtotal $vbulletin->db->num_rows($smilies);
                
$smilietotal $vbulletin->db->query_first("SELECT COUNT(*) as total FROM " TABLE_PREFIX "smilie");
                
$totalsmilies $smilietotal['total'];
            }
            else {
                
$smilies $vbulletin->db->query_read_slave("
                    SELECT smilieid, smilietext, smiliepath, smilie.title,
                        imagecategory.title AS category
                    FROM " 
TABLE_PREFIX "smilie AS smilie
                    LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
                    ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
                "
);
                
$totalsmilies $vbulletin->db->num_rows($smilies);
            }
############### /FAVORITE SMILIES ################ 


I replaced the original coding as mentioned immediately following this:

PHP Code:

while ($smilie $vbulletin->db->fetch_array($smilies))
                    { 

Here's the code above and below with the code pasted in where it works:

PHP Code:

while ($smilie $vbulletin->db->fetch_array($smilies))
                    {
############### FAVORITE SMILIES #################
                        
if ($show['favsmilies']) {$smilie['category']=$vbphrase['favorite_smilies'];}
############### /FAVORITE SMILIES #################                    
                        
if (empty($prevcategory)) 

And finally, my line 614 is this:
PHP Code:

$prevcategory $smilie['category'];
                    } 

Following that, I have this:

PHP Code:

############### FAVORITE SMILIES #################
                    
if ($show['favsmilies']) {
$vBeditJs['smilie_options_array']["$smilie[category]"][] = "\t\t'more' : '" addslashes_js($vbphrase['show_all_smilies']) . "'\n";
                    }
############### /FAVORITE SMILIES ################ 

And it works very nicely...


I've attached my version in case it might help - Good Luck!!

thepub 05-30-2008 12:39 AM

thank you!

gpc10347 05-30-2008 12:54 AM

Quote:

Originally Posted by thepub (Post 1535785)
thank you!

It worked?

thepub 05-30-2008 01:36 AM

I don't know yet, I wont be able to try it until later this evening or maybe tomorrow. I'm in a mario kart tournament with my kids right now LOL!

odeezie 06-02-2008 07:45 AM

Quote:

Originally Posted by gpc10347 (Post 1535799)
It worked?

I just upgraded to 3.7.1 and it was broken until I used your functions_editor file. Now it is back working perfectly. Thanks a ton!! :up:

thestaton 06-02-2008 11:15 AM

thanks for the token fix, & template edit. working good in 3.7.1

Chance4Today 06-02-2008 02:39 PM

Is this hack going to be updated for 3.7.0 or 3.7.1? I would love to have it would it work to do a fresh install and than do all the editing? I am really new also :) thanks

thestaton 06-02-2008 09:18 PM

I can't say with 100% certainty but this mod might have crashed my board today. I'm going to check the error logs and see if I can trace it down.

Pamela 06-03-2008 04:35 PM

Quote:

Originally Posted by gpc10347 (Post 1535743)
I am a true newbie at this so... forgive me..

includes/functions_editor.php

Immediately following this:
PHP Code:

if ($toolbartype AND ($vbulletin->options['smtotal'] > OR $vbulletin->options['wysiwyg_smtotal'] > 0))
        { 

I have this:
PHP Code:

        // query smilies
    ############### FAVORITE SMILIES #################
            
global $permissions;
            if ((
$vbulletin->userinfo['favsmilies']) AND ($vbulletin->options['favsmiliesactive']) AND ($permissions['favsmiliepermissions'] & $vbulletin->bf_ugp_favsmiliepermissions['canusefavsmilies'])) {
                
$show['favsmilies'] = true;
                
$favsmilies str_replace(" "", "$vbulletin->userinfo['favsmilies']);
                
$smilies $vbulletin->db->query_read_slave("
                    SELECT smilieid, smilietext, smiliepath, smilie.title,
                        imagecategory.title AS category
                    FROM " 
TABLE_PREFIX "smilie AS smilie
                    LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
                    WHERE smilieid IN (
$favsmilies)
                    ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
                "
);
                
$favsmtotal $vbulletin->db->num_rows($smilies);
                
$smilietotal $vbulletin->db->query_first("SELECT COUNT(*) as total FROM " TABLE_PREFIX "smilie");
                
$totalsmilies $smilietotal['total'];
            }
            else {
                
$smilies $vbulletin->db->query_read_slave("
                    SELECT smilieid, smilietext, smiliepath, smilie.title,
                        imagecategory.title AS category
                    FROM " 
TABLE_PREFIX "smilie AS smilie
                    LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
                    ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
                "
);
                
$totalsmilies $vbulletin->db->num_rows($smilies);
            }
############### /FAVORITE SMILIES ################ 


I replaced the original coding as mentioned immediately following this:

PHP Code:

while ($smilie $vbulletin->db->fetch_array($smilies))
                    { 

Here's the code above and below with the code pasted in where it works:

PHP Code:

while ($smilie $vbulletin->db->fetch_array($smilies))
                    {
############### FAVORITE SMILIES #################
                        
if ($show['favsmilies']) {$smilie['category']=$vbphrase['favorite_smilies'];}
############### /FAVORITE SMILIES #################                    
                        
if (empty($prevcategory)) 

And finally, my line 614 is this:
PHP Code:

$prevcategory $smilie['category'];
                    } 

Following that, I have this:

PHP Code:

############### FAVORITE SMILIES #################
                    
if ($show['favsmilies']) {
$vBeditJs['smilie_options_array']["$smilie[category]"][] = "\t\t'more' : '" addslashes_js($vbphrase['show_all_smilies']) . "'\n";
                    }
############### /FAVORITE SMILIES ################ 

And it works very nicely...


I've attached my version in case it might help - Good Luck!!


Oh awesome! Thank you!!! I will try this out later tonight and see if I can get it to work. :D

gpc10347 06-03-2008 05:43 PM

Hope it works as well for you as it seems to be working for me. I have it embedded in 5 templates and it's a great add-on. (Now, I need users!)

skywalker2208 06-04-2008 01:26 AM

I don't see a 3.7 version of this, will it be upgrade to the 3.7

captainron19 06-04-2008 10:25 AM

I just upgraded to 3.7.1 and I just had to go in and re-enter info into custom template since I updated my template and fav smilies seems to be working fine still

Veer 06-04-2008 08:36 PM

Doesn't work for me @ vbulletin 3.7.0,

I'm getting the following error when i press "Save" button.

Quote:

Your submission could not be processed because a security token was missing or mismatched.

gpc10347 06-04-2008 08:49 PM

Quote:

Originally Posted by Pehchaan (Post 1540988)
Doesn't work for me @ vbulletin 3.7.0,

I'm getting the following error when i press "Save" button.

I got that once I think. I had to visit my Usergroups pages and set a couple up.

(Seems there was a rebuild process I could do too)

Veer 06-04-2008 10:36 PM

Quote:

Originally Posted by gpc10347 (Post 1541004)
I got that once I think. I had to visit my Usergroups pages and set a couple up.

(Seems there was a rebuild process I could do too)

Hi, thanks for the reply.

yeah i have visited usergroups and edited, but still getting same error.

I also tried your edited function_editor file but no luck.

NeitherSparky 06-05-2008 04:40 AM

Quote:

Originally Posted by Pehchaan (Post 1540988)
Doesn't work for me @ vbulletin 3.7.0,

I'm getting the following error when i press "Save" button.

Your submission could not be processed because a security token was missing or mismatched.

The fix for this was posted by a user several pages back.

Open template favoritesmilies:

Find:

Code:

<input class="button" type="reset" value="$vbphrase[reset]" name="resetfavs"><input class="button" type="submit" value="$vbphrase[clear_list]" name="clearfavs">
Below it add:

Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

Veer 06-05-2008 08:49 AM

Quote:

Originally Posted by NeitherSparky (Post 1541248)
The fix for this was posted by a user several pages back.

Open template favoritesmilies:

Find:

Code:

<input class="button" type="reset" value="$vbphrase[reset]" name="resetfavs"><input class="button" type="submit" value="$vbphrase[clear_list]" name="clearfavs">
Below it add:

Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

Hi, NeitherSparky

It works now, thanks so much, be happy :)

Fungsten 06-05-2008 05:16 PM

I notice that whenever I edit the functions_editor.php file that none of my smilies show up. I looked through the thread and I didn't find anything on it. TIA.

goddess_dix 06-18-2008 10:26 PM

Quote:

Originally Posted by gpc10347 (Post 1535743)
it works very nicely...
I've attached my version in case it might help - Good Luck!!

thanks, both for the specifics and especially for attaching your version. i had grabbed it at the time, and it came in handy when i had to do a quickie update becasue, through some inattentiveness, i broke my forum with the wrong version of the security patch...LOL.

Anyway, your file worked perfectly and i upgraded without breaking my fav. smilies! thank you.

Leo Brazil 06-19-2008 05:12 PM

I'm using this hack on 3.7 and appearently everything was OK.
But I noticed on advanced editor options (just like when you use quote or go advaced) some editor functions are messed up like font color.

Probably there is a conflict between 3.6.8 and 3.7 functions_editor.php file when edited to have this hack working.

I just can't figure it out what on this file.

Has any one here found the same ?

MorrisMcD 06-23-2008 02:37 AM

I am running 3.7.1 and I use this addon.. https://vborg.vbsupport.ru/showthread.php?t=177774

I don't know if this works otherwise, but I know it doesnt even show up in the usercp. I am positive the template is correctly edited as well

Anyone? :(

Edit: Actually I disabled the other addon and this shows right up... Any ideas how to get it to show up with the addon enabled?

goddess_dix 06-23-2008 02:57 PM

Quote:

Originally Posted by MorrisMcD (Post 1556492)
I am running 3.7.1 and I use this addon.. https://vborg.vbsupport.ru/showthread.php?t=177774

snip-
Edit: Actually I disabled the other addon and this shows right up... Any ideas how to get it to show up with the addon enabled?

when you use that addon, there is a different template for your user control panel menu being accessed. you'll need to add the link to edit the favorite smilies in the template for your alternative cp menu...

Fungsten 06-23-2008 03:22 PM

The favorites are not working. After they are selected and saved they don't show up in the favorites list. Any idea what it could be? TIA.

goddess_dix 06-23-2008 03:51 PM

Quote:

Originally Posted by Leo Brazil (Post 1553777)
Probably there is a conflict between 3.6.8 and 3.7 functions_editor.php file when edited to have this hack working.

I just can't figure it out what on this file.

Has any one here found the same ?

a few posts back, someone included the updated edits, and those worked well for me....https://vborg.vbsupport.ru/showpost....&postcount=329

for something like this, often you can find the fix by browsing backward from the end of the thread; if a mod doesn't work with a recent update, there's a good chance other people have discussed it, after all. :p

NeitherSparky 06-23-2008 09:08 PM

Quote:

Originally Posted by Fungsten (Post 1556900)
The favorites are not working. After they are selected and saved they don't show up in the favorites list. Any idea what it could be? TIA.

That happens on my forum every time I run an upgrade and includes/functions_editor.php gets overwritten with a fresh copy. Make SURE you have made the edits to includes/functions_editor.php, and that they have not been overwritten, such as in a forum upgrade etc.

(Also make sure you have set each usergroup to be able to use the favorite smilies. :) But it's usually the includes/functions_editor.php edits that mess me up.)

MorrisMcD 06-24-2008 04:48 AM

Quote:

Originally Posted by goddess_dix (Post 1556874)
when you use that addon, there is a different template for your user control panel menu being accessed. you'll need to add the link to edit the favorite smilies in the template for your alternative cp menu...

Ahhh ok.. Ty

I should be able to manage that

Edit: Yup.. Worked perfect once I found it ty again

Fungsten 06-24-2008 07:47 PM

Quote:

Originally Posted by NeitherSparky (Post 1557205)
That happens on my forum every time I run an upgrade and includes/functions_editor.php gets overwritten with a fresh copy. Make SURE you have made the edits to includes/functions_editor.php, and that they have not been overwritten, such as in a forum upgrade etc.

(Also make sure you have set each usergroup to be able to use the favorite smilies. :) But it's usually the includes/functions_editor.php edits that mess me up.)

Several times. Just redid it and it still doesn't work.

thepub 06-26-2008 06:40 PM

can someone help me with this? I do not have the ability to open any funtion editor.php files and change them. Whenever I try to open them I get nothing or a bunch of garbled stuff. I tried to open it in a notebook and that didn't help either. I would like to add this to my forum again (so long as it is working properly) but cannot do it myself.

NeitherSparky 06-27-2008 04:26 AM

Quote:

Originally Posted by thepub (Post 1559800)
can someone help me with this? I do not have the ability to open any funtion editor.php files and change them. Whenever I try to open them I get nothing or a bunch of garbled stuff. I tried to open it in a notebook and that didn't help either. I would like to add this to my forum again (so long as it is working properly) but cannot do it myself.

That's weird...you don't even have like, WordPad? That's what I generally use. You must have SOME kind of text editor on your computer, and if not, I'm sure you can download one.

captainron19 06-29-2008 10:16 AM

Not sure if this was addressed yet but ever since upgrading to V 3.7.1 and if you go into the favorite smilies via control panel to edit them, once you try to save an error appears reading...

Your submission could not be processed because a security token was missing or mismatched.

Any ideas?

NeitherSparky 06-30-2008 04:22 AM

Quote:

Originally Posted by captainron19 (Post 1561941)
Not sure if this was addressed yet but ever since upgrading to V 3.7.1 and if you go into the favorite smilies via control panel to edit them, once you try to save an error appears reading...

Your submission could not be processed because a security token was missing or mismatched.

Any ideas?

Read my post #344 in this thread. :)

Lustikus 07-04-2008 02:21 PM

hi,

got a problem on my 3.6.8 installation, all working fine, only the star didnt work, i see only a " Edit favorite smilies" text.... not the gif, but the gif is uploaded in the correct folder and ive done all the editor bitsettings again and again, i also deinstalled and reinstalled the add on for vbulletin.

any ideas ?


All times are GMT. The time now is 06:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02184 seconds
  • Memory Usage 1,912KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (12)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete