vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   user favorites smilies (https://vborg.vbsupport.ru/showthread.php?t=66775)

Milorad 07-06-2004 05:06 PM

any plans to fix the DB error thing?

My users would love something like this.

Osterling 08-19-2004 01:35 AM

i love the idea of this hack.. when installed tho i got this error

Parse error: parse error, unexpected $ in /home/exas77ko/public_html/forum/misc.php on line 574

blubber12 08-20-2004 01:53 PM

I got no errors on install or use. But there is an oddity. In testing it, I choose 9 favorite smilies. Worked fine. But I then noticed that other members now had the same 9 smilies to choose from. Their's are no longer random, they have my 9. I have not given the info about this hack yet, so I know they did not choose the same 9. Is there a way around this? Thank you.

amykhar 10-03-2004 08:33 PM

It's working fine on my board, but it needs to be fixed so that if you have already added favorites, the favorites edit page has the selected ones checked. I'll work on it and post it as soon as I get it done.

amykhar 10-03-2004 09:41 PM

Got it.

Change the vbcode_nnnn_smiliesbits to say:

Code:

<tr valign="top">
<if condition="$show['wysiwyg']">
        <td class="$bgclass"><input type='checkbox' name='smilies[]' value='$smilie[smilieid]' multiple="multiple" <if condition="$smilie[checked]">checked</if>><img src="$smilie[path]" alt="$smilie[title]" border="0" /></td>
<else />
        <td class="$bgclass"><input type='checkbox' name='smilies[]' value='$smilie[smilieid]' multiple="multiple" <if condition="$smilie[checked]">checked</if> ><img src="$smilie[path]" alt="$smilie[title]" border="0" /></a></td>
</if>
        <td class="$bgclass" colspan="3">$smilie[text]</td>
</tr>

in misc.php, find:
Code:

if ($_REQUEST['do']=="getfavsmilie") {
Add after:
Code:

if($bbuserinfo['smilie'] !=''){
  $nabn = explode(" ", $bbuserinfo['smilie']);
}


Find:
Code:

foreach ($smilies AS $smilie)
                {

Add after:
Code:

    if ($nabn){
                    foreach ($nabn AS $favsmilie)
                        {
                          if($smilie['smilieid']==$favsmilie)
                          {
                              $smilie['checked']=true;
                          }
                        }
                        }


Polo 10-04-2004 07:33 PM

anyone using this mod on a vbulletin 3.0.3? sounds like a nice addon :)

amykhar 10-04-2004 08:12 PM

Yes, polo. My board is 3.0.3.

Amy

amykhar 10-04-2004 08:14 PM

Quote:

Originally Posted by blubber12
I got no errors on install or use. But there is an oddity. In testing it, I choose 9 favorite smilies. Worked fine. But I then noticed that other members now had the same 9 smilies to choose from. Their's are no longer random, they have my 9. I have not given the info about this hack yet, so I know they did not choose the same 9. Is there a way around this? Thank you.

I don't see this happening on my board. People with no favorites are pulling up smilies in the default order. Check your installation.

Polo 10-04-2004 08:44 PM

thanks amykhar, I will give it a try :)

Tipi 10-31-2004 05:27 PM

Sorry for bumping this thread, but i have a question. I've installed this hack now. It's perfect for my forum, i have almost 600 smilies on my smilieslist.

Started to add favorites, and when i was doen i clicked submit. Checked out my list (favorites) later, and discovered that the whole smilielist where in there. 600 smilies!! Have I doen something wrong? If not, can somebody plz tell me the point of this hack? *lol*


All times are GMT. The time now is 11:20 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.01128 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)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
  • (10)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