The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Thanks, now it works.
--------------- Added [DATE]1324239532[/DATE] at [TIME]1324239532[/TIME] --------------- Shit, i was to early happy. First it worked, but now registered users dont see the usernames in quotes in more and more postings. For guests it seems to be working, they dont see the usernames. At least i dont fount a posting, where guest see the usernames. |
#12
|
|||
|
|||
I?m going crazy... No one an idea, what the thinking error is?
|
#13
|
||||
|
||||
Turn off post caching on the whole site? Or write a plugin that looks for a string that starts with:
<img src="images/misc/quote_icon.png" alt="Quote" /> and ends with: <img class="inlineimg" src="images/buttons/viewpost-right.png" alt="View Post" /></a> And remove it for unregistered users? That is the code from the postparsed table, if the post isn't cached then it is different. Also, that is from my site, your paths may be different - just look in your database to see what they look like. |
#14
|
|||
|
|||
I dont get it to work. I tried to set for a test in the "vbulletin settings"-->"server settings and optimization optins" the option "deactivate chache for content" to "yes". So now should be the postcache off, right? But with my bbcode_quote template change
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> |
#15
|
||||
|
||||
Is $show a registered variable in that template?
|
#16
|
|||
|
|||
Yes, in the original-template is the string "<vb:if condition="$show['username']">".
--------------- Added [DATE]1324857009[/DATE] at [TIME]1324857009[/TIME] --------------- |
#17
|
||||
|
||||
But is $show[member] defined? You may want to try using is_member_of instead and see if that works.
|
#18
|
|||
|
|||
Thanks, that works. But it works only, if i set in the vbulletin settings the "livetime of chaching posts" to 0 days. Seems my plugin:
Code:
if($vbulletin->userinfo[usergroupid] == '1') { $post_cachable = 0; } But anyway, how kh99 wrote, its better that posts with quotes are generally not be cached. So can this plugin with hook bbcode_parse_start work? Code:
$parsedtext = '<img src="images/misc/quote_icon.png" alt="Quote" />' { $post_cachable = 0; } <img src="images/misc/quote_icon.png" alt="Quote" /> and ends with: <img class="inlineimg" src="images/buttons/viewpost-right.png" alt="View Post" /></a> How can i do this? Thanks for your help untill now and sorry for my probably stupid questions. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|