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

Reply
 
Thread Tools
Denied Symbol In a new thread Details »»
Denied Symbol In a new thread
Version: 1.0.1, by iSpanish iSpanish is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-20-2005 Last Update: 05-22-2005 Installs: 4
 
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 05-21-2005, 05:29 PM
hasan2k hasan2k is offline
 
Join Date: Jan 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 05-21-2005, 07:19 PM
iSpanish's Avatar
iSpanish iSpanish is offline
 
Join Date: Jan 2005
Location: Oregon
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 05-22-2005, 08:03 AM
swantonio's Avatar
swantonio swantonio is offline
 
Join Date: Aug 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks grazie ottimo :nervous:
Reply With Quote
  #5  
Old 05-22-2005, 05:24 PM
Aurous Aurous is offline
 
Join Date: Apr 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-22-2005, 05:46 PM
iSpanish's Avatar
iSpanish iSpanish is offline
 
Join Date: Jan 2005
Location: Oregon
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 05-23-2005, 12:31 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

développe

this causes this message

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

I aleady removed the extra ';'
Reply With Quote
  #8  
Old 05-23-2005, 12:41 PM
iSpanish's Avatar
iSpanish iSpanish is offline
 
Join Date: Jan 2005
Location: Oregon
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 05-23-2005, 01:46 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 05-23-2005, 05:48 PM
iSpanish's Avatar
iSpanish iSpanish is offline
 
Join Date: Jan 2005
Location: Oregon
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 10:20 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.04703 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_php
  • (5)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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