Status
Not open for further replies.

weave

New member
Parse error: syntax error, unexpected $end in /home2/public_html/forum/dbtech/thanks/actions/admin/search.php on line 55

Line 55 is a blank line...

I am testing this on my local host before I move to my production board.
 
This means the file did not upload correctly. Please copy the file across once more, and be sure to let the process finish before attempting to access the page.
 
This means the file did not upload correctly. Please copy the file across once more, and be sure to let the process finish before attempting to access the page.

I downloaded the file from your server again and compare the two.. They are identical to each other.

Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2013 Fillip H. 	  # ||
|| # All Rights Reserved. 											  # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------------------------------------------------------- # ||
|| # You are not allowed to use this on your server unless the files  # ||
|| # you downloaded were done so with permission.					  # ||
|| # ---------------------------------------------------------------- # ||
|| #################################################################### ||
\*======================================================================*/

// #############################################################################
if ($_REQUEST['action'] == 'search' OR empty($_REQUEST['action']))
{
	print_cp_header($vbphrase['dbtech_thanks_log_title']);
	
	// ###################### Start modify #######################
	$users = $db->query_read("
		SELECT DISTINCT entry.userid, user.username
		FROM " . TABLE_PREFIX . "dbtech_thanks_entry AS entry
		LEFT JOIN " . TABLE_PREFIX . "user AS user USING(userid)
		ORDER BY username
	");
	$userlist = array('no_value' => $vbphrase['all_log_entries']);
	while ($user = $db->fetch_array($users))
	{
		if (!$user['username'])
		{
			// No username found
			continue;
		}
		$userlist[$user['userid']] = $user['username'];
	}
	
	$entrylist = array('no_value' => $vbphrase['dbtech_thanks_all_entry_types']);
	foreach (THANKS::$cache['button'] as $button)
	{
		$entrylist[$button['varname']] = $button['title'];
	}
	
	print_form_header('thanks', 'search');
	construct_hidden_code('action', 'searchresults');
	print_table_header($vbphrase['dbtech_thanks_log_title']);
	print_input_row($vbphrase['log_entries_to_show_per_page'], 'perpage', 15);
	print_select_row($vbphrase['show_only_entries_generated_by'], 'userid', $userlist);
	print_select_row($vbphrase['dbtech_thanks_entrytype'], 'varname', $entrylist);
	print_time_row($vbphrase['start_date'], 'startdate', 0, 0);
	print_time_row($vbphrase['end_date'], 'enddate', 0, 0);
	print_select_row($vbphrase['order_by'], 'orderby', array('date' => $vbphrase['date'], 'user' => $vbphrase['username'], 'varname' => $vbphrase['varname']), 'date');
	print_submit_row($vbphrase['view'], 0);

Please advise on what I need to correct. I want to buy this but not until I can run it with no errors.

Line 54 and 55 are both BLANK lines
 
I downloaded the file from your server again and compare the two.. They are identical to each other.

Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2013 Fillip H. 	  # ||
|| # All Rights Reserved. 											  # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------------------------------------------------------- # ||
|| # You are not allowed to use this on your server unless the files  # ||
|| # you downloaded were done so with permission.					  # ||
|| # ---------------------------------------------------------------- # ||
|| #################################################################### ||
\*======================================================================*/

// #############################################################################
if ($_REQUEST['action'] == 'search' OR empty($_REQUEST['action']))
{
	print_cp_header($vbphrase['dbtech_thanks_log_title']);
	
	// ###################### Start modify #######################
	$users = $db->query_read("
		SELECT DISTINCT entry.userid, user.username
		FROM " . TABLE_PREFIX . "dbtech_thanks_entry AS entry
		LEFT JOIN " . TABLE_PREFIX . "user AS user USING(userid)
		ORDER BY username
	");
	$userlist = array('no_value' => $vbphrase['all_log_entries']);
	while ($user = $db->fetch_array($users))
	{
		if (!$user['username'])
		{
			// No username found
			continue;
		}
		$userlist[$user['userid']] = $user['username'];
	}
	
	$entrylist = array('no_value' => $vbphrase['dbtech_thanks_all_entry_types']);
	foreach (THANKS::$cache['button'] as $button)
	{
		$entrylist[$button['varname']] = $button['title'];
	}
	
	print_form_header('thanks', 'search');
	construct_hidden_code('action', 'searchresults');
	print_table_header($vbphrase['dbtech_thanks_log_title']);
	print_input_row($vbphrase['log_entries_to_show_per_page'], 'perpage', 15);
	print_select_row($vbphrase['show_only_entries_generated_by'], 'userid', $userlist);
	print_select_row($vbphrase['dbtech_thanks_entrytype'], 'varname', $entrylist);
	print_time_row($vbphrase['start_date'], 'startdate', 0, 0);
	print_time_row($vbphrase['end_date'], 'enddate', 0, 0);
	print_select_row($vbphrase['order_by'], 'orderby', array('date' => $vbphrase['date'], 'user' => $vbphrase['username'], 'varname' => $vbphrase['varname']), 'date');
	print_submit_row($vbphrase['view'], 0);

Please advise on what I need to correct. I want to buy this but not until I can run it with no errors.

Line 54 and 55 are both BLANK lines

I fixed this myself.....

I added the } to the end of line 55 and now it all works!
 
My apologies, I found the issue. It was an issue with the code that strips Pro-only features. If you re-download the latest version and re-upload that file, it should be fixed now and you should have more features available :)
 
My apologies, I found the issue. It was an issue with the code that strips Pro-only features. If you re-download the latest version and re-upload that file, it should be fixed now and you should have more features available :)

Thanks, that made some differences ;)

Appreciate it!
 
Status
Not open for further replies.

Legacy Advanced Post Thanks / Like

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,029
Customer rating
5.00 star(s) 1 ratings
Back
Top