vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   [ASK] vBulletin PHP Code (https://vborg.vbsupport.ru/showthread.php?t=286155)

fxdigi-cash 05-26-2013 02:34 AM

ok, somehow this is what I was expecting since I have been looking for a similar issue for days...

Great, Thanks a lot. will start digging with php coding then

Simon Lloyd 05-26-2013 03:20 AM

It looks like you are trying to get stats for something, dont reinvent the wheel :) https://vborg.vbsupport.ru/showthread.php?t=235841

fxdigi-cash 05-26-2013 03:38 AM

you are right. This is where I started, but here is a quick question though. If I installed this plugin to my vb, and disable it... then would I be able to use its codes on a custom page even though it was originally made to forumhome??

I'm not aware if codes of plugins can be used when disabled...

correct me if I'm wrong...

Simon Lloyd 05-26-2013 03:43 AM

if you disable it then the plugins will be disabled, however there's nothing to stop you using the contents of the plugins in your own plugins. One thing you will need to look at is how the stats are displayed, they are obviously using hooks and variables that are only available on forumhome so they wont automatically work elsewhere unless that varible is available there :)

fxdigi-cash 05-26-2013 04:11 AM

good to know this info. in this case I have to re-generate separated or individual plugins based on this mod mentioned above....

I will start testing that soon...

Thanks for the valuable info

Simon Lloyd 05-26-2013 04:20 AM

You're welcome, good luck!

fxdigi-cash 05-26-2013 05:08 AM

Thanks @ Simon Lloyd's

initial tests show that it works; individual codes, but the only issue is that I want to show the stats on a custom page... I think it is not that hard to go with ...

any idea how to let this mod work on a custom page only no Forumhome...!!

I think that I will try to play a little with the plugin query a little to see how to place the code on some pages not all of them...

any feedback is appreciated

Thanks

Simon Lloyd 05-26-2013 04:53 PM

You need to turn debugging on as i mentioned and check what hooks....etc are called for particular pages, that way you'll have a really good base to start from.


All times are GMT. The time now is 10: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.01086 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)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