Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-26-2013, 04:43 PM
ymcus ymcus is offline
 
Join Date: Aug 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

telll me the function
Reply With Quote
  #12  
Old 12-27-2013, 09:34 PM
ymcus ymcus is offline
 
Join Date: Aug 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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"!
dear sir,
i want to use my category description as my page description tell me the function by which i can do this
Reply With Quote
  #13  
Old 12-29-2013, 09:46 AM
ymcus ymcus is offline
 
Join Date: Aug 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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)));


which variables should be placed in this code to show title and category name in description

please its urgent
Reply With Quote
  #14  
Old 12-30-2013, 12:29 PM
ymcus ymcus is offline
 
Join Date: Aug 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

plz any one help me which variables should be placed in this code
description of this page is any one help me to limit the content size vB4 General Discussions
title + category name i dont know there variables in showthread.php and how can i place them in the code above
i have place $thread['titile'] in
this code
HTML Code:
$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['meta_description'], 500, false)));
now tell me plz how to add category name in description

i have run this code but it is not showing title+forum name in description
HTML Code:
$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['title'], $thread['forumid'], false)));
--------------- Added [DATE]1388431126[/DATE] at [TIME]1388431126[/TIME] ---------------

any one guide me plz
Reply With Quote
  #15  
Old 12-30-2013, 06:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not going to work:
HTML Code:
$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['title'], $thread['forumid'], false)));
You would need something like:
HTML Code:
$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['title'].$thread['forumid'], 500, false)));
Please see the api for that function here - https://members.vbulletin.com/api/vB..._trimmed_title The second parameter must be a number.
Reply With Quote
  #16  
Old 12-30-2013, 06:30 PM
ymcus ymcus is offline
 
Join Date: Aug 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
This is not going to work:
HTML Code:
$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['title'], $thread['forumid'], false)));
You would need something like:
HTML Code:
$thread['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($thread['title'].$thread['forumid'], 500, false)));
Please see the api for that function here - https://members.vbulletin.com/api/vB..._trimmed_title The second parameter must be a number.
sir $thread['forumid'] gives the output of forum id number but i want to display forum name
this code gives me the output of title and forum number but forum name
i had search a lot but i cant find the variable of forum category name
e.g:- any one help me to limit the content size vB4 General Discussions
title and forum category name
Reply With Quote
  #17  
Old 12-30-2013, 06:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps $foruminfo['title'] or $foruminfo['title_clean']
Reply With Quote
  #18  
Old 12-30-2013, 06:58 PM
ymcus ymcus is offline
 
Join Date: Aug 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Perhaps $foruminfo['title'] or $foruminfo['title_clean']
thanku so much dear it is runing properly

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

i have tried
HTML Code:
$vbulletin->GPC['pagenumber']
to display page number in description but it is not showing the proper formate in the description. it is showing just number of page but i want to display this result " page 2".suggest please the proper variable
Reply With Quote
  #19  
Old 01-02-2014, 04:51 PM
ymcus ymcus is offline
 
Join Date: Aug 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

???????????????????
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:19 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.06207 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete