Thread: Major Additions - Yet Another Awards System
View Single Post
  #1480  
Old 04-06-2013, 05:18 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MaxLiao View Post
Again, thank you for the response ...

Further testing reveals the following:
  • If I use "Submission: Award Submissions Forum ID," but I turn off "Submission: Create a poll in the new created thread" I do not get an error. On the other hand, I don't get a post either.
  • If I use "Submission: Award Submissions Forum ID," and I turn on "Submission: Create a poll in the new created thread" This is when I get the Fatal Error.
This is telling, if when you aren't trying to create the poll you still aren't getting a new thread then there's a problem with the forum id. Either the forum id bad, or the user creating the new thread does not have permissions to do so or who knows perhaps something else entirely, otherwise you should get a new thread in the specified forum.

You can try to make the following changes to see if it helps track down the problem:

Change line 122 as follows:
Code:
$foruminfo = verify_id('forum', $vbulletin->options[award_request_formforumid], 0, 1);
to

Code:
$foruminfo = verify_id('forum', $vbulletin->options[award_request_formforumid], 1, 1);
and add the following between lines 138 and 139 (the red is the new code)
Code:
build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);
if (!empty($errors))
{
	$error = construct_errors($errors); // this will take the preview's place
	eval(standard_error($error));
}
$award_send += 1;
Quote:
I know HTML and CSS, but I don't know PHP, so when I look at the variations between the Rank and the Awards code and I see the following:

Awards code ... not working ... (partial) ...
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>

<title>{vb:raw vboptions.bbtitle} - {vb:rawphrase awards}</title>
{vb:raw headinclude}

{vb:raw headinclude_bottom}
</head>
<body>

{vb:raw header}
{vb:raw navbar}


Ranks code ... works fine ... (partial) ...
Code:
$stylevar[htmldoctype]
<html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[rank_recommendformtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
Should I be concerned?

Mostly I'm noting the {vb:xxxxxxx} versus $xxxxxx differences.
No concern necessary, the changes are a result of my updating the templates to use the vb4 style for templates as opposed to the old vb3 style.


Quote:
Switching my language to UTF-8 wouldn't cause any problems, would it?
Are you talking about the encoding of the file or something else?

Quote:
Lastly, I have no problems agreeing with you that there is most likely something else going on, but if you can tell me what to look for - since it is your mod that is having trouble sending the information - I research this further.
I'm not able to reproduce it, so its hard for me to determine the root cause.

Quote:
The people for whom I'm building this site are very adamant that this mod works, so I really appreciate your time in answering my posts and helping me resolve this issue.
I try to help where I can.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,784KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete