vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   how to insert a row with the script below in the forum member photos (https://vborg.vbsupport.ru/showthread.php?t=307653)

ohadpartuck 01-29-2014 09:35 AM

how to insert a row with the script below in the forum member photos
 
1 Attachment(s)
Heloo people. I need help please. How i cen to insert a row with the script below in the forum member photos for all groupe users?:(:(

Seven Skins 01-29-2014 10:26 AM

you can insert code using hook "postbit_userinfo_right_after_posts"

Make a new plugin with "postbit_display_complete" hook location. And add the code something like below.

PHP Code:

$mylink 'blah blah';
$template_hook['postbit_userinfo_right_after_posts'] .= $mylink


ohadpartuck 01-29-2014 12:50 PM

Quote:

Originally Posted by ohadpartuck (Post 2477678)
Heloo people. I need help please. How i cen to insert a row with the script below in the forum member photos for all groupe users?:(:(

But i need doing only for one group users spetial

kh99 01-29-2014 12:53 PM

You could try this:
PHP Code:

if (is_member_of($postX))
{
   
$mylink 'blah blah'
   
$template_hook['postbit_userinfo_right_after_posts'] .= $mylink;  



where you replace X with the user group id.

ohadpartuck 01-30-2014 06:18 AM

Thx its works :). Now another problem in variable i need insert cod with Javascript. $mylink="<script></script>"? Javascript work like This?

ohadpartuck 01-30-2014 08:10 AM

1 Attachment(s)
Quote:

Originally Posted by ohadpartuck (Post 2477678)
Heloo people. I need help please. How i cen to insert a row with the script below in the forum member photos for all groupe users?:(:(

One more qestion how i now what user id from this post?

kh99 01-30-2014 09:34 AM

Quote:

Originally Posted by ohadpartuck (Post 2477904)
Thx its works :). Now another problem in variable i need insert cod with Javascript. $mylink="<script></script>"? Javascript work like This?

You should be able to do that, but it will be inserted for every post that meets the condition, so it might appear many times on one page. If you only want it once on a page you should insert the javascript in a template hook like $template_hook['headinclude_javascript'], and then you would need a separate plugin using hook location parse_templates.

kh99 01-30-2014 09:35 AM

Quote:

Originally Posted by ohadpartuck (Post 2477911)
One more qestion how i now what user id from this post?

I'm not sure what you're asking. If you want the userid of the user who wrote the post, it would be $post['userid'].


All times are GMT. The time now is 12:35 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.01209 seconds
  • Memory Usage 1,727KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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