vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Facebook like button in first post (https://vborg.vbsupport.ru/showthread.php?t=295625)

ROTPAR 03-08-2013 06:05 AM

Thank you Lynne, the problem is, that I am not that good in programming, I can copy and paste some stuff but that's it. Is there anybody who could explain how to register this variable?

Lynne 03-08-2013 05:49 PM

He tells you the line right at the end of the article.

Code:

vB_Template::preRegister('postbit',array('fblikebutton ' => $fblikebutton));

ROTPAR 03-08-2013 06:11 PM

Thank you for your help Lynne and please don't mind but I just don'T understand where I have to put this code, I am not a coder :( Sorry for bothering.

Lynne 03-09-2013 07:00 PM

You would need to put it in a plugin - one that is right after the variable is defined - perhaps the showthread_complete hook location would work.

ROTPAR 03-11-2013 02:13 PM

Hmmm, can anybody tell me step by step what I have to put where please?

Simon Lloyd 03-11-2013 03:01 PM

Why not just use the ad location template for first post?

Lynne 03-11-2013 05:55 PM

The manual talks about plugins here - http://www.vbulletin.com/docs/html/p...rsion=40200603 And more specifically, adding a plugin here - http://www.vbulletin.com/docs/html/a...rsion=40200603

ROTPAR 03-11-2013 09:41 PM

OK I hope I can do that, Thank you Lynne.

@Simon
it doesn't work with the vbulletin variable in the ad location and I don'T want to use an own iframe solution what works independent from the boards options.

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

I give it up. Can anybody tell me please what I have to put in the plugin to get this done? I guess there are just some lines of code. I am not a programmer and I really need this :(


All times are GMT. The time now is 11:20 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.01024 seconds
  • Memory Usage 1,728KB
  • 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_code_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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete