The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
You can already do that with the Replacement Variable Manager in vBulletin.
|
#12
|
||||
|
||||
Quote:
So how do you that if say I wanted for the acronym (CAG) always be capitalized if someone posted (cag) but it not affect a word like "cage" or "bird cage" or any other word that might have "cag" in it? ... I ask because I used the replacement variable manager for this and it changed any word that had "cag" to "CAG" ...so the word cage became "CAGe" ... --------------- Added [DATE]1422901449[/DATE] at [TIME]1422901449[/TIME] --------------- Oh one other thing .... it also affects file extensions as well ...most of my images have cag in them so it breaks images as well lol ... |
#13
|
||||
|
||||
Quote:
|
#14
|
||||
|
||||
Yeah I know lol ...I used the following two in plugins but it still didn't work as it should:
Code:
$find = array( 'cag', 'Cag', ); $replace = array( 'CAG', 'CAG', ); $this->post['message'] = str_ireplace($find, $replace, $this->post['message']); and Code:
$word = array( '/\cag\b/', '/\Cag\b/' ); $changedword = 'CAG'; $post['message'] = preg_replace($word, $changedword, $post['message']); |
#15
|
||||
|
||||
|
Благодарность от: | ||
CAG CheechDogg |
#16
|
|||
|
|||
You can, but I'd be careful about using that. As CAG mentioned, it does a replacement on the entire html document, so if you replace something that happens to appear in an html tag for example, you can break things.
|
2 благодарности(ей) от: | ||
CAG CheechDogg, Max Taxable |
#17
|
||||
|
||||
Ok I will check this out and see what it does ...ty ...
--------------- Added [DATE]1422921304[/DATE] at [TIME]1422921304[/TIME] --------------- Good stuff my my Man this is working perfectly so far ... THANK YOU !! |
#18
|
||||
|
||||
Glad I could help.:up:
|
Благодарность от: | ||
CAG CheechDogg |
#19
|
||||
|
||||
Quote:
It tooks me months (actually I had to ask someone) to understand the meaning of "My two cents" or similar sayings. I was reading "OP" and thought that it means Operator while latest someone told me that means "Original Poster". Especially when you reply to someone that you know that English is not his tongue, everyone must tries to use simple words and phrases. Forums (at all, not just here), it's not a place to promote your English level. Addition: My father who died almost 30 years ago was Professor at Univercity. Still remember some words of him. "Educated is not that one who knows a lot, but that one who can talk to a farmer like a farmer, to a child like a child etc ". |
2 благодарности(ей) от: | ||
CAG CheechDogg, socialteenz |
#20
|
||||
|
||||
Not disputing your point at all. Anyway:
Quote:
Quote:
|
4 благодарности(ей) от: | ||
CAG CheechDogg, ozzy47, Simon Lloyd, socialteenz |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|