vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Digital Point Spy (https://vborg.vbsupport.ru/showthread.php?t=243429)

sebbbl 07-02-2010 07:50 AM

Hi,

I don't want to see new users registrations, how can I can get rid of that ?

And I get � instead of accents (french forum).

Edit :

Quote:

Originally Posted by PHP FAN (Post 2057410)
fixed
PHP Code:

        /*$event['preview'] = htmlnumericentities(htmlentities ( 
            fetch_censored_text(fetch_trimmed_title(
            strip_bbcode(strip_quotes($event['preview']), false, true),
            $vbulletin->options['threadpreview']
        )), 
        ENT_COMPAT, 'UTF-8'));
                
        $event['title'] = str_replace ('&', '&', htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));
        */ 


Where do you insert this code ?

__________________________________________________ _________________________

I don't either see message description...

And finally : it shows "unknown" in the threads/posts list, so I can't see the message posted.

Link : http://frenchcinema4d.fr/spy.php

Yellow Slider 07-03-2010 10:46 AM

does this work with utf8 (hebrew) \ rtl?

Thanks

PHP FAN 07-03-2010 12:47 PM

hmmmm


OK forget about my last post!


The solution that worked for me in none English Characters with UTF-8 encoding is:



Open spy.php



Find:

PHP Code:

$event['preview'] = htmlnumericentities(htmlentities 
    
fetch_censored_text(fetch_trimmed_title(
    
strip_bbcode(strip_quotes($event['preview']), falsetrue),
    
$vbulletin->options['threadpreview']
)), 
ENT_COMPAT'UTF-8'));
                
$event['title'] = str_replace ('&''&'htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT'UTF-8'))); 



Change to:


PHP Code:

$event['preview'] = htmlspecialchars(htmlentities 
    
fetch_censored_text(fetch_trimmed_title(
    
strip_bbcode(strip_quotes($event['preview']), falsetrue),
    
$vbulletin->options['threadpreview']
)), 
ENT_COMPAT'UTF-8'));
                
$event['title'] = str_replace ('&''&'htmlspecialchars(htmlentities ($event['title'], ENT_COMPAT'UTF-8'))); 


mrt12345 07-03-2010 01:42 PM

Thanks for the mod this should be interesting.. PS i have been a big fan of your site:up:

Boofo 07-03-2010 02:38 PM

Quote:

Originally Posted by PHP FAN (Post 2063824)
hmmmm


OK forget about my last post!


The solution that worked for me in none English Characters with UTF-8 encoding is:



Open spy.php



Find:

PHP Code:

$event['preview'] = htmlnumericentities(htmlentities 
    
fetch_censored_text(fetch_trimmed_title(
    
strip_bbcode(strip_quotes($event['preview']), falsetrue),
    
$vbulletin->options['threadpreview']
)), 
ENT_COMPAT'UTF-8'));
                
$event['title'] = str_replace ('&''&'htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT'UTF-8'))); 



Change to:


PHP Code:

$event['preview'] = htmlspecialchars(htmlentities 
    
fetch_censored_text(fetch_trimmed_title(
    
strip_bbcode(strip_quotes($event['preview']), falsetrue),
    
$vbulletin->options['threadpreview']
)), 
ENT_COMPAT'UTF-8'));
                
$event['title'] = str_replace ('&''&'htmlspecialchars(htmlentities ($event['title'], ENT_COMPAT'UTF-8'))); 


What did you change? It looks the same to me.

PHP FAN 07-04-2010 07:30 AM

Quote:

Originally Posted by Boofo (Post 2063863)
What did you change? It looks the same to me.


Changed htmlnumericentities with htmlspecialchars in both lines:

PHP Code:

$event['preview'] = htmlnumericentities(htmlentities 

In to

$event
['preview'] = htmlspecialchars(htmlentities 


And


PHP Code:

$event['title'] = str_replace ('&''&'htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT'UTF-8')));  

In to
                
$event
['title'] = str_replace ('&''&'htmlspecialchars(htmlentities ($event['title'], ENT_COMPAT'UTF-8'))); 


sinucello 07-05-2010 02:18 PM

Hi,

this is a great mod, thanks for sharing it. Would be nice to have it in a sidebar block with some more options. That way users could be easily informed about everything they are interested in: new replies, PNs, post in subscribed forums without having to look at the "What`s new" page.

Another idea would be to use it as a tool for moderators with mod-options shown behind each entry.

all the best,
Sacha

sticky 07-11-2010 02:23 AM

I am getting this error for some reason:

Parse error: syntax error, unexpected '{', expecting ')' in /public_html/includes/class_core.php(4010) : eval()'d code on line 32

digitalpoint 07-11-2010 10:16 PM

What's your site URL?

sticky 07-11-2010 11:15 PM

Quote:

Originally Posted by digitalpoint (Post 2067804)
What's your site URL?

www.bimmerboost.com


All times are GMT. The time now is 04:44 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.01632 seconds
  • Memory Usage 1,774KB
  • 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
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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