vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Postbit_legacy display problem (https://vborg.vbsupport.ru/showthread.php?t=180600)

alternity 05-26-2008 07:37 PM

Postbit_legacy display problem
 
This isn't a design question, but I recently upgraded to 3.7.0 and my postbit_legacy template has disappeared. When I try to modify the template it reloads and shows up blank.

Even if i open the column in phpmysql and replace it then reload it is unsuccessful with the change. Is there something I need to modify in this postbit to get it to run in 3.7?

postbit_legacy posted on pastebin as it's too long->
http://paste2.org/p/31938

Lynne 05-26-2008 07:49 PM

It is very, very long. Have you tried saving just half of it and seeing if that works? Maybe the thing to do is replace some of that stuff with a custom template hook (or use one already available) and put a bunch of the stuff in it's own template and call it from a plugin.

alternity 05-26-2008 07:59 PM

I think you're right. Could you just briefly tell me how to do that, or point me to somewhere that can show me?

Lynne 05-26-2008 09:40 PM

Look in the template for something that looks like "$template_hook[somename]". If it is located where you want to add some text, great. If not, you can input something into the template in that format "$template_hook[yourname]". Then, create a template, your_template, and put in the contents you want to enter there. Then, create a plugin that uses a hook on that page and in that plugin just put
PHP Code:

eval('$template_hook[yourname] .= "' fetch_template('your_template') . '";'); 

(Replace "yourname" with "somename" if you are using an existing template hook.) This will insert the contents of your template, your_template, at the place you put the template_hook, yourname.


(I could have sworn I saw a good article on this, but right now all I'm finding is this: Template Hook )


All times are GMT. The time now is 11:41 AM.

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.01423 seconds
  • Memory Usage 1,718KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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