Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 25th April 2020, 15:18
serseri06 serseri06 is offline
Member
 
Join Date: Oct 2016
Posts: 3
Default Template Shares 5.6 eror
The login page stays like this and after running ... / install.php it gives ts_tabless error in the database loading section. can you help me


Quote:
load ('index'); require_once INC_PATH . '/plugins/ts_plugin_config.php'; $defaulttemplate = ts_template (); $is_mod = is_mod ($usergroups); stdhead (sprintf ($lang->index['welcome'], $SITENAME), TRUE, 'collapse', ''); $_header = ' '; $_footer = '
'; $_div = '
{3}
{1} ' . $_title_bracket . ' {2}
{4}'; $_left_header = array ('', ''); $_middle_header = array ('', ''); $_right_header = array ('', ''); $_curuser_usergroup = ((!$CURUSER['usergroup'] OR !$CURUSER) ? '[0]' : '[' . $CURUSER['usergroup'] . ']'); $_contents = $_header; require_once TSDIR . '/' . $cache . '/plugins.php'; if (0 < count ($Plugins_LEFT)) { $__width = $_left_plugin_width - 10; $__cute = 20; $_contents .= $_left_header[0]; foreach ($Plugins_LEFT as $_results) { $show_content = false; $_perm_1 = $_results['permission']; if (($_perm_1 === '[guest]' AND $_curuser_usergroup === '[0]')) { $show_content = true; } else { if (($_perm_1 === '[all]' OR strstr ($_perm_1, $_curuser_usergroup))) { $show_content = true; } } if ($show_content) { if ($_results['content'] != '') { $_contents .= str_replace (array ('{1}', '{2}', '{3}', '{4}'), array (ts_collapse (str_replace (' ', '_', $_results['name']), 1), $_results['description'], ts_collapse (str_replace (' ', '_', $_results['name']), 2), $_results['content']), $_div); continue; } else { if (file_exists (INC_PATH . '/plugins/' . $_results['name'] . '.php')) { include_once INC_PATH . '/plugins/' . $_results['name'] . '.php'; $_contents .= str_replace (array ('{1}', '{2}', '{3}', '{4}'), array (ts_collapse (str_replace (' ', '_', $_results['name']), 1), $_results['description'], ts_collapse (str_replace (' ', '_', $_results['name']), 2), ${$_results['name']}), $_div); continue; } continue; } continue; } } $_contents .= $_left_header[1]; unset ($Plugins_LEFT); unset ($_perm_1); } $show_content = false; if (0 < count ($Plugins_MIDDLE)) { $__width = $_left_plugin_width * 2 + 130; $__cute = 180; $_contents .= $_middle_header[0]; foreach ($Plugins_MIDDLE as $_results) { $show_content = false; $_perm_2 = $_results['permission']; if (($_perm_2 === '[guest]' AND $_curuser_usergroup === '[0]')) { $show_content = true; } else { if (($_perm_2 === '[all]' OR strstr ($_perm_2, $_curuser_usergroup))) { $show_content = true; } } if ($show_content) { if ($_results['content'] != '') { $_contents .= str_replace (array ('{1}', '{2}', '{3}', '{4}'), array (ts_collapse (str_replace (' ', '_', $_results['name']), 1), $_results['description'], ts_collapse (str_replace (' ', '_', $_results['name']), 2), $_results['content']), $_div); continue; } else { if (file_exists (INC_PATH . '/plugins/' . $_results['name'] . '.php')) { include_once INC_PATH . '/plugins/' . $_results['name'] . '.php'; $_contents .= str_replace (array ('{1}', '{2}', '{3}', '{4}'), array (ts_collapse (str_replace (' ', '_', $_results['name']), 1), $_results['description'], ts_collapse (str_replace (' ', '_', $_results['name']), 2), ${$_results['name']}), $_div); continue; } continue; } continue; } } $_contents .= $_middle_header[1]; unset ($Plugins_MIDDLE); unset ($_perm_2); } $show_content = false; if (0 < count ($Plugins_RIGHT)) { $__width = $_right_plugin_width - 10; $__cute = 20; $_contents .= $_right_header[0]; foreach ($Plugins_RIGHT as $_results) { $show_content = false; $_perm_3 = $_results['permission']; if (($_perm_3 === '[guest]' AND $_curuser_usergroup === '[0]')) { $show_content = true; } else { if (($_perm_3 === '[all]' OR strstr ($_perm_3, $_curuser_usergroup))) { $show_content = true; } } if ($show_content) { if ($_results['content'] != '') { $_contents .= str_replace (array ('{1}', '{2}', '{3}', '{4}'), array (ts_collapse (str_replace (' ', '_', $_results['name']), 1), $_results['description'], ts_collapse (str_replace (' ', '_', $_results['name']), 2), $_results['content']), $_div); continue; } else { if (file_exists (INC_PATH . '/plugins/' . $_results['name'] . '.php')) { include_once INC_PATH . '/plugins/' . $_results['name'] . '.php'; $_contents .= str_replace (array ('{1}', '{2}', '{3}', '{4}'), array (ts_collapse (str_replace (' ', '_', $_results['name']), 1), $_results['description'], ts_collapse (str_replace (' ', '_', $_results['name']), 2), ${$_results['name']}), $_div); continue; } continue; } continue; } } $_contents .= $_right_header[1]; unset ($Plugins_RIGHT); unset ($_perm_3); } echo $_contents . $_footer; stdfoot (); ?>

