vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   postbit_legacy template editing error (https://vborg.vbsupport.ru/showthread.php?t=260744)

ninadbe 03-23-2011 09:19 PM

hook : global_start

at postbit_legacy => {vb:raw prods}


It is working, only facing problem with cookie.
I have changed
Code:

setcookie('threadtitle111',$threadtitle);
to
Code:

vbsetcookie('threadtitle111',$threadtitle);
as setcookie is not working. vbsetcookie works.

It seems like cookies at vbulletin are encrypted.
So cannot fetch cookie at location.

Lynne 03-23-2011 09:23 PM

I would not pick the global_start template. If you look that template up, you will see it is deprecated and you are supposed to use another one instead (I can't remember which one, but you are told when you look that one up).

ninadbe 03-23-2011 10:34 PM

I hooked it at showthread_start. Also tried hooking with global_bootstrap_init_start.

Plugin is working with all hooks I have tried so far (global_start, global_bootstrap_init_start, showthread_start etc). As I explained before mine problem is with cookies.

I have set cookies with the help of foolowing code
Code:

vbsetcookie('threadtitle111',$threadtitle);
As I said before vbulletin is encrypting cookie. Therefore I cannot get cookie value at included location.
Is there anyway to decode cookies?


All times are GMT. The time now is 08:52 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.00960 seconds
  • Memory Usage 1,712KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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