Quote:
Originally Posted by MaxLiao
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.