vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   postbit_display_complete variable [Help] (https://vborg.vbsupport.ru/showthread.php?t=307808)

cakirts 02-01-2014 04:11 PM

postbit_display_complete variable [Help]
 
Hi all,

postbit_display_complete under the name I created a plugin. (vb 3.8.7)

PHP Code:

preg_match("/src=\"([^\"]+)/i"$post[message] ,$resimler);
$tek $resimler[1];
foreach (
$resimler[0] as $tek)
{
$tek str_replace("src=\"",""$tek);


$tek variable only works in "postbit_legacy" template. I of this variable "headinclude" I want to work in the template. But somehow I could not. How these variables "headinclude" in the template can run?

My English is not good. I used Google Translate.

kh99 02-01-2014 06:36 PM

postbit_display_complete is called for each post (and you create the $tek variable based on the message from one post), but there is only one headinclude per page, so I don't understand how you could use $tek there.

If you want to use something in headinclude, you could create it using hook location parse_templates, but there will not be any $post available there.

vBNinja 02-01-2014 06:56 PM

What are you trying to do?

cakirts 02-01-2014 07:28 PM

The first picture of the subject as follows "headinclude" I want to add. "$tek" variable from the link you want to add the following code:
HTML Code:

<meta property="og:image" content="$tek">
$tek "postbit_legacy" template in the works. But, This code "headinclude" does not work when you add.

kh99 02-01-2014 08:51 PM

Maybe you can put the meta tag in the SHOWTHREAD template instead of headinclude. You can put it inside the <head> tags.

cakirts 02-01-2014 09:22 PM

Quote:

Originally Posted by kh99 (Post 2478464)
Maybe you can put the meta tag in the SHOWTHREAD template instead of headinclude. You can put it inside the <head> tags.

I thought I try it before. Thanks to you, I can do what I want. Really, thank you very much. :up: :up: :up:


All times are GMT. The time now is 08:23 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.01816 seconds
  • Memory Usage 1,732KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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