vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Smilies in QR and QE (https://vborg.vbsupport.ru/showthread.php?t=99532)

akanevsky 10-27-2005 10:00 PM

Smilies in QR and QE
 
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*=============================================*\
|| Smilies in QR and QE
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jun 05, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*=============================================*/

DESCRIPTION

Displays standard vBulletin smilies in quick reply and quick edit, which are not there by default.

STATISTICS

Products to Install: 1


VERSION HISTORY

1.1.0
[+] The modification is now compatible with vBulletin 3.5.x - 3.8.x.
[+] Eliminated all template edits.

1.0.3
[+] The modification is now compatible with vBulletin 3.6.

1.0.2
[+] The dropdown has been added to the quick edit form.
[+] The hack is now free of code modifications.

1.0.1
[F] Templates are now cached, 4 queries saved.

1.0.0
Initial Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

moonclamp 10-28-2005 07:12 PM

Phew, at last thanks

Anyway, 2 things

What does the .css in the zip do?

I'm using vbadvanced gallery ... the smileys don't show up in the qr box on that. (the link does but there is nothing in it)

akanevsky 10-28-2005 07:26 PM

Quote:

What does the .css in the zip do?
It is used for HTML manual, don't pay attention to it.

Quote:

I'm using vbadvanced gallery ... the smileys don't show up in the qr box on that. (the link does but there is nothing in it)
I am not using the gallery, so I can't help you with that. I would assume that in one of the files you need to perform a replacement identical to the one for ./forum/includes/functions_editor.php

imported_magjr 10-28-2005 07:53 PM

Did it in under three minutes and works like a charm.

A god you are!

*clicked install*

moonclamp 10-28-2005 08:32 PM

Quote:

Originally Posted by Dark Visor
It is used for HTML manual, don't pay attention to it.



I am not using the gallery, so I can't help you with that. I would assume that in one of the files you need to perform a replacement identical to the one for ./forum/includes/functions_editor.php

I think it's because the gallery isn't stored under the forum root but next to it

ie

html_docs/forum
html_docs/gallery

So I might just need to find the file that works the smiley popup in the forum root and copy it to the gallery root (maybe, maybe not. I'm no coder)

Snake 10-29-2005 12:00 PM

Thanks, I was looking for this.

mfizzel 10-31-2005 05:25 PM

For some reason after install, the templates aren't getting cached, this has added 5 extra queries to every thread :
Uncached templates: editor_smilie (15)
Uncached templates: editor_smiliebox (1)
Uncached templates: editor_smiliebox_row (5)
Uncached templates: newpost_disablesmiliesoption (1)

how can I resolve this? Thanks :)

EasyTarget 10-31-2005 05:47 PM

thank you.

akanevsky 10-31-2005 07:49 PM

Quote:

For some reason after install, the templates aren't getting cached, this has added 5 extra queries to every thread :
Uncached templates: editor_smilie (15)
Uncached templates: editor_smiliebox (1)
Uncached templates: editor_smiliebox_row (5)
Uncached templates: newpost_disablesmiliesoption (1)

how can I resolve this? Thanks
I'll see if I can fix this.

mcyates 11-04-2005 07:10 AM

Quote:

Originally Posted by mfizzel
For some reason after install, the templates aren't getting cached, this has added 5 extra queries to every thread :
Uncached templates: editor_smilie (15)
Uncached templates: editor_smiliebox (1)
Uncached templates: editor_smiliebox_row (5)
Uncached templates: newpost_disablesmiliesoption (1)

how can I resolve this? Thanks :)


I get this also, i think its because they have not been included in the global.php file.

mfizzel 11-04-2005 01:54 PM

Any update on a fix? I had to uninstall because of the extra load it was putting on my server.

akanevsky 11-04-2005 05:53 PM

Quote:

Any update on a fix? I had to uninstall because of the extra load it was putting on my server.
Patience, son! Will be fixed as soon as I have some spare time. ;)

Snake 11-04-2005 07:40 PM

Great news buddy. :)

akanevsky 11-04-2005 09:51 PM

Updated. Cache is now being utilitized.
To upgrade, just upload the new plugin XML (there was no plugins in prev. version).

EasyTarget 11-04-2005 10:57 PM

sweet, thanks.

Snake 11-05-2005 04:32 PM

Bingo! Was waiting for this... thanks.

mfizzel 11-05-2005 04:41 PM

nice :D

Chris M 11-06-2005 09:26 PM

editor_toolbar_start
PHP Code:

if (($editor_type 'qr') && (!$smiliebox)) {
    
$editor_type 'fe';


:)

Chris

