Status
Not open for further replies.

ThomasJr

New member
Shrink/Expand & community link

I'm working on a new site for me and me friend and I have the Lite version of this but check out my screenshots.

I do not have the Shrink and Expand links on the lower right hand corner.

Instead there is an arrow (also provided screenshot) and if you click it you are taken to an error.

Fatal error: Call to undefined function log_admin_action() in /home/xxxxxxx/public_html/xxxxxxx.com/forums/trating.php on line 32

Everything else seems to work fine. I think at least.

Thanks.
 

Attachments

  • Screen shot 2013-05-13 at 4.48.37 PM.png
    Screen shot 2013-05-13 at 4.48.37 PM.png
    9.4 KB · Views: 20
  • Screen shot 2013-05-13 at 4.45.13 PM.png
    Screen shot 2013-05-13 at 4.45.13 PM.png
    10 KB · Views: 20
  • Screen shot 2013-05-13 at 4.44.50 PM.png
    Screen shot 2013-05-13 at 4.44.50 PM.png
    7.8 KB · Views: 20
Last edited:
Here's the PHP file in question - traiting.php line 32

I uploaded it twice as per the downloaded file. Once in admincp and once in the forums directory.


PHP:
<?php

/**
 * Dragonbyte-Tech.com Thread Ratings Mod
 * 
 * @author Dylan Wheeler
 * @copyright 2011
 * 
 * You may not copy/reproduce any part of this file in whole or significant part.
 * 
 * All rights reserved.
 */

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE & ~8192);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'trating');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
	'dbtech_trating'
);

// get templates used by all actions
$globaltemplates = array(
	'dbtech_trating',
	'dbtech_trating.css'
);

// pre-cache templates used by specific actions
$actiontemplates = array(
	'main' => array(
		'dbtech_trating_main',
	),
	'top' => array(
		'dbtech_trating_home',
		'dbtech_trating_top_stats',
		'dbtech_trating_top_stats_bits',
	),
);

// get special data templates from the datastore
$specialtemplates = array(
);

// ############################### default do value ######################
if (empty($_REQUEST['do']))
{
	$_REQUEST['do'] = $_GET['do'] = 'main';
}

// ######################### REQUIRE BACK-END ############################

/**
 * If you want to run the ratings in another directory besides the forum
 * directory you need to uncomment the $forum_directory variable and enter
 * the absolute path the forums directory.
 */

//$forum_directory = 'C:/doc_root/www/domain/forums/';

if ($forum_directory)
{
chdir($forum_directory);
}

require_once('./global.php');

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################

if (!empty($_POST['do']))
{
	// $_POST requests take priority
	$action = $_POST['do'];
}
else if (!empty($_GET['do']))
{
	// We had a GET request instead
	$action = $_GET['do'];
}
else
{
	// No request
	$action = 'main';
}

// Strip non-valid characters
$action = preg_replace('/[^\w-]/i', '', $action);

if (!class_exists(DBTECH_TRATING))
{
	// Fetch required classes
	require_once(DIR . '/dbtech/thread_ratings/includes/class_core.php');

	// Initialise
	DBTECH_TRATING::init($vbulletin);
}

if ($_REQUEST['do'] == 'devinfo' AND $_REQUEST['devkey'] == 'dbtech')
{
	$_info = array(
		'version' 		=> DBTECH_TRATING::$version,
		'versionnumber' 	=> DBTECH_TRATING::$versionnumber,
		'pro'			=> DBTECH_TRATING::$isPro,
		'vbversion'		=> $vbulletin->versionnumber
	);
	$_content = array();
	foreach ($_info as $key => $val)
	{
		$_content[] = '"' . $key . '":"' . $val . '"';
	}
	echo '{' . implode(',', $_content) . '}';
	die();
}

