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)
-   -   Smiliecreator v1.1 (https://vborg.vbsupport.ru/showthread.php?t=50450)

jbear6 03-19-2003 09:25 PM

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

Slynderdale 03-19-2003 09:37 PM

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); 


jbear6 03-19-2003 09:59 PM

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

Slynderdale 03-19-2003 10:02 PM

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


jbear6 03-19-2003 10:21 PM

Thanks Slynderdale :)

Jbear6

Lesane 03-20-2003 09:56 AM

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?

Kars10 03-20-2003 11:06 AM

@ 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? :)

Lesane 03-20-2003 11:51 AM

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

Thanks.

Kars10 03-20-2003 11:53 AM

No Problem. Glad that you like it! :)

Lesane 03-20-2003 01:09 PM

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.


All times are GMT. The time now is 01:44 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.01169 seconds
  • Memory Usage 1,752KB
  • 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
  • (9)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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