vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How 2 limit post display content to first 100 characters for Unregistered / Not Log (https://vborg.vbsupport.ru/showthread.php?t=149111)

HydraulicJack 06-07-2007 06:19 AM

How 2 limit post display content to first 100 characters for Unregistered / Not Log
 
I want to offer a teaser of Forum content to Guests by limiting display of post content to first N characters (e.g. 100) followed by ellipsis, e.g.:

Quote:

blah blah to N characters...
For the Unregistered Group only.

Is there an existing hack that can handle this?

JamieLee2k 06-07-2007 09:59 AM

There is a hack that can say right, you can only look at so many threads/posts then you must register.

HydraulicJack 06-07-2007 12:42 PM

Quote:

Originally Posted by JamieLee2k (Post 1263102)
There is a hack that can say right, you can only look at so many threads/posts then you must register.

Thanks JamieLee - Any chance you can post a URL or a keyword phrase that may help me locate it? This could also do the job altho not quite like the following:

Meanwhile I've emailed gio~logist since it looks like he may have built a hack for 3.5.x that purports to limit post length for the Unregistered UserGroup.

I'm hoping he can hack it for 3.6.7 PL1

Thanks again!
HydraulicJack

JamieLee2k 06-08-2007 11:21 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=131985&highlight=limited" target="_blank">https://vborg.vbsupport.ru/showt...hlight=limited</a>

HydraulicJack 06-08-2007 04:38 PM

Thanks very much for that lead, JamieLee!
HJ :up:


All times are GMT. The time now is 01:13 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
  • Page Generation 0.00961 seconds
  • Memory Usage 1,714KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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