Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Smiliecreator v1.1 Details »»
Smiliecreator v1.1
Version: 1.00, by Kars10 Kars10 is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-18-2003 Last Update: Never Installs: 71
 
No support by the author.

Hello Hackers!
Ok this is my first release here, so be gentle with me!

Ok, what does this hack do?
With this hack you can easy generate your own custom Sign-Smilies.

Credits to: tkeil69575

It should work with any vBVersions 2.x.x.

Files to modify: 2 (vbcode.js, misc.php)

Templates to add: 1 (vbcode_popup_smiliecreator)

Templates to edit: 1 (vbcode_smilies_getmore)

Installtime: 5 - 10 min

[high]NOTE: This hack uses the PHP-GD Function, so be shure you have this enabled on your server.
If you don?t be shure about this, ask your host or look in your PHP-Info.
Also you must have Dynamic URL for [img] tags enabled in your Posting Code Settings.
[/high]

Changelog:
- v1.0 First Release
- v1.1 Fixed Quotes-bug; credits to Slynderdale and FlyingDutchman


Update Information: from v1.0 to v1.1 / only replace the old text2schild.php with the new one

Screenshots in the next Posts.

Have Fun and please click install if you use this hack!
Kars

Show Your Support

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

Comments
  #42  
Old 03-19-2003, 09:25 PM
jbear6 jbear6 is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:42 PM Slynderdale said this in Post #35


PHP Code:
stripslashes() 
Thank you my friend, but you give me more credit than I deserve. Where would I put that?

Thanks,
Jbear6
Reply With Quote
  #43  
Old 03-19-2003, 09:37 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

find in text2schild.php:
PHP Code:
<?
under it add:
PHP Code:
function remove_magic_quotes(&$x,$keyname="") {
    if (
is_array($x)) {
        while (list(
$key,$value) = each($x)) {
            if (
$valueremove_magic_quotes(&$x[$key],$key);
        }
    } else if (
ini_get('magic_quotes_sybase')) {
        
$x preg_replace("/''/""'"$x);
    } else if (
ini_get('magic_quotes_runtime')) {
        
$x preg_replace("/\\"/"'"'$x);
    } else if (
ini_get('magic_quotes_gpc')) {
        
$x stripslashes($x);
    }

then find:
PHP Code:
$text rawurldecode($_GET["text"]); 
under it add:
PHP Code:
remove_magic_quotes(&$text); 
Reply With Quote
  #44  
Old 03-19-2003, 09:59 PM
jbear6 jbear6 is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ummmm....I put this
PHP Code:
<?php
error_reporting
(7);

$noheader=1;

require(
"./global.php");
to prevent non-members from linking to the smilie image URL, is that going to conflict with your first instruction?

Thanks,
Jbear6
Reply With Quote
  #45  
Old 03-19-2003, 10:02 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, you can basicly put that function any wheres, the slash you get is most likly due to having magic quotes turned on, with this, it will strip the extra slashes from the text.

Quote:
Today at 06:59 PM jbear6 said this in Post #43
Ummmm....I put this
PHP Code:
<?php
error_reporting
(7);

$noheader=1;

require(
"./global.php");
to prevent non-members from linking to the smilie image URL, is that going to conflict with your first instruction?

Thanks,
Jbear6
Reply With Quote
  #46  
Old 03-19-2003, 10:21 PM
jbear6 jbear6 is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Slynderdale

Jbear6
Reply With Quote
  #47  
Old 03-20-2003, 09:56 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great addon, well done.

I get 2 javascript errors though:

PHP Code:
Line10
Char
14
Error
'document.schild.type' is not an object 
And when i click on generate smilie then i get this javascript error:

PHP Code:
Line275
Char
1
Error
'opener' is not an object 
Any idea's?
Reply With Quote
  #48  
Old 03-20-2003, 11:06 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ Lesane, this is very strange.
Look in your vbcode_popup_smiliecreator-template and make shure that there is no error. Have you uploadet the modified vbcode.js?
Reply With Quote
  #49  
Old 03-20-2003, 11:51 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works now, i first tried to run it standalone.

Thanks.
Reply With Quote
  #50  
Old 03-20-2003, 11:53 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No Problem. Glad that you like it!
Reply With Quote
  #51  
Old 03-20-2003, 01:09 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a great addon.

I have it integrated in my store hack as standalone and it works perfect. They are forced to download the smilie to their computer and to not use the text2schild.php url(password protected) to prevent high server load.
Reply With Quote
Reply


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 12:00 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.04911 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
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
  • (9)bbcode_php
  • (2)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_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