vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Advanced Application Forms (https://vborg.vbsupport.ru/showthread.php?t=263944)

nhawk 06-28-2011 06:58 PM

Quote:

Originally Posted by K!nG (Post 2214203)
I just installed it on 4.1.4 few things.

1: how do i get to see this in community & navbar menu when i already have them enabled in the settings but can't see them ?? any template edits ??

2: When "parse_template" is checked in plugin manager i get this error on my forum.

Parse error: syntax error, unexpected T_STRING in /home/****/public_html/mysit.com/includes/class_bootstrap.php(414) : eval()'d code on line 110

when i uncheck it from plug in manager it doesn't give me any errors ???

any help will be appreciated. Thanks

Check your PMs please.

nhawk 06-28-2011 09:49 PM

For those having trouble, please check this plugin...

Advanced Application Form - parse_templates hook

And make sure that this is what is in the code..

Code:

if ($vbulletin->options['advapp_enable'])
{
        $notlogged = $vbulletin->userinfo['userid'];
        if($notlogged == 0)
        {
                $usergrp = 1;

        }
        if (!is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['advapp_perms'])) && !in_array($usergrp,explode(',', $vbulletin->options['advapp_perms'])))
        {
                $applications = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "advapp_applications ORDER BY type ASC");
                while($application = $vbulletin->db->fetch_array($applications))
                {
                        if ($vbulletin->options['advapp_inmenu'] && $vbulletin->userinfo['posts'] >= intval($application['postcount']) && is_member_of($vbulletin->userinfo, explode(',', $application['usergroup'])) && $application['community'] && $application['active'])
                        {
                                $template_hook['navbar_community_menu_end'] .= '<li><a href="application-forms.php?appid=' . $application['appid'] . '" title="' . $application['description'] . '">' . $application['type'] . '</a></li>';
                        }

                        if($vbulletin->options['advapp_navtabs'] && $application['navtabs'] && $vbulletin->userinfo['posts'] >= intval($application['postcount']) && is_member_of($vbulletin->userinfo, explode(',', $application['usergroup'])) &&  $application['active'])
                        {
                                $pop_options .= '<li><a style="color:' . vB_Template_Runtime::fetchStyleVar('navbar_selected_popup_body_a_Color') .'"  href="application-forms.php?appid=' . $application['appid'] . '" title="' . $application['description'] . '">' . $application['type'] . '</a></li>';
                        }
                }
                $vbulletin->db->free_result($applications);
        }

        if($vbulletin->options['advapp_navtabs'])
        {
                $templater_nav = vB_Template::create( 'advapp_poptab' );
                $templater_nav->register('title', $vbphrase['advapp_title']);
                $templater_nav->register('options', $pop_options);
                $template_hook['navtab_end'] = $templater_nav->render();
        }

$vbphrase['powered_by_vbulletin'] .= '<div>Advanced Application Forms 1.0.9 ? 2011 by Snog</div>';
}

It seems somehow the last part of the plugin might not be being imported properly on some systems.

K!nG 06-28-2011 10:04 PM

Thanks for updating it :) I came up with another one :$ i don't seem to get any email or pm when someone apply for a position. everything is enabled in admin cp as well i do have user id # not user name for the pm. Can u help me on that.
Second thing i tried to change the names of forum1,forum2,forum3 and saved it in admin cp but when go to application it still shows forum1, forum2, forum3 etc how to change that as well please ?
Thanks

nhawk 06-29-2011 09:27 AM

Quote:

Originally Posted by K!nG (Post 2214286)
Thanks for updating it :) I came up with another one :$ i don't seem to get any email or pm when someone apply for a position. everything is enabled in admin cp as well i do have user id # not user name for the pm. Can u help me on that.
Second thing i tried to change the names of forum1,forum2,forum3 and saved it in admin cp but when go to application it still shows forum1, forum2, forum3 etc how to change that as well please ?
Thanks

If the email addresses to send the applications to are valid, and separated by commas, then they should be getting sent out. They are sent using the same routine as all system sent emails. (such as registration emails and subscribed thread emails)

For the PM problem... The User ID # is for who is sending the PM. PM Recipients should be user names separated by semi-colons ( ; ).

When you save the changes in AdminCP, does it show the changes when you go back to the application in AdminCP?

If it does there but not on the application page, then you have a caching problem with your browser and it is not loading the changed page. Try closing all browser windows and then going back to the application page.

EDIT: LOL.. it just hit me like a ton of bricks.. I think I know what the email/PM problem might be. See your PMs.

Once I'm certain of the problem, I'll let everyone know.

K!nG 06-29-2011 02:53 PM

I only have one email address in there and its valid even when someone contact me via forum i do get all the emails.
just changed the pm settings, still nothing happens
Yes it does show the changes in admincp but not when i go back to the application. i did clear all browsers history,cahce,forms everything but still the same. :(

K!nG 06-29-2011 08:30 PM

Hi nhawk .

Thanks for ur help to make it working :) appreciate that. :P

nhawk 06-29-2011 08:37 PM

Quote:

Originally Posted by K!nG (Post 2214724)
Hi nhawk .

Thanks for ur help to make it working :) appreciate that. :P

No problem :D

I should let everyone know that the PM problem was the Sender ID was set to 0. It needs to be a valid userid number. ;)

And that his email is going out, but his full problem is private and I won't discuss that in public.

Alan_SP 06-30-2011 12:21 PM

Quote:

Originally Posted by nhawk (Post 2214726)
I should let everyone know that the PM problem was the Sender ID was set to 0. It needs to be a valid userid number. ;)

Is it possible to make applicant's user name as PM sender's name? Or we need to use some fixed name?

nhawk 06-30-2011 02:22 PM

Quote:

Originally Posted by Alan_SP (Post 2215011)
Is it possible to make applicant's user name as PM sender's name? Or we need to use some fixed name?

Well..

Technically the name can be anything we want it to be.

BUT

Changing it has a couple of drawbacks...

When you read the PM, it will show the actual username of the userid that sent the PM.

Anyone who replies, would reply to the userid that sent the PM.

And now I know you'll ask 'Can we use the userid of the person who filled out the application?'

Absolutely... That is if I code it as an option. ;)

Alan_SP 07-01-2011 02:05 PM

Yes, I meant that. :) That we receive PM after filled application from applicant. This isn't some fixed user ID as anyone can fill application.


All times are GMT. The time now is 09:15 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.01232 seconds
  • Memory Usage 1,756KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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