vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   WOL for easy form (https://vborg.vbsupport.ru/showthread.php?t=299656)

iraqiboy90 06-29-2013 11:13 PM

WOL for easy form
 
Hello guys

I'd like some help with the following;

Since the past few weeks, I have been trying myself to fix the issue. I have searched and asked at the Easy form thread, but i did not get any reply.

I have a plugin installed for creating simple forms.
Visiting the form or the form list will cause the visitor to be in a "unknown location" according to Who's Online.

The mod itself has it own plugin/hook already installed to "fix" the "unknown location" problem, but by default those 2 hooks are not enabled.
Even if I enable them, they dont work.

online_location_process
PHP Code:

if ($filename == 'forms.php' && $actions['do'] == 'forms')
{
    
$userinfo['activity'] = 'forms';
}
if (
$filename == 'forms.php' && in_array($actions['do'], array('form''postform''updateformresult')))
{
    
$userinfo['activity'] = 'form';


online_location_unknown
PHP Code:

if($userinfo['activity'] == 'forms')
{
    
$userinfo['where'] = '<a href="forms.php?'.$vbulletin->session->vars[sessionurl].'do=forms"> '.$vbphrase[viewing_forms_list].'</a>'
    
$userinfo['action'] = $vbphrase['forms'];
    
$handled true;
}
$fid $userinfo[fid];
if(
$userinfo['activity'] == 'form')
{
    
$userinfo['where'] = '<a href="forms.php?'.$vbulletin->session->vars[sessionurl]."do=form&fid=$fid\"> ".$vbphrase[viewing_form_generic].'</a>'
    
$userinfo['action'] = $vbphrase['forms'];
    
$handled true;


How can I fix this?

iraqiboy90 07-01-2013 06:32 AM

Removing the following part will fix the "unknown location" only for "/forms.php"
PHP Code:

 && $actions['do'] == 'forms' 

all other extensions of that link will still be read as if the user is looking at the list, instead of individual forms.

Anyone who could help me with this? Would be appreciated.

iraqiboy90 07-12-2013 09:23 AM

still, nobody who could help?


All times are GMT. The time now is 06:24 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.01171 seconds
  • Memory Usage 1,723KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete