vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   smiley category hack (https://vborg.vbsupport.ru/showthread.php?t=54441)

tkeil69575 06-16-2003 10:00 PM

smiley category hack
 
This hack will allow you to sort your smilies into categories. especially usefull if you have many smilies.

features are:
----------------

in admin cp:

add categories
sort categories
delete and edit categories
asign category on upload
show category in smilie overview
--> see admincp1-3.gif

in pop-up window of link [get more]:
shows a selectbox with categories
--> see screenshot popup.gif

tested with vb 2.2.9 and vb 2.3.0

hack requires database alterations
and editing of smilie.php and admin/index.php

have fun

tkeil69575 06-17-2003 03:41 PM

screenshot of smiley pop-up window

tkeil69575 06-17-2003 03:41 PM

admin cp screenshot 1

tkeil69575 06-17-2003 03:42 PM

admincp screenshot 2

S.Shady 06-17-2003 03:42 PM

Nice idea. I will use this when i get more smilies :)

tkeil69575 06-17-2003 03:42 PM

admincp screenshot 3

finito

Kars10 06-17-2003 03:54 PM

This is so great!!!! :)
Thanks for sharing Tina.

[high]* Kars10 klicks install![/high]

Intex 06-17-2003 04:35 PM

Cool hack Tina. Will add to my install list :).

mx3 06-17-2003 05:07 PM

I've been wanting something like this for a long time! *Installs*

Chris M 06-17-2003 05:27 PM

@mx3 - Then you can look forward to this in vB3;):)

Nice idea Tina:)

Satan

Dean C 06-17-2003 05:45 PM

Great idea and great hack. Good to see another female hacker posting here :)!

- miSt

Dan 06-17-2003 05:56 PM

interesting.... I'd install it if I was running vb2 still but great hack anyways

Kars10 06-17-2003 07:22 PM

@ Chris, this is way better than the VB3 Smilie Categorys...believe me. :)

AntiOnline 06-18-2003 12:35 AM

Greetings:

How about adding a way to limit certain categories to certain forums? That way, each forum could have it's own smilie category, with smilies relevant to the content posted in that forum (sports smilies under the sports forum, video game smilies in the video game forum, etc. etc.)?

-Sidekick- 06-18-2003 01:05 AM

great hack.

MetroSports82 06-18-2003 03:20 AM

nice idea tina. :)

SpeedStreet 06-18-2003 05:47 AM

I'd still donate a kidney and/or first borne child to using a drop down vs. the smiley showcase on the replybit.

-Sidekick- 06-18-2003 01:53 PM

How does this hack effect the order of smilies that are shown in the display block of a new thread or reply screen?

tkeil69575 06-18-2003 04:53 PM

hi sidekick,
it does not effect that order at all.

greetings
tina

-Sidekick- 06-18-2003 07:51 PM

Last question. Does your hack "play along well" with FireFly's smilie hack?

https://vborg.vbsupport.ru/showthrea...threadid=25888

Smoothie 06-19-2003 02:11 AM

Quote:

Today at 04:51 PM -Sidekick- said this in Post #20
Last question. Does your hack "play along well" with FireFly's smilie hack?

https://vborg.vbsupport.ru/showthrea...threadid=25888

same question here too.

tkeil69575 06-19-2003 07:40 AM

the hack works fine together with firefly's hack. the order of smilies still works for the smilies shown directly in the post form, but is not adhered to in the pop-up window.

greets
tina

gmarik 06-19-2003 08:44 AM

Nice, damn, nice!

Code:

Is there ady idea, how to make relative the smilie paths store in the db? I mean, not "images/smilies/red" but just adding variable $redsmile, if the path maches predefined values? So if I have to later the site structure, I can only change the variable values?

Sam FT 06-20-2003 03:32 AM

Quote:

Today at 03:40 AM tkeil69575 said this in Post #22
the hack works fine together with firefly's hack. the order of smilies still works for the smilies shown directly in the post form, but is not adhered to in the pop-up window.

greets
tina

tina great hack, but there is one line that makes firefly's hack not work and it is in the smilie.php file (step 16 from your instructions)

original code:
Quote:

$smilies=$DB_site->query("SELECT smilietext,smilieid,title,smiliepath FROM smilie LIMIT ORDER by title LIMIT ".($limitlower-1).",$perpage");
firefly version of the code:
Quote:

