The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Yes, I seem to have left the last line off my last post.
Code:
$vbulletin->GPC['subject'] = implode(' ' , $words); Code:
$smallwords = array( 'of','a','the','and','an','am','or','is','if','at','by','on','in','to' ); $words = explode(' ', $thread['title']); foreach ($words as $key => $word) { if (!$key or !in_array($word, $smallwords)) $words[$key] = ucwords(strtolower($word)); } $thread['title'] = implode(' ' , $words); $thread['captitle'] = $thread['title']; ![]() It would be awesome if I could dump the text-transform:capitalize; CSS in use now in specific places -- for example, on the forum display -- so that the list of threads in a forum also obeyed the above ucwords()+exclusions plugin. While the plugin we just finished could be expanded to globals (right?), it may be better to just add another plugin that only works on the page with threads listed out. I was mostly worried about two locations: 1. The HTML page title -- which is now fixed. (Yay!) - DONE! 2. The title as it appears in the listing of threads. I'll probably leave the CSS in everywhere else (related threads, the breadcrumbs, etc), as it's not as important. Again, your help is most appreciated. While I can read, experiment, etc -- sometimes it's good to get outside advice. I don't write PHP (or vB-specific PHP) daily, so it can be hazy when trying something new. --- In case it's not obvious, these are my questions: 1. What would the syntax be to create a similar plugin that works on the thread list when viewing a subforum? 2. What hook location should it use? -- I'm thinking threadbit_display ? 3. Do you remember offhand which template needs editing? I think it's threadbit, and specifically the $thread[title_editable] variable about 20% into the template. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|