The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change threadbit if user is deleted
Hey,
i am trying to change the content of the author div in threadbit, base on whether the user is deleted or not. This is the default threadbit author div of the template i use (and also the default vbulletin4 i belive) Code:
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}} Quote:
Quote:
Code:
{vb:rawphrase started_by_x_y_z_a, {vb:raw post.username}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}} Quote:
Code:
Started by {vb:raw thread.postusername}, {vb:raw thread.startdate} {vb:raw thread.starttime} My questions are: - How can i test in the template whether the user still exists or not with some <vb:if> (or something else) IF user exists Started by Username with markup and all ELSE Started by Deletedusername just plain text - and how can i then use phrase replacements without vbulletin marking the deleted usernames as links? Any suggestions? Regards |
#2
|
||||
|
||||
Why not just try this mod, https://vborg.vbsupport.ru/showthread.php?t=245183
|
#3
|
|||
|
|||
I found this too while searching for a solution, but i don't want to have to do it for manually every thread of a user i delete/that gets deleted in a cleanup process.
(Also i am pretty sure that the query would still return empty since the username doesn't exist anymore, but can be accessed via {vb:raw post.username}) So changing the template query seems the better solution to me. (And i don't have to install another mod that may or may not interfer with other mods/custom modifications) |
#4
|
||||
|
||||
Search up "One touch ban and clean" here.
|
#6
|
|||
|
|||
Thanks, but that still does not display the deleted username in the threadbit of forumdisplay.
(Which is probably not the main goal for the modification to begin with) Okay, i will try that. |
#7
|
||||
|
||||
Quote:
Maybe I don't understand the problem or the circumstances. My post was about how to avoid this issue in the future. |
#8
|
|||
|
|||
I solved a part of my problem. Somebody had installed the e360 markup mod. As i deactivated the mod all thread creator names were shown.
e360 uses PHP Code:
PHP Code:
PHP Code:
That solves the first part of my problem. Now vbulletin just has to stop to link to non-existing profiles and everything is flowers. Thanks for the help so far. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|