View Full Version : Replace character of thread titles.
HenryRocket
04-21-2014, 06:13 PM
Hello friend vbulletin, I have a request; I need to replace some characters in only thread title created.
For example : "Im have one question" to 'Im have Question'
Character is " to ' , any plugin or hook to recommend me?
Thanks so much and advance.
Seven Skins
04-21-2014, 09:57 PM
You can run queries in phpmyadmin:
UPDATE thread SET title = REPLACE(title,'"','\'');
UPDATE post SET title = REPLACE(title,'"','\'');
PS. Make database backup before doing anything like this to the database.
HenryRocket
04-22-2014, 07:51 AM
Thanks for u help, but this is not what I need. What I need is that when the user creates an issue when using this symbol " can not be used and it is replaced by this '
please see my idea, im only search for vbulletin 3 :(
https://vborg.vbsupport.ru/showpost.php?p=1823439&postcount=1
Seven Skins
04-22-2014, 11:46 AM
You can edit "class_dm_threadpost.php" file.
Find:
$title = preg_replace('/&#(0*32|x0*20);/', ' ', $title);
Add below:
$title = str_replace('"', "'", $title);
This is working on vb 4.2.2
HenryRocket
04-23-2014, 10:42 PM
Thanks so much SeveSkin this working. Thanks so much again!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.