akanevsky 11-06-2005 09:47 PM

I am not sure that this code will not interefere with vbulletin functioning...
vbulletin doesn't just use "qr" for nothing. You may not know what other things are to be enabled when the editor is not "qr", at least not for future versions... But I'll look at your suggestion, thx. ;)

Chris M 11-06-2005 09:54 PM

Hence why I had the code check if $smiliebox was empty ;)

Chris

akanevsky 11-06-2005 10:06 PM

I performed a thorough search through vbulletin files to see where $smiliebox gets defined, but I only found out that it gets defined in that function AFTER the hook... so I don't really get the idea :(

akanevsky 11-07-2005 12:17 AM

I think I have a better solution ;) Check back tomorrow, and if it comes out well, the hack will have no code mods.

Andreas 11-07-2005 01:01 AM

Hmm ...

editor_toolbar_start
PHP Code:

$editor_type 'foobar'

?

$editor_type doesn't seem to be needed after that Hook - except for the smilies check. So setting it to smth. else should bypass the if and not cause any side effects.

Chris M 11-07-2005 01:41 PM

Quote:

Originally Posted by Andreas
Hmm ...

editor_toolbar_start
PHP Code:

$editor_type 'foobar'

?

$editor_type doesn't seem to be needed after that Hook - except for the smilies check. So setting it to smth. else should bypass the if and not cause any side effects.

Yeh - You can remove the $smiliebox variable :p

Chris

Snoop-It 11-07-2005 07:14 PM

Any screen shots involved here?? lol can some one please post me a screen shot on how it looks on properly before i download / install??

akanevsky 11-07-2005 08:10 PM

RELEASE v1.0.2

[+] The dropdown has been added to the quick edit form.
[+] The hack is now free of code modifications.

TO UPGRADE:

1. Uninstall the old plugin via plugin manager.
2. Install the new product via product manager.
3. Perform the second template modification for postbit_quickedit.
4. Undo the code edit from the previous version.

Quote:

Any screen shots involved here?? lol can some one please post me a screen shot on how it looks on properly before i download / install??
If you want screenshots, go to your vbulletin advanced editor and see what kind of dropdown it has there. That's exactly what you'll get in quick reply.

moonclamp 11-07-2005 08:16 PM

Are there any upgrade instructions?

akanevsky 11-07-2005 08:22 PM

Yes, sorry.

TO UPGRADE:

1. Uninstall the old plugin via plugin manager.
2. Install the new product via product manager.
3. Perform the second template modification for postbit_quickedit.
4. Undo the code edit from the previous version.

moonclamp 11-07-2005 08:28 PM

Thanks ... what about the code edit? Should that be removed too or is that ok?

EDIT .... Ah you edited it ... I look like a plum now :o

akanevsky 11-07-2005 08:29 PM

Although it doesn't matter in this particular case, the answer is YES. You should undo the code edit.

Also, if you downloaded the archive before this post, download it again. A minor error in XML has been fixed. ;)

moonclamp 11-07-2005 08:32 PM

Quote:

Originally Posted by Dark Visor
Although it doesn't matter in this particular case, the answer is YES. You should undo the code edit.

Also, if you downloaded the archive before this post, download it again. A minor error in XML has been fixed. ;)

Okee dokee. All done :)

moonclamp 11-07-2005 08:36 PM

Is anyone else using this hack also using vbadvanced gallery?

If so I'm still having trouble trying to get the smileys to appear in the dropdown box when commenting on a picture. If anyone has a solution I would be a very grateful man

Cedric_FP 11-07-2005 11:01 PM

Definitely very cool! Thanks!

Snake 11-08-2005 10:12 AM

Thanks for the second update! :D

PKassab 11-08-2005 12:25 PM

excelent product thank you very much

Kirk Y 11-08-2005 06:48 PM

Yay! Finally... I've been waiting forever for someone to do this. HOTM!

* acidburn0520 vigorously clicks Install

slank 11-10-2005 12:51 PM

am installing for sure - cheers

Mark.B 11-26-2005 03:46 PM

How could this be amended to show a random selection of, say, 15 smilies, rather than just the first 15?

I realise that might involve a code edit but I don't care. :D

Would it just be a matter of amending the same code that generates the smilies in the main message window, which would be fine as I want those random too?

akanevsky 11-26-2005 04:09 PM

Yes, it is the same code.

Vtec44 11-26-2005 04:30 PM

It doesnt seem to work with v3.50 RC3 :(


All times are GMT. The time now is 04:49 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.01467 seconds
  • Memory Usage 1,818KB
  • 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
  • (3)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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