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)
-   -   Denied Symbol In a new thread (https://vborg.vbsupport.ru/showthread.php?t=81795)

iSpanish 05-20-2005 10:00 PM

Denied Symbol In a new thread
 
Hi there
This is my Second hack


As requested here

What does this hack do?
In the new thread page it checks if the subject have a denied symbol or not. If the user enter any symbol from this + = _ # $ ^ * will get a message telling user to change the desired thread title.

Updated on 22/5/2005
Thanks to Aurous for fixing the error ( extra ";") on the denied_threadtitle.php file.

for update just replace includes/denied_threadtitle.php with the new one from attachment.

install this hack?
just upload 1 file to includes folder.
Edit functions_newpost.php file.
That's all.

1.
Open includes/functions_newpost.php
Find:

PHP Code:

$post['title'] = trim(preg_replace('/&#0*32;/'' '$post['title'])); 

Below add:

PHP Code:

 // # Denied symbol from new thread[strat]
    
require('denied_threadtitle.php');
 
// # Denied symbol from new thread[end] 

Save & uplaod includes/functions_newpost.php

2.
Upload denied_threadtitle.php (from attachment) to includes file.



Demo:
Look to the screenshot.

Please don't forget to click install

hasan2k 05-21-2005 05:29 PM

WOW that was quick. I asked for this hack in your other hack and I got it so quickly. I am gonna test it out.


Thanks this will be a great addition to my site.

I have a question though. Will this work with "Standard Editor" not the WSIWIG?

I have only standard enabled.

iSpanish 05-21-2005 07:19 PM

Quote:

Originally Posted by hasan2k
WOW that was quick. I asked for this hack in your other hack and I got it so quickly. I am gonna test it out.


Thanks this will be a great addition to my site.

I have a question though. Will this work with "Standard Editor" not the WSIWIG?

I have only standard enabled.

hello

it should work with all editor.

Marboosh

swantonio 05-22-2005 08:03 AM

Thanks grazie ottimo :nervous:

Aurous 05-22-2005 05:24 PM

PHP Code:

        if (ereg($denied2$post['title']))
            eval(
'$errors[] = "Sorry, But you cannot use [^] in your Thread Title.";');; 

Please fix the extra ";" at the end.

iSpanish 05-22-2005 05:46 PM

Quote:

Originally Posted by Aurous
PHP Code:

        if (ereg($denied2$post['title']))
            eval(
'$errors[] = "Sorry, But you cannot use [^] in your Thread Title.";');; 

Please fix the extra ";" at the end.

thanks bro

i fixed new

Lionel 05-23-2005 12:31 PM

développe

this causes this message

Sorry, but you cannot use [^] in your Thread Title.

I aleady removed the extra ';'

iSpanish 05-23-2005 12:41 PM

Quote:

Originally Posted by Lionel
d?veloppe

this causes this message

Sorry, but you cannot use [^] in your Thread Title.

I aleady removed the extra ';'

good work :):)

Please don't forget to click install

Lionel 05-23-2005 01:46 PM

Quote:

Originally Posted by Marboosh.Net
good work :):)

Please don't forget to click install

I don't understand your answer. This is a problem that I have with normal accent.

iSpanish 05-23-2005 05:48 PM

Quote:

Originally Posted by Lionel
I don't understand your answer. This is a problem that I have with normal accent.

hi

in the version of my hack have problem, the problem is extra ';'

so i fix it yesterday and relaese the new version.


thats mean if you remove the extra ';' that mean theat problem is fixed.

i thought you mean by your post you solve the problem.


All times are GMT. The time now is 08:41 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.01149 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_php_printable
  • (5)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