How do I remove the link to the last poster on forumhome and forum display? Preferably for guests -
link to the last poster on forumhome and forum display
Collapse
X
-
link to the last poster on forumhome and forum display
Building my Automotive Forum Network...
Lincoln vs Cadillac - Mopar Forum - E Body Mopar Forum - B Body Mopar Forum - Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar ForumTags: None -
This is not a default option in VB.
You would need to edit the appropriate templates, and if you want to remove it only for guests, use template conditionals to show code only to members.
Changes to the product like this though are not supported here, please try vBulletin.org for customization like this. -
No need to go to vB.org - someone here can tell me the particular template / line of code to alter. You could have told me in the amount of time it took you to brush me off.Building my Automotive Forum Network...
Lincoln vs Cadillac - Mopar Forum - E Body Mopar Forum - B Body Mopar Forum - Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar ForumComment
-
If I knew the template off-hand I would have told you but I don't.
Someone else here may be able to help you, we'll see. I gave you what would likely be the quickest way to get your answer.
My job here is to support the core features of vBulletin, it is sometimes a blurry line when a customer asks for something- whether it is considered using a feature of the software or customization- so I try to err on the side of being more helpful but when the line is crossed I refer them to vBulletin.org for further help on the issue.
Your question was clearly a modification of the software requiring both a template edit and use of template conditionals. That is EXACTLY the type of thing people talk about on vbulletin.org all the time. You might find an answer to your question simply by typing this into google:
remove last post link site:vbulletin.org
Comment
-
Yeah - there are no answers over there that work for 3.8...
I know how to use a conditional - I jsut cant find the controlling code.Building my Automotive Forum Network...
Lincoln vs Cadillac - Mopar Forum - E Body Mopar Forum - B Body Mopar Forum - Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar ForumComment
-
In general to find a template, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around that part of the code.
Doing this on forumhome you will see the template in question is: forumhome_lastpostby
In there I found the code:
Code:<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
Doing the same thing on forumdisplay I see the template name is: threadbit
In that template I see similar code:
Code:<phrase 1="member.php?$session[sessionurl]find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
I warn you again though that this type of customization is not officially supported and if you do have questions please make them on vBulletin.org- that is the official modification site, questions like this are the reason it exists.Comment
-
Touble is - I dont really want to eliminate the name - just the linkBuilding my Automotive Forum Network...
Lincoln vs Cadillac - Mopar Forum - E Body Mopar Forum - B Body Mopar Forum - Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar ForumComment
-
I gotcha...
OK well then look in your phrase manager, look at the GLOBAL phrase: by_x
That is where the actual "Link" is- it's
Code:by <a href="{1}">{2}</a>
Code:by {2}
To remove it for just guests you will need to go a step further-
Make a NEW phrase instead, call it: by_x_guest
Make it the code above (without the link)
Then back in those templates, instead of an <if> </if> condition use <if condition="$show[member]"> -original code - <else /> - modified code </if> statement...
-original code- = the current phrase code
-modified code- =
Code:<phrase 1="member.php?$session[sessionurl]find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[[COLOR="#FF0000"]by_x_guest[/COLOR]]</phrase>
Comment
-
Thank you...Building my Automotive Forum Network...
Lincoln vs Cadillac - Mopar Forum - E Body Mopar Forum - B Body Mopar Forum - Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar ForumComment
-
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment