View Full Version : De-dotify thread title
Powlo
01-14-2009, 10:42 PM
Is it possible to automatically de-dotify a thread title? By this i mean if a member posts a title like... 'this.has.loads.of.dots.in.it.' then vb would remove the dots and replace with a space.
It was possible with phpbb using
$post_subject = str_replace('.', ' ', $post_subject);
but im unsure where and how to code it with vb.
SEOvB
01-14-2009, 10:44 PM
You could probably achieve this using the plugin and hook location for thread complete
Powlo
01-15-2009, 12:01 AM
You would be able to spell that out for this noob would you? :erm:
Dismounted
01-15-2009, 04:48 AM
Look at newthread.php, and especially at the hook: newthread_post_start.
Also see the manual: Plugin System (http://www.vbulletin.com/docs/html/plugin_system).
Powlo
01-15-2009, 09:43 AM
Ok thankyou very much for pointing me in the right direction, still not sure if i can do this though but i'll try. I imagine i'll be back. :)
--------------- Added 1232020843 at 1232020843 ---------------
Done it! And it works. :D
Though i made the code adition here - class_dm_threadpost.php
Cheers for your help.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.