Last edited by serseri06; 25th April 2020 at 19:25.
Reply With Quote
  #2  
Old 25th April 2020, 18:34
rio rio is offline
Senior Member
 
Join Date: May 2019
P2P
Posts: 55
Default
Copy paste the code there rather than a picture
__________________
Live Free... Share Free...
Reply With Quote
  #3  
Old 25th April 2020, 20:58
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Thumbs up
lol try edit tages

<?


Too

<?php
in the php.init on server tags setting
Reply With Quote
  #4  
Old 25th April 2020, 22:23
serseri06 serseri06 is offline
Member
 
Join Date: Oct 2016
Posts: 3
Default
thank you for the answer but the tags are correct, I also installed ioncube and gzip active
Reply With Quote
  #5  
Old 25th April 2020, 22:30
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Thumbs up
What Plarform are you using on the sever ?
VERSION 5.6

install as
<?
should be

<?php
You will need to set all <? with <?php as you can see it will error out
this is my ts_plugin_config
In include/plugins/ts_plugin_config.php
You see tag at top
<?php
Code:
<?php
define('TS_C_VERSION', '1.2 by xam');
// Security Check.
if (!defined('IN_PLUGIN_SYSTEM'))
{
	 die("<font face='verdana' size='2' color='darkred'><b>Error!</b> Direct initialization of this file is not allowed.</font>");
}

// Plugin Configuration: START
$_left_plugin_width = '175'; // Leave this default for better results..
$_right_plugin_width = '175'; // Leave this default for better results..
$_left_plugin_padding_right = '15px'; // Leave this default for better results..
$_right_plugin_padding_left = '15px'; // Leave this default for better results..
$_div_padding_bottom = '15px'; // Leave this default for better results..
$_title_bracket = '»'; // Leave this default for better results..
define('MAX_NEWS', 1); // How many news that you want to show on index page. ie: 3
// Plugin Configuration: END
?>

Last edited by Napon; 25th April 2020 at 23:06.
Reply With Quote
The Following User Says Thank You to Napon For This Useful Post:
serseri06 (4th May 2020)
  #6  
Old 26th April 2020, 09:38
Rendevous Rendevous is offline
Senior Member
 
Join Date: Nov 2009
Romania
Posts: 43
Default
what version of php and msysql are you running?
Reply With Quote
The Following User Says Thank You to Rendevous For This Useful Post:
serseri06 (4th May 2020)
  #7  
Old 4th May 2020, 22:07
serseri06 serseri06 is offline
Member
 
Join Date: Oct 2016
Posts: 3
Default
Quote:
Originally Posted by Rendevous View Post
what version of php and msysql are you running?
Php 5.6 and marianDB 5.5

Bump:
Quote:
Originally Posted by Napon View Post
What Plarform are you using on the sever ?
VERSION 5.6

install as
<?
should be

<?php
You will need to set all <? with <?php as you can see it will error out
this is my ts_plugin_config
In include/plugins/ts_plugin_config.php
You see tag at top
<?php
Code:
<?php
define('TS_C_VERSION', '1.2 by xam');
// Security Check.
if (!defined('IN_PLUGIN_SYSTEM'))
{
	 die("<font face='verdana' size='2' color='darkred'><b>Error!</b> Direct initialization of this file is not allowed.</font>");
}

// Plugin Configuration: START
$_left_plugin_width = '175'; // Leave this default for better results..
$_right_plugin_width = '175'; // Leave this default for better results..
$_left_plugin_padding_right = '15px'; // Leave this default for better results..
$_right_plugin_padding_left = '15px'; // Leave this default for better results..
$_div_padding_bottom = '15px'; // Leave this default for better results..
$_title_bracket = '»'; // Leave this default for better results..
define('MAX_NEWS', 1); // How many news that you want to show on index page. ie: 3
// Plugin Configuration: END
?>
thanks for the answer. I fixed the problem I reloaded the server from scratch
Reply With Quote
  #8  
Old 4th May 2020, 22:41
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
Good to help you out i do have a lot of mods for this ill big them out
Reply With Quote
  #9  
Old 13th May 2020, 13:35
Daz's Avatar
Daz Daz is offline
Senior Member
 
Join Date: Dec 2009
United Kingdom
Posts: 124
Default
The answer is to enable php short tag in your php.ini, pretty simple.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 22:57. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.