Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
user favorites smilies Details »»
user favorites smilies
Version: 1.00, by all-the-vb all-the-vb is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 07-01-2004 Last Update: Never Installs: 23
 
No support by the author.

Hello Everyone.

hack : user favorites smilies

by All-the-vb

Description:
that's hack allow each member to choose his favorite smiles .. let's discover the other features guyz


Queries to Run: 1
Files to edit: 2
Templates to edit:2
Templates to add:3
new Phrases: 3

if you use this hack don't forgot click

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-11-2005, 09:50 PM
Kali Kali is offline
 
Join Date: Mar 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed this on a 3.0.6. and it works quite nicely once you add the modification amykhar added to it. I did run into one snag though and I was wondering someone out there could help me sort it out.

As it is currently, when I attempt to remove all my selected favorites, rather than go back to the default smiley set, it causes an error and refuses to remove the last smiley. I want people to be able to go back to the default if they decide they don't want to use favorites.

The only way I'm able to reset it back to default currently is to go into the user table and manually take out the data... which is a bit of a pain obviously.

The error I'm getting is:

Warning: implode(): Bad arguments. in /misc.php on line 505

Database error in vBulletin 3.0.6:

Invalid SQL: UPDATE user SET smilie= WHERE userid='1'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid='1'' at line 1

mysql error number: 1064


Line 505 looks like this currently:
PHP Code:
 $query =$DB_site->query("UPDATE " TABLE_PREFIX "user SET smilie=" implode(","$nabn) . " WHERE userid='$uid'"); 
Does anyone have any suggestions? I'd really appreciate any help someone could give. :nervous:
Reply With Quote
  #23  
Old 02-18-2005, 06:01 PM
Moxi Moxi is offline
 
Join Date: Oct 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My users would love this...we also have a rather large smilie list...but I'm recieving the same error as Kali...I am recieving a database error when trying to remove all my favourites, which I would like to see fixed.

Also, how can I have it so that the [more] smilies link is still visible even after my members choose favourites? I'd also like to have a favourites link in quick reply, if that's possible. Does anyone know how?
Reply With Quote
  #24  
Old 03-01-2005, 02:22 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the mod Amy

Installed this hack and lovin it.

Referring to a response from above about the 600 smilies..

It kinda has to list them all for them to select their favorites doesn't it?
Reply With Quote
  #25  
Old 03-02-2005, 08:15 AM
Bulleh Bulleh is offline
 
Join Date: May 2003
Location: Leicester
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, it works fine in the sense that my Favourites are actually working, BUT how do i get the "more" link back under favourites? im a bit of a n00b
Reply With Quote
  #26  
Old 03-29-2005, 04:24 PM
Anette's Avatar
Anette Anette is offline
 
Join Date: Apr 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked fine. But not on smilies on quick reply!
Reply With Quote
  #27  
Old 04-30-2005, 07:39 PM
kthlnwrnr kthlnwrnr is offline
 
Join Date: Mar 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way that we can get the more smiliey link back along with the fav smiliey link? Mine disappeared after selecting favorites.
Reply With Quote
  #28  
Old 05-07-2005, 04:57 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone figured out how to have it so that the [more] smilies link is still visible even after we chose our favourites? Otherwise, we can't get to the rest of our smilies anymore! This is a great idea for a hack...but we definitely need the [more] smilies link back!
Reply With Quote
  #29  
Old 05-10-2005, 07:54 AM
Melker Melker is offline
 
Join Date: May 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change "vbcode_smilies_editfav" to the following:
Code:
<tr>
  <td class="smallfont" colspan="$vboptions[smcolumns]" align="center" style="border-width:0px; border-style:inset" title="$vbphrase[favorites_smilies]">[<a target="_blank" href="misc.php?do=getfavsmilie">$vbphrase[favorites]</a>]</td>
  <tr><td></td></tr>
  <td class="smallfont" colspan="$vboptions[smcolumns]" align="center" style="border-width:0px; border-style:inset">[<a href="#" onclick="open_smilie_window(smiliewindow_x, smiliewindow_y, $wysiwyg, '$forumid'); return false" title="<phrase 1="$vboptions[smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase>">$vbphrase[more]</a>]</td>
</tr>
Replace the table in editor_smiliebox with the following:

Code:
<table cellpadding="4" cellspacing="0" border="0" align="center">
	$smiliebits
        $vbcode_smilies_editfav
	<if condition="$show['moresmilieslink']">
	<tr>
<if condition="$bbuserinfo['smilie']==''">
<td class="smallfont" colspan="$vboptions[smcolumns]" title="$vbphrase[favorites_smilies]">
[<a target="_blank" href="misc.php?do=getfavsmilie">$vbphrase[favorites]</a>]
</td></tr>
<tr><td></td></tr>
<tr>
		<td class="smallfont" colspan="$vboptions[smcolumns]">[<a href="#" onclick="open_smilie_window(smiliewindow_x, smiliewindow_y, $wysiwyg, '$forumid'); return false" title="<phrase 1="$vboptions[smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase>">$vbphrase[more]</a>]</td>
	</tr>
</if>
	</if>
	</table>
It seems to work for me. YMMV :up:
Reply With Quote
  #30  
Old 05-11-2005, 08:07 AM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Melker
It seems to work for me. YMMV :up:
WOOHOO!!! Works for me too!!!

Thanks so much Melker!!! You are awesome!!!
Reply With Quote
  #31  
Old 05-12-2005, 11:32 AM
Melker Melker is offline
 
Join Date: May 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed that there was some issues with the option [More] showing up twice if there was more fav smilies selected than was allowed in the smiliebox. I fixed it by moving the following portion in the editor_smilebox inside the second set of <if></if>.

Code:
<tr>
		<td class="smallfont" colspan="$vboptions[smcolumns]">[<a href="#" onclick="open_smilie_window(smiliewindow_x, smiliewindow_y, $wysiwyg, '$forumid'); return false" title="<phrase 1="$vboptions[smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase>">$vbphrase[more]</a>]</td>
	</tr>
I have tried several ways and it seems to works perfectly now. Please see my earlier post for the updated information.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04565 seconds
  • Memory Usage 2,308KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete