View Full Version : how to insert a row with the script below in the forum member photos
ohadpartuck
01-29-2014, 09:35 AM
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.
$mylink = 'blah blah';
$template_hook['postbit_userinfo_right_after_posts'] .= $mylink;
ohadpartuck
01-29-2014, 12:50 PM
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
You could try this:
if (is_member_of($post, X))
{
$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
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?
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.
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'].
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.