vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Trim the postbit for certain users (https://vborg.vbsupport.ru/showthread.php?t=234501)

DEGE 01-29-2010 09:03 PM

Trim the postbit for certain users
 
Hi,

I'm planning to give certain users (ie: uregistered users) a short version of the 2nd and later posts of a thread. I've tried everything in the postbit with the $post[message] variable, but it seems that some HTML code inside it makes me impossible to do so.

Any ideas?

Any HTML free variable that I should use in the postbit?

Quote:

<!---Hide following posts to guests-->
<if condition="$show['guest']">
<if condition="$post[postcount] == 1">
$post[message]
<else />
<img src="/images/Stop_hand.png" alt="$post[prepared]" border="0">
<strong> You have to <a href="/register.php">register </a> to see the whole thread
</strong>
</if>
<else />
$post[message]
</if>
<!---/Hide following posts to guests-->

DEGE 02-01-2010 06:44 PM

any ideas from anybody?

Digital Jedi 02-01-2010 08:40 PM

If I'm not mistaken, there are some modifications on this site that already do just that. You may be able to get some ideas from them.

DEGE 02-02-2010 01:41 AM

I've been searching all the modifications for a long time and didn't find any replacement for the $post[message] variable that is included in the postbit. Is there any modification that uses another variable?


All times are GMT. The time now is 09:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02037 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete