vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   plugin not working? (https://vborg.vbsupport.ru/showthread.php?t=174611)

lukemax 03-30-2008 07:29 PM

plugin not working?
 
1 Attachment(s)
Im trying to create a hook out of this page
http://lvasp.com/providers_hook.php
So I add the PHP include like the manual says,
I'm trying to import it into
http://lvasp.com/forum/providers.php
But when I enable the hook (screenshot) the board breaks and I have to disable it.
(attatched is also the source code of the hook.

Any ideas...
Thanks...

Dismounted 03-31-2008 05:15 AM

As you are coding your own custom page, you can put the PHP code directly into the providers.php file. There is no need to use hooks.

lukemax 03-31-2008 02:12 PM

1 Attachment(s)
How do I do that. I used this (https://vborg.vbsupport.ru/showthrea...n+powered+page) tutorial so heres the code for my php page.

Opserty 03-31-2008 02:30 PM

What do you mean "How do you do it?", you need to put the PHP in the PHP file (under the START MAIN SCRIPT section).

I'm not sure how else to explain it.

lukemax 03-31-2008 06:46 PM

1 Attachment(s)
Man (I think I'm missing something here)
I took the code from providers_page.php and copied it into line 37 and I got "Sorry, page unavailable" (is that right?
Thanks...

Opserty 03-31-2008 08:01 PM

Quote:

Sorry, page unavailable
Doesn't sound like a vBulletin/PHP related error.

lukemax 03-31-2008 08:36 PM

But, placing the code there (inside providers.php on line 37 should work?) Why does it work without it?
Thanks

Lynne 03-31-2008 08:39 PM

Perhaps you need to figure out why you are getting the "Page Unavailable" message first. Do you have the permissions set correctly on the file - 644?

lukemax 04-01-2008 12:50 AM

1 Attachment(s)
ok, I created this hook, (1st screenshot) and in it created the $providers variable like in your tutorial, but when I include the variable ($providers in the second screenshot) in a template, the board breaks, till I disable the hook. I can even go straight the the hook
http://www.lvasp.com/providers_hook.php
Thanks

What is the correct way to do this?

Boofo 04-01-2008 12:52 AM

Try {$providers}


All times are GMT. The time now is 02:29 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.00994 seconds
  • Memory Usage 1,727KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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