$smilies=$DB_site->query("SELECT smilietext,smilieid,title,smiliepath,showid FROM smilie ORDER BY showid LIMIT ".($limitlower-1).",$perpage");
and your version of the code:
Quote:

$smilies=$DB_site->query("SELECT smilietext,smilieid,smilie.title,smiliegroup.title AS catname,smiliepath,smiliecat FROM smilie LEFT JOIN smiliegroup ON smiliecat=smiliegroup.smiliegroupid ORDER by smilie.title LIMIT ".($limitlower-1).",$perpage");

tkeil69575 06-20-2003 06:32 AM

like i said pirate
the order of smilies according to fireflys hack works only in the smilies shown in the reply form and not in the pop up windows of the smiley category hack. smilies there are sorted acording to the smiley title. you could change that if you wanted by editing "ORDER BY smilie.title" to "ORDER BY smilie.showid" if you wanted. when I say it works with fireflys hack, I mean it doesnt conflict with it.

tina

Floris 06-24-2003 07:38 AM

We need moreeeeeeeeee female hackers on this community !!

gmarik 06-24-2003 10:58 AM

Tina,

Great to see, what you have done. If there could only be one person (or the vb.com team) that could unite the good features of your and the other (Avatars Category and Permission) hack. Because I would love to categorize not only smilies, but the images I upload as well.

An idea I had about this matter looks like this: we need to have just one "category" and one "metacategory" (last added, time and all other meta info about the other table) where, for example, all smilie groups have one cid incommon, all the avatar categorys have another and another feature would be good - to create subcategorys as we have subforums here. I understand that it's very hard, but you're not the only one arround, we could help. You're just on the right way :o)

-Sidekick- 06-24-2003 06:29 PM

It would be cool if users had their own category that they could modify for themselves, like a favorites category. =]

-Sidekick- 06-24-2003 06:36 PM

When I installed this, the order boxes from the FireFly hack became blank. Though when I uninstalled the hack, the boxes were no longer blank.

tkeil69575 06-27-2003 04:00 PM

hi sidekick,
i have fireflys hack installed on my board too. there should be no problem and it should not interfeer with his hack. recheck the instructions.

yes i was thinking about an integration with the favourite smilies hack, but am too busy right now for that. maybe someone else will come up with that.

greetings
tina

MentaL 06-27-2003 04:42 PM

looks good

M.C. 07-05-2003 12:34 AM

i`ve got an error when i tryed to add new smilies:

Quote:

Database error in vBulletin Control Panel 2.3.0:

Invalid query id specified
mysql error:

mysql error number: 0

Date: Friday 04th of July 2003 08:32:38 PM
Script: http://localhost/forum/forum/admin/smilie.php
Referer: http://localhost/forum/admin/smilie.php?action=add&s=
after i installed that hack

tkeil69575 07-07-2003 07:38 AM

hi m.c.,
did you carry out the queries as described in the instructions?

tina

M.C. 07-07-2003 04:04 PM

2 tina

Thanx for reply! I did everything what is in instruction.

Everything work perfect exept add multiply smilies!

Good Luck!

-Sidekick- 07-08-2003 10:51 PM

I have the same problem.

-Sidekick- 07-12-2003 05:33 PM

The error is there after you specify the number of smilies to show per page when adding multiple smilies.

Also, the error doesn't show if there's no smilies to add.

Don't know if that helps you any.

-Sidekick- 07-18-2003 05:27 AM

has this hack been ditched?

The_Huntress 07-21-2003 05:21 PM

Question: Would this hack allow me to restric the use of smilies in an especific cat to certain usergroups? And if not, would it be possible to add such feature?

Arabs Emperor 07-22-2003 05:57 PM

i have same M.C. error

:confused: Pleas help us i need to add smilies
:(
Quote:

++++++++++++++++++++++++++++++
There seems to have been a slight problem with the ?????????? ????? database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin Control Panel 2.3.0:

Invalid query id specified
mysql error:

mysql error number: 0

Date: Tuesday 22nd of July 2003 02:49:55 PM
Script: http://www.arabse.net/forums/forums/admin/smilie.php
Referer: http://www.arabse.net/forums/admin/s...hp?action=add&
++++++++++++++++++++++++++++++++++++++++++

-Sidekick- 07-22-2003 06:53 PM

I think this hack has been ditched by the hacker. =] We're on our own. If I figure it out I'll let you know. =]


All times are GMT. The time now is 01:31 AM.

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.01770 seconds
  • Memory Usage 1,809KB
  • 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
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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