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)
-   -   Smilie Hack (https://vborg.vbsupport.ru/showthread.php?t=64671)

Pseudomizer 05-02-2004 10:00 PM

Smilie Hack
 
OR
How-To-manage many smilies in a nutshell

After getting more and more requests from administrators i decided to create one hack which should serve most of the requests. I got the request for a category hack for smilies and i got the request to manage many smilies very easy without creating multiple templates and html files.

Due to this i decided to create an extra page for smilies. This page reads out specific directories which you specify upfront. I also added category names which can be set up front for each specific folder.

So you edit the smilie_config.php just once and afterwards you just upload any smilie graphics into the appropriate folder. The rest is done via the script.

On top of this i added a single box at the top which is a small javascript. To make it very easy for your people to add the smilies into any thread or pm, they just have to click on any graphic and the appropriate link to this particular smilie will occur in the box. So they just have to cut and paste the link into any thread or pm.

Installation instructions are in the zip file. Install time estimated: 10 mins

And again: NO database changes are required and no modification of existing php files. If you wish i can post a code how to replace the link for more smilies in each thread or pm creation with a link to the new file but i added an additional link in my domain.

I will only give support if you click on the install button on the right upper corner or you click on this INSTALL link.

Known Bugs/Error Messages:
- if there are any other files then graphic files in the folder the script will not recognize this. This will be fixed in the next release.
- if you get the error message: Warning: Invalid argument supplied for foreach() in functions_smilies.php on line 40 then you specified a wrong path to your smilies in the smilie_config.php

Cheers,

Pseudomizer 05-02-2004 10:26 PM

Hi @LL,

here are 2 screenshot where you can see what this hack does.

The yellow arrow shows the box where the link to the smilie will occur and it will be already in an [IMG] tag for cut and paste.

The green arrow shows the categories which can be defined.

Cheers,

msimplay 05-02-2004 11:22 PM

hmm not quite what i was looking for
i would have prefered if it was intergrated with the existing smilie popup
ie catergory MSN , YAHOO , POSITIVE , NEGATIVE etc
and when u click on the catergory it would present the catergory in the same popup and the same smilie replacements as vbulletin

but this is completely different

Pseudomizer 05-03-2004 12:05 AM

Quote:

Originally Posted by msimplay
hmm not quite what i was looking for
i would have prefered if it was intergrated with the existing smilie popup
ie catergory MSN , YAHOO , POSITIVE , NEGATIVE etc
and when u click on the catergory it would present the catergory in the same popup and the same smilie replacements as vbulletin

but this is completely different

Sorry that this does not fit for you. Good luck in finding someone else for what you request.

Cheers,

msimplay 05-03-2004 12:13 AM

Quote:

Originally Posted by Pseudomizer
Sorry that this does not fit for you. Good luck in finding someone else for what you request.

Cheers,

good hack none the less :D

Pseudomizer 05-03-2004 12:15 AM

Quote:

Originally Posted by msimplay
good hack none the less :D

Perhaps we can talk about the next version when i have finished my next hack. We could take your request as an enhancement request for the next version. Or i can offer a complete new version which solves your needs but he have to be very specific how you want it.

Cheers,

msimplay 05-03-2004 12:27 AM

Quote:

Originally Posted by Pseudomizer
Perhaps we can talk about the next version when i have finished my next hack. We could take your request as an enhancement request for the next version. Or i can offer a complete new version which solves your needs but he have to be very specific how you want it.

Cheers,

your very kind obviosly i'd like this to be made
so i'll be as specific as i can

bare with me while i make a html demo of how i'd like it

msimplay 05-03-2004 01:16 AM

Quote:

Originally Posted by Pseudomizer
Perhaps we can talk about the next version when i have finished my next hack. We could take your request as an enhancement request for the next version. Or i can offer a complete new version which solves your needs but he have to be very specific how you want it.

Cheers,

ok got the demo made all u gotta do is unzip the files and keep them in their directory state and then open up smilie link.html for the smilie pop up and u'll see how i invisioned smilie catergories :D

Smilie_demo removed because it is done

here

MindTrix 05-03-2004 10:03 AM

Nice hack well done, but i agree with msimplay, his idea would be great :)

egyptsons 06-13-2004 08:45 AM

Quote:

Originally Posted by MindTrix
Nice hack well done, but i agree with msimplay, his idea would be great :)

me too


All times are GMT. The time now is 02:45 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.01045 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)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
  • (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