PDA

View Full Version : Denied Symbol In a new thread


iSpanish
05-20-2005, 10:00 PM
Hi there
This is my Second hack


As requested here (https://vborg.vbsupport.ru/showpost.php?p=656406&postcount=3)

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:

$post['title'] = trim(preg_replace('/�*32;/', ' ', $post['title']));

Below add:

// # 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
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
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
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
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
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
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.

Lionel
05-23-2005, 05:50 PM
I said that I removed extra ; but problem still exists

iSpanish
05-23-2005, 05:53 PM
I said that I removed extra ; but problem still exists
can i see what the error message you got it?

Lionel
05-23-2005, 06:05 PM
accent on "e"

Originally Posted by Lionel
développe

this causes this message

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

I aleady removed the extra ';'

iSpanish
05-23-2005, 06:33 PM
accent on "e"

Originally Posted by Lionel
d?veloppe

this causes this message

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

I aleady removed the extra ';'
hi
Sorry for that

i fix it now

please do the update
replace denied_threadtitle.php with the new one from up thare.

Lionel
05-23-2005, 06:37 PM
thanks. About the register one? is it safe?

iSpanish
05-23-2005, 06:52 PM
thanks. About the register one? is it safe?
:)

sure is safe (Denied Symbol FromRegister Hack)

i do too many tests.


Please don't forget to click install If you Installed it.