Raised This Month: $12 Target: $400
 3% 

Release SourceBans Star Theme (SB++v1.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Distortion
Member
Join Date: Feb 2017
Old 11-05-2018 , 08:46   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #21

New images have been added to repository.
Games, Linux, windows, smac and vac icons changed.
In servers page, you'll see the new icons changed through js in off-canvas.js
You can download new updates from github.

Cheerz.
__________________
Distortion is offline
shtopor
Member
Join Date: Dec 2010
Old 11-11-2018 , 03:04   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #22

Quote:
Originally Posted by Distortion View Post
New images have been added to repository.
Games, Linux, windows, smac and vac icons changed.
In servers page, you'll see the new icons changed through js in off-canvas.js
You can download new updates from github.

Cheerz.
Hi
Pls, fix it
Attached Thumbnails
Click image for larger version

Name:	Снимок.PNG
Views:	555
Size:	83.2 KB
ID:	172222  
shtopor is offline
Distortion
Member
Join Date: Feb 2017
Old 11-11-2018 , 16:18   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #23

UPDATE
Rightclick menu (context menu) fixed


Quote:
Originally Posted by shtopor View Post
Hi
Pls, fix it
It works. When the time has expired or a player has been banned permanently, it shows fully loaded progress bar. Here is a working example from my local website
__________________

Last edited by Distortion; 11-11-2018 at 16:19.
Distortion is offline
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 11-11-2018 , 22:14   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #24

Quote:
Originally Posted by Distortion View Post
UPDATE
Rightclick menu (context menu) fixed



It works. When the time has expired or a player has been banned permanently, it shows fully loaded progress bar. Here is a working example from my local website
ty for this update
__________________
raj kaul is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-11-2018 , 23:32   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #25

Remaining time bar is not working for me too (time ban)

asdfxD is offline
Distortion
Member
Join Date: Feb 2017
Old 11-11-2018 , 23:42   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #26

Quote:
Originally Posted by asdfxD View Post
Remaining time bar is not working for me too (time ban)

Could you please send me your website link?
and create a ban for at least 2 hours so I can do some debugging on inspect console.

Also it is not updating in realtime, you have to reload the page to see result.
__________________

Last edited by Distortion; 11-11-2018 at 23:44.
Distortion is offline
bmsmod
Junior Member
Join Date: May 2015
Old 11-12-2018 , 22:00   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #27

PHP is not my thing. Getting these errors. I imagine its something on my end but have no idea.


[256] mysqli error: [1048: Column 'aid' cannot be null] in EXECUTE("INSERT INTO sb_log(type,title,message, function, query, aid, host, created)
VALUES ('w','PHP Warning','[512] math: parameter \'e\' is empty
\nError on line 65 in file /var/www/sites/prgaming/public/sourcebans/includes/smarty/plugins/function.math.php','/var/www/sites/prgaming/public/sourcebans/includes/smarty/plugins/function.math.php - 65
/var/www/sites/prgaming/public/sourcebans/themes_c/star^%%42^420^420ABB47%%page_dashboard.tpl.ph p - 186
/var/www/sites/prgaming/public/sourcebans/includes/smarty/Smarty.class.php - 1263
/var/www/sites/prgaming/public/sourcebans/includes/smarty/Smarty.class.php - 1113
','N/A',NULL,'xx.xx.xx.xxx',1542076819)")


Fatal error on line 79 in file /var/www/sites/prgaming/public/sourcebans/includes/adodb/adodb-errorhandler.inc.php
Parent Function /var/www/sites/prgaming/public/sourcebans/includes/adodb/adodb-errorhandler.inc.php - 79
/var/www/sites/prgaming/public/sourcebans/includes/adodb/adodb.inc.php - 1250
/var/www/sites/prgaming/public/sourcebans/includes/adodb/adodb.inc.php - 1190
/var/www/sites/prgaming/public/sourcebans/includes/CSystemLog.php - 91
Query String N/A
IP

Thanks!

Note replaced the IP with X
bmsmod is offline
Distortion
Member
Join Date: Feb 2017
Old 11-13-2018 , 02:46   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #28

Quote:
Originally Posted by bmsmod View Post
PHP is not my thing. Getting these errors. I imagine its something on my end but have no idea.


[256] mysqli error: [1048: Column 'aid' cannot be null] in EXECUTE("INSERT INTO sb_log(type,title,message, function, query, aid, host, created)
VALUES ('w','PHP Warning','[512] math: parameter \'e\' is empty
\nError on line 65 in file /var/www/sites/prgaming/public/sourcebans/includes/smarty/plugins/function.math.php','/var/www/sites/prgaming/public/sourcebans/includes/smarty/plugins/function.math.php - 65
/var/www/sites/prgaming/public/sourcebans/themes_c/star^%%42^420^420ABB47%%page_dashboard.tpl.ph p - 186
/var/www/sites/prgaming/public/sourcebans/includes/smarty/Smarty.class.php - 1263
/var/www/sites/prgaming/public/sourcebans/includes/smarty/Smarty.class.php - 1113
','N/A',NULL,'xx.xx.xx.xxx',1542076819)")


Fatal error on line 79 in file /var/www/sites/prgaming/public/sourcebans/includes/adodb/adodb-errorhandler.inc.php
Parent Function /var/www/sites/prgaming/public/sourcebans/includes/adodb/adodb-errorhandler.inc.php - 79
/var/www/sites/prgaming/public/sourcebans/includes/adodb/adodb.inc.php - 1250
/var/www/sites/prgaming/public/sourcebans/includes/adodb/adodb.inc.php - 1190
/var/www/sites/prgaming/public/sourcebans/includes/CSystemLog.php - 91
Query String N/A
IP

Thanks!

Note replaced the IP with X
On page_dashboard.tpl at line 164 there is a math function to calculate percentage of time between end and created.
PHP Code:
{math equation="( n - c ) / ( ( e - c ) / 100 )" e=$player.e_secs c=$player.c_secs n=$smarty.now
Currently I'm working on a solution.

I don't want you to add some lines to page.home.php file because it's not in theme folder. Also I believe that it's not the purpose of themes.

As you can see at #L125, sourcebans gets ends and created columns from database but it's not including them to array that we can use in dashboard.tpl file.

In my case, I've added these lines after #L150
PHP Code:
$info['e_secs'] = $res->fields['ends'];
$info['c_secs'] = $res->fields['created']; 
If you don't want to edit php file, you can replace #L164 with a simple change

This is a fake solution. It'll generate random number between 10-90 (both included)

Old Code
PHP Code:
<div class="progress-bar bg-warning progress-bar-striped" role="progressbar" style="width: {math equation=") / ( ( ) / 100 )" e=$player.e_secs c=$player.c_secs n=$smarty.now}%"
New Code
PHP Code:
<div class="progress-bar bg-warning progress-bar-striped" role="progressbar" style="width: {10|rand:90}%"
It will stop warnings, but I'll make it as soon as possible.

Cheerz.
__________________
Distortion is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-15-2018 , 10:10   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #29

Yellow progress bar works now with latest git version, but it seems not correctly. random results after refreshing the page.


Last edited by asdfxD; 11-15-2018 at 10:12.
asdfxD is offline
Distortion
Member
Join Date: Feb 2017
Old 11-15-2018 , 11:16   Re: SourceBans Star Theme (v1.6.3)
Reply With Quote #30

Quote:
Originally Posted by asdfxD View Post
Yellow progress bar works now with latest git version, but it seems not correctly. random results after refreshing the page.

As I said in my last reply,

Code:
This is a fake solution. It'll generate random number between 10-90 (both included)
I have a working solution but it contains php codes in it. Getting some informations from database. In my opinion it is not safe to use it that way. Nvm, still working on it!!
__________________
Distortion is offline
Reply


Thread Tools
Display Modes

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 -4. The time now is 12:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode