The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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}" /> <vb:if condition="$show['member']">{vb:rawphrase originally_posted_by_x, {vb:raw username}} <vb:else /> <span style="font-weight:bold; font-size:10pt">{vb:rawphrase quote}</span> </vb:if> 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. |
#2
|
||||
|
||||
Perhaps you can write a plugin that turns postcaching off for guests?
|
#3
|
|||
|
|||
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' { $vbulletin->options['enablepostcache'] = 0; } |
#4
|
|||
|
|||
Its really important for me. So it would be nice, if someone can help me.
|
#5
|
||||
|
||||
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. |
#6
|
|||
|
|||
No, i dont try this, because the terminus "enablepostcache" comes from my fantasie. It would be mad random, if that's true.
|
#7
|
|||
|
|||
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') { $post_cachable = 0; } 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). |
#8
|
|||
|
|||
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. |
#9
|
|||
|
|||
Quote:
Code:
Fatal error: Cannot access empty property in /var/www/vhosts/xxxxx/httpdocs/showthread.php(811) : eval()'d code on line 1 |
#10
|
|||
|
|||
Yeah, sorry, it should have been this:
Code:
if($vbulletin->userinfo[usergroupid] == '1') { $post_cachable = 0; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|