vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   newbie with lots of newbie questions! (https://vborg.vbsupport.ru/showthread.php?t=234252)

Lynne 01-29-2010 11:44 PM

Are you getting errors? Anything in the error_logs?

What was the code you tried when you set $message to be something first (like in my suggestion above)? (If you read that article, when I user wanted to use a phrase in the message, they had to set it beforehand like I am suggesting.)

White_Snake 01-29-2010 11:51 PM

Quote:

Originally Posted by Lynne (Post 1970133)
Are you getting errors? Anything in the error_logs?

What was the code you tried when you set $message to be something first (like in my suggestion above)? (If you read that article, when I user wanted to use a phrase in the message, they had to set it beforehand like I am suggesting.)

okay, i did set the message inside a variable, not in the vbullein phrase manager and, where can i check the error_logs part? thank you :)

Lynne 01-30-2010 02:55 AM

If you don't know where your error_logs are, you will have to ask your host. Usually they are in a /logs directory, but, like I said, just ask your host.

White_Snake 01-31-2010 02:17 PM

Quote:

Originally Posted by Lynne (Post 1970235)
If you don't know where your error_logs are, you will have to ask your host. Usually they are in a /logs directory, but, like I said, just ask your host.

nothing there, but, i have found something interesting, if i execute the code in another hook, such as memberdisplay (hook for displaying the memeber profile) it works perfectly, so i suppose the problem is the hook itself

Lynne 01-31-2010 02:58 PM

Quote:

Originally Posted by White_Snake (Post 1971292)
nothing there, but, i have found something interesting, if i execute the code in another hook, such as memberdisplay (hook for displaying the memeber profile) it works perfectly, so i suppose the problem is the hook itself

Yeah, that could be it. plugins can be picky about where you execute them. :)

White_Snake 01-31-2010 05:22 PM

Quote:

Originally Posted by Lynne (Post 1971328)
Yeah, that could be it. plugins can be picky about where you execute them. :)

okay i moved it to newpost_process and its working pefectly but i wonder if the newpost_complete thing its a bug or something like that

Lynne 01-31-2010 05:36 PM

I don't think so. If you look at the code, you'll see $errors is processed right after newpost_process. newpost_complete is clear down the page after that, so using that hook_location wouldn't work for at least that.

White_Snake 01-31-2010 11:30 PM

Quote:

Originally Posted by Lynne (Post 1971445)
I don't think so. If you look at the code, you'll see $errors is processed right after newpost_process. newpost_complete is clear down the page after that, so using that hook_location wouldn't work for at least that.

okay then, i suppose next time im going to double and triple check the code around the hooks i plan to use, thanks a lot!


All times are GMT. The time now is 03:26 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.01108 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
  • (5)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
  • (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