vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   problem in the postbit (https://vborg.vbsupport.ru/showthread.php?t=219663)

abus3d 07-28-2009 06:05 PM

problem in the postbit
 
dear all

i am working in mod for shown the total counts of threads & posts in the postbit

the mod almost ready but i stopped in one issue

we have this code

PHP Code:

$post[posts

i want to removed the code & i want to add anther template which I made

in the plug in manager i add this

PHP Code:


eval('$this->post['posts'] = " ' fetch_template('Threads_posts_location') . '";'); 


but no change

can some one help me


i want to remove $post[posts] by my template ?

Lynne 07-28-2009 07:41 PM

Which hook_location are you using? What is the contents of Thread_posts_location ? Is anything getting fetched at all from the template?

abus3d 07-29-2009 05:14 AM

the hook location is : postbit_display_start

the content of my template :

PHP Code:

[<a id="threads_posts_$post[postid]title="Total threads & posts" href="#posts">+</a>] 

<
script type="text/javascript"
vbmenu_register("threads_posts_$post[postid]"true); 
</
script


Lynne 07-29-2009 03:22 PM

OK, you've created a link to a dropdown but you don't have any dropdown code at all. Have you tried other hook locations like postbit_display_complete? Or have you tried any sort of debugging like simply settings $this->post['posts'] to a value and seeing if it even works? Did you add the template to the globaltemplates array (cache_templates hook)? (Is it showing up in the list of templates at the bottom of the page when you are in debug mode?)

abus3d 07-29-2009 06:57 PM

Thanks Dear :)

solve it

the hook location was wrong

the corretc one : postbit_display_complete


All times are GMT. The time now is 11:47 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.01017 seconds
  • Memory Usage 1,720KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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