Log in

View Full Version : problem in the postbit


abus3d
07-28-2009, 06:05 PM
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

$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



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 :


[<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