vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   any one help me to limit the content size (https://vborg.vbsupport.ru/showthread.php?t=306141)

ymcus 12-21-2013 09:01 PM

any one help me to limit the content size
 
i want to limit my content size please help me how can i limit the page content length
what is its code
<blockquote class="postcontent restore ">
and
<meta name="description" content=
i want to set description length

--------------- Added [DATE]1387710726[/DATE] at [TIME]1387710726[/TIME] ---------------

any one help me from which file i can edit these settings

Lynne 12-23-2013 01:27 AM

I don't know of a way you can set the description length in default vbulletin - it looks like it takes the first 500 characters of the first post to use as the description. What did you want to change it to? You'll probably have to modify the files.

ymcus 12-23-2013 03:22 AM

many sites are using the title and the category name in description like vbulletindotorg watch in ur page source plz tell me the procedure to change this or modify these settings

--------------- Added [DATE]1387773006[/DATE] at [TIME]1387773006[/TIME] ---------------

or want to edit these settings upto 200 characters

Lynne 12-23-2013 05:14 PM

I think it may be set in showthread.php around like 349. Change 500 to 200.

HTML Code:

$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['meta_description'], 500, false)));

ymcus 12-23-2013 08:46 PM

thanks alot and if i want title and category name in description then what should i have to do

Lynne 12-24-2013 03:17 AM

Modify that line of code to put those things in there.

ymcus 12-24-2013 05:48 AM

Quote:

Originally Posted by Lynne (Post 2470203)
I think it may be set in showthread.php around like 349. Change 500 to 200.

HTML Code:

$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['meta_description'], 500, false)));

i have done it but it is giving me this error
Parse error: syntax error, unexpected T_STRING in /home/islamick/public_html/showthread.php on line 282

--------------- Added [DATE]1387898684[/DATE] at [TIME]1387898684[/TIME] ---------------

tell me what should i do to get rid from this error i have download the the file showthread.php and open it in dreamviewer then edit it after uploading it is giving me this error

--------------- Added [DATE]1387898946[/DATE] at [TIME]1387898946[/TIME] ---------------

what is proper encoding to edit application/x-httpd-php file???

Lynne 12-24-2013 05:11 PM

You should only use a plain text editor to edit any files and make sure the encoding you choose to save it in does NOT say "with BOM"!

ymcus 12-25-2013 02:23 AM

sure thanks the code is runing properly my file is ok now thanku so much dear sir

TommyHara 12-25-2013 02:54 PM

You need to write a php function to limit number of words on page on content.


All times are GMT. The time now is 03:58 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.01067 seconds
  • Memory Usage 1,729KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete