vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   using postbit_display_complete (https://vborg.vbsupport.ru/showthread.php?t=299523)

PWillard 06-26-2013 07:56 PM

using postbit_display_complete
 
Hello,
to take advantage of the postbit_display_complete I normally add a hook in the plugin section and now I make each post have a signature with the URL of my forum.
I am wondering if its possible to edit a vbulletin php file to do the same thing instead of me adding a plugin.. let me know if its doable.. thanks

Zachery 06-26-2013 08:50 PM

Why would you opt for editing the file instead of using the plugin?

You can easily just edit the file where that hook point is...

PWillard 06-26-2013 09:03 PM

I totally understand that its recommended to just use the plugin system instead but I am wondering if its possible through php file and which file would that be..

Zachery 06-26-2013 09:04 PM

Yes, and I just told you how to find it :)

You could also do this with a conditional in a template, chances are.

PWillard 06-26-2013 09:13 PM

im not talking about the plugin php file im talking about the vbulletin php file

kh99 06-26-2013 09:17 PM

The code that executes the postbit_display_complete hook code looks like this:
Code:

($hook = vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false;

and it's actually in two files: includes/class_postbit.php, and includes/class_postbit_alt.php.

Zachery 06-26-2013 09:18 PM

You could have used the hook name to find it in the files :p you're far too nice sometimes kh99.

PWillard 06-26-2013 09:22 PM

maybe sometimes 1 useful post means more than 3 useless posts..

thanks a lot kh99!

kh99 06-26-2013 09:27 PM

Quote:

Originally Posted by Zachery (Post 2430677)
You could have used the hook name to find it in the files :p you're far too nice sometimes kh99.

Maybe so.


All times are GMT. The time now is 10:24 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.00929 seconds
  • Memory Usage 1,722KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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