if (!class_exists('vB_Template'))
{
	require_once(DIR . '/dbtech/thread_ratings/includes/class_template.php');
}


	// Strip non-valid characters
	$action = preg_replace("/[^a-zA-Z0-9-_]/", "", $action);

	if (!file_exists(DIR . '/dbtech/thread_ratings_pro/actions/' . $action . '.php'))
	{
		if (!file_exists(DIR . '/dbtech/thread_ratings/actions/' . $action . '.php'))
		{
			eval(standard_error(fetch_error('dbtech_trating_error_x', $vbphrase['dbtech_trating_action_missing_file'])));
		} else {
			include_once(DIR . '/dbtech/thread_ratings/actions/' . $action . '.php');	
		}
	} else {
		include_once(DIR . '/dbtech/thread_ratings_pro/actions/' . $action . '.php');	
	}

	$navbar = render_navbar_template(construct_navbits($navbits));	

	// Finish the main template
	$templater = vB_Template::create('dbtech_trating');
		$templater->register_page_templates();
		$templater->register('HTML', 					$HTML);
		$templater->register('navbar', 				$navbar);
		$templater->register('template_hook', 			$template_hook);
		$templater->register('includecss', 			$includecss);
		$templater->register('headinclude_bottom',		$headinclude_bottom);
	print_output($templater->render());

?>
 
OK, I've figured out the shrink/expand images are for the Pro version.

But, the error is real. Has to do with the link/pulldown as per the screenshot I provided and the link on the Community menu.
 
Sorry about the problem, could I get a temp account to check it out? I can't replicate it locally.

For security reasons, we recommend you create a new AdminCP account only for DBTech support, then disable or delete it after we have both confirmed the issue has been solved and there are no further issues. It should ideally be a temporary account created for us only. If we have created an account on your site already, you can optionally boost that account to Administrator and then de-admin this account once the issue has been solved.

If you use a .htaccess password protection for your AdminCP directory, it is recommended that you create a new authorised user for DBTech and remove this user once the issue has been solved.

Please test any temporary accounts you create to ensure that the AdminCP account can access the administrative controls for the product we are assisting you with.

Ensuring this is all in order before submitting the information will significantly speed up the process of assisting you. We will alert you via PM if there's any issues with the login information you have provided.

When sending the PM, for your security you should also un-tick the "Save a copy in my Sent Items folder" checkbox. When the access details have been received, we will delete the PM from our inbox. Ensuring you have not kept a copy of the PM reduces the risk of security breaches.

Thank you for helping us debug our products and allowing us to assist you, we appreciate it
 
OK, I will run it by my buddy and get back to you. It's his choice and decision on how to proceed and if your request is feasible. I don't forsee a problem with it.

In the meantime this may help you figure it out while I reach out to him. Here's another error message.

Fatal error: Class 'DBTECH_TRATING' not found in home/xxxx/public_html/xxxx/forums/dbtech/thread_ratings/hooks/parse_templates.php on line 17

Thanks for your assistance in this matter.
 
The error has to do with the community link.

So, I edited the title to this thread accordingly.

v2.0.2 - 11th May 2013, 19:43
Fixed: Incorrect text on 5 star rating
Fixed: Missing community link on < vB4.2
 
One more thing.

I notice when you disable the mod you can get into threads. An error occurs, When you uninstall the mod everything is fine.

In other words you can't disable it. You have to use it or uninstall it.
 
Any idea on if I'll get access or not? Some of this I cant replicate so to troubleshoot I'll need access.
 
Any idea on if I'll get access or not? Some of this I cant replicate so to troubleshoot I'll need access.

Will know by tomorrow at the latest.

Excuse my ignorance but the change from 2.0.1 to 2.0.2 was minimal. Isn't it there like the screenshot indicates?
 

Attachments

  • Screen shot 2013-05-20 at 10.33.55 AM.png
    Screen shot 2013-05-20 at 10.33.55 AM.png
    22.9 KB · Views: 9
Dylan I have NO idea what happened but today it worked. I don't even now how it happened I could have sworn I uninstalled it.

thanks for your attention to this matter. I'll tell my buddy all is well......... I think!
 
Status
Not open for further replies.

Legacy Thread Ratings

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
459
Customer rating
0.00 star(s) 0 ratings
Back
Top