![]() |
usernames in qoutes for member/guests
Hi all,
i have make the usernames in quotes invisible vor guests. Members can see the names. I edit the template bbcode_quotes per TMS: I replace Code:
<img src="{vb:stylevar imgdir_misc}/quote_icon.png" alt="{vb:rawphrase quote}" /> {vb:rawphrase originally_posted_by_x, {vb:raw username}} Code:
<img src="{vb:stylevar imgdir_misc}/quote_icon.png" alt="{vb:rawphrase quote}" /> I think if a guest look as the first user to a post, then the posting comes with no username in quote in the postcache. And if the a member looks to this posting, it comes from the postcache. And thats why the member not see the username. I hope you can follow me. :) How can i fix it? We have realnames in our foum, so ist necassery to hide the usernames for guest/searchengines. |
Perhaps you can write a plugin that turns postcaching off for guests?
|
Thanks for your answer. But i have no idea how to write a plugin.
--------------- Added [DATE]1323602161[/DATE] at [TIME]1323602161[/TIME] --------------- I search this and the german vb-forum, but i found no good dokumantation for the plugin-creation. I make a try, please help me: Add-On: vBulletin Hook: ? PHP-Code: Code:
if($vbulletin->$bbuserinfo[usergroupid] == '1' |
Its really important for me. So it would be nice, if someone can help me. :)
|
Did you try that plugin? Perhaps at global_bootstrap_start? or global_bootstrap_end?
Also, make sure you develop plugins on your test site, not live site. |
No, i dont try this, because the terminus "enablepostcache" comes from my fantasie. It would be mad random, if that's true. :)
|
I haven't tried it, but you could try a plugin using hook location showthread_post_start and this code:
Code:
if($vbulletin->userinfo[usergroupid] == '1') That might work for showthread.php but I'm not sure if there's anywhere else that might be a problem. I think a better thing to do would be to arrange for specific posts to not be cached, which can be done by setting $parsedtext = '' at hook bbcode_parse_start. The problem is that you'd have to figure out how to tell if a post has the quote tag in it. You could set $parsedtext = '' all the time and effectively turn off all post caching, but I don't know if you want to do that. I know my site has a lot of guest activity so i don't think we'd even want to turn off caching for guests. (BTW, you can't check the usergroup to decide whether or not to set $parsedtext = '' or you'll end up with the same problem you have now). |
Thanks for your detailed answer. If i understand you right, i can use the template edits (see first post) + parse the postings for quote-tags and dont cache that quote-postings. I think that would be the best option for me. I will try that at the weekend.
I wonder that i´m be probably the only one with the wish to make the usernames for guests invisible. Social screening is a major theme and its a big advantage, if your realname will dont show for guests and searchengines. |
Quote:
Code:
Fatal error: Cannot access empty property in /var/www/vhosts/xxxxx/httpdocs/showthread.php(811) : eval()'d code on line 1 |
Yeah, sorry, it should have been this:
Code:
if($vbulletin->userinfo[usergroupid] == '1') |
All times are GMT. The time now is 07:05 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|