AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Release SourceBans Star Theme (SB++v1.6.3) (https://forums.alliedmods.net/showthread.php?t=311054)

Distortion 10-02-2018 11:23

SourceBans Star Theme (SB++v1.6.3)
 

Available on GitHub!
You can download, update and see changes through github repository. Here is the link

Dark Theme
Contact ssandiss for dark theme
https://i.gyazo.com/5528d2634baab71d...242ffaadcf.png
How To Install?
  1. Copy "star" folder into your themes folder
  2. Activate theme in admin panel

Default Star Theme Boosted With
  • Animate On Scroll
  • countTo
  • Custom CSS Addition


To Do List?
  • DARK theme support!
  • Add quick admin links to top of the page (in blue bar)


Known Bugs?
  • Stropy > search bans via IP address doesn't find anything. advSearch=undefined


Fixed Bugs!
Thank you for your helps. Let me know if you've found more bugs.
  • paulo_crash > Information text area not working as expected.
  • Trice > Context Menu for players not working as expected.
  • Distortion > Non-Admin users can see admin panel link in user menu.
  • paulo_crash > Rcon Console was not working.
  • Mask > Info link was missing on latest players blocked overwiev
  • paulo_crash > Irresponsive tables in Edit Admin Group
  • shtopor, asdfxD, bmsmod > Yellow progress bar not working, calculation issue.
  • raj kaul > Right click menu for players in server list
  • Distortion > Missing style for some pages such as Edit Bans, ReBan etc.
  • Distortion > Blank yellow badge on dashboard comms list when a player muted for session time.
  • shtopor > No country icons in banlist
  • asdfxD > Resize OS and VAC icons

Update Notes

cozmicshredder 10-02-2018 13:34

Re: SourceBans Star Theme (v1.6.3)
 
Wow looks great! ;)

Distortion 10-02-2018 14:01

Re: SourceBans Star Theme (v1.6.3)
 
I hope it works good as it looks :)
I was working on creative tim material dashboard theme but I had to stop project for military. After military I lost my projects. So I decided to make a new one and here it is. Also I don't have a server to test this theme. By the way I will make a repository on github, cya...

raj kaul 10-06-2018 19:51

Re: SourceBans Star Theme (v1.6.3)
 
awesome work <3
1 thing i am not able to click on any player from server list .so i cant kick ban mute directly ..

napster_10 10-27-2018 09:16

Re: SourceBans Star Theme (v1.6.3)
 
looks great but all a bit smaller would be better :)

the overview in dashboard f.e u need to scroll down alot to see the last 10 bans/comms etc..

asdfxD 10-27-2018 14:07

Re: SourceBans Star Theme (v1.6.3)
 
greate theme but how can i fix the linux and shield icon? they looks bad.

https://i.imgur.com/vgLSwl5.png

freak.exe_uLow 10-28-2018 18:23

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by asdfxD (Post 2621533)
greate theme but how can i fix the linux and shield icon? they looks bad.

https://i.imgur.com/vgLSwl5.png

same problem on linux :3

and thanks for sharing Distortion :bacon!:

shtopor 10-30-2018 06:26

Re: SourceBans Star Theme (v1.6.3)
 
1 Attachment(s)
there are no country icons in the banlist

asdfxD 10-30-2018 08:06

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by shtopor (Post 2621879)
there are no country icons in the banlist

u have to rename all country png files from:

AD.png
AE.png
AF.png

to

ad.png
ae.png
af.png

and than it works or simply use the country flags from standard sourcebans /sourcebans/images/country

shtopor 10-30-2018 09:16

Re: SourceBans Star Theme (v1.6.3)
 
1 Attachment(s)
Quote:

Originally Posted by asdfxD (Post 2621891)
u have to rename all country png files from:

AD.png
AE.png
AF.png

to

ad.png
ae.png
af.png

and than it works or simply use the country flags from standard sourcebans /sourcebans/images/country

Files already have such names.
register and file extension changed from jpg <-> png
this does not work

asdfxD 10-30-2018 10:02

Re: SourceBans Star Theme (v1.6.3)
 
the star theme use the country flags from /themes/star/images/country and they have BIG chars. Just copy the flags from your directory /bans/images/country to /themes/star/images/country and it will work......

shtopor 10-31-2018 12:13

Re: SourceBans Star Theme (v1.6.3)
 
Question to the author, why did you not take care of this in advance?

Distortion 11-01-2018 03:25

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by shtopor (Post 2622033)
Question to the author, why did you not take care of this in advance?

I was working so hard to get a job. In this week I'll add a github repository so you can download and update. Also I'm working on current bugs.
Thank you guys for using this theme and letting me know those bugs.
Cheerz...

asdfxD 11-01-2018 04:39

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by Distortion (Post 2622121)
I was working so hard to get a job. In this week I'll add a github repository so you can download and update. Also I'm working on current bugs.
Thank you guys for using this theme and letting me know those bugs.
Cheerz...

nice to hear, resize the game icon on banlist too please.

https://forums.alliedmods.net/showpo...79&postcount=8

Distortion 11-01-2018 05:10

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by asdfxD (Post 2622125)
nice to hear, resize the game icon on banlist too please.

https://forums.alliedmods.net/showpo...79&postcount=8

I think I've found a better solution for image sizes. I'll check my code when I get home and add it to github.

asdfxD 11-01-2018 09:22

Re: SourceBans Star Theme (v1.6.3)
 
the "rightclick" menu works, scroll down after.. it has just a bad position. :D

Distortion 11-01-2018 09:30

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by asdfxD (Post 2622165)
the "rightclick" menu works, scroll down after.. it has just a bad position. :D

I didn't have a chance to try it. As you can see in screenshot I have an issue with connection to the server. Also I don't have a server anymore. I'm gonna install a local server just to fix this bug.

freak.exe_uLow 11-02-2018 14:22

Re: SourceBans Star Theme (v1.6.3)
 
I found another problem...I think they have one of the CFG's that capitalize [C]sgo.png not csgo.png

when i not change the files :)
https://i.gyazo.com/82e2000c63d8f171...751b051458.png

when i change the png file too [C]sgo.png
https://i.gyazo.com/999c3bf7827bccdb...5879d4700c.png

:3

shtopor 11-04-2018 15:42

Re: SourceBans Star Theme (v1.6.3)
 
2 Attachment(s)
Quote:

Originally Posted by Distortion (Post 2622121)
I was working so hard to get a job. In this week I'll add a github repository so you can download and update. Also I'm working on current bugs.
Thank you guys for using this theme and letting me know those bugs.
Cheerz...

Icons in the banlist are too big.

Distortion 11-04-2018 15:50

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by shtopor (Post 2622614)
Icons in the banlist are too big.

Added to "Todo List"
Working on bigger game icons

Distortion 11-05-2018 08:46

Re: SourceBans Star Theme (v1.6.3)
 
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.

shtopor 11-11-2018 03:04

Re: SourceBans Star Theme (v1.6.3)
 
1 Attachment(s)
Quote:

Originally Posted by Distortion (Post 2622739)
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

Distortion 11-11-2018 16:18

Re: SourceBans Star Theme (v1.6.3)
 
UPDATE
Rightclick menu (context menu) fixed
https://image.ibb.co/fqzwcq/context.jpg

Quote:

Originally Posted by shtopor (Post 2623524)
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
https://image.ibb.co/htf2Hq/remaining.jpg

raj kaul 11-11-2018 22:14

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by Distortion (Post 2623603)
UPDATE
Rightclick menu (context menu) fixed
https://image.ibb.co/fqzwcq/context.jpg


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
https://image.ibb.co/htf2Hq/remaining.jpg

ty for this update :bacon!::bacon!::bacon!::bacon!:

asdfxD 11-11-2018 23:32

Re: SourceBans Star Theme (v1.6.3)
 
Remaining time bar is not working for me too (time ban)

https://i.imgur.com/9RSwIgG.png

Distortion 11-11-2018 23:42

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

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

https://i.imgur.com/9RSwIgG.png

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.

bmsmod 11-12-2018 22:00

Re: SourceBans Star Theme (v1.6.3)
 
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

Distortion 11-13-2018 02:46

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by bmsmod (Post 2623789)
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.

asdfxD 11-15-2018 10:10

Re: SourceBans Star Theme (v1.6.3)
 
Yellow progress bar works now with latest git version, but it seems not correctly. random results after refreshing the page.

https://s15.directupload.net/images/181115/kjuu55ib.gif

Distortion 11-15-2018 11:16

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

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

https://s15.directupload.net/images/181115/kjuu55ib.gif

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!!

bmsmod 11-18-2018 19:36

Re: SourceBans Star Theme (v1.6.3)
 
Seems to have an issue uploading demos. I was able to upload a 7z test text file. NOT a .dem or a demo that I 7z ipped. Once I went back to default theme the issue was resolved.


Anyone else having this issue?

RealEdan 11-20-2018 05:32

Re: SourceBans Star Theme (v1.6.3)
 
My suggestions:

- You need to add the Username and Password back instead of just the login through steam feature.
- You need to color code the Ban Length on the bans page, instead of just the default page.
- When opening up the server page, it shouldn't automatically open up the first server.
- Fix the ban length bar.
- Make all images containing random people show your steam profile image (checking your STEAMID using steam api)

You should also find a way where we can simply add our personal websites navbar onto the team, that'd be cool.

ssandiss 11-23-2018 05:55

Re: SourceBans Star Theme (v1.6.3)
 
Hey!

Since I really really like this theme and looked up the original. I noticed that they had a paid version aswell where you got a Dark theme.

I thought it looked really cool so I figured I'd make a dark theme for it.

If anyone is interested please contact me :)

https://i.gyazo.com/5528d2634baab71d...242ffaadcf.png

Distortion 11-28-2018 08:07

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by RealEdan (Post 2624865)
My suggestions:

- You need to add the Username and Password back instead of just the login through steam feature.
- You need to color code the Ban Length on the bans page, instead of just the default page.
- When opening up the server page, it shouldn't automatically open up the first server.
- Fix the ban length bar.
- Make all images containing random people show your steam profile image (checking your STEAMID using steam api)

You should also find a way where we can simply add our personal websites navbar onto the team, that'd be cool.


- You need to add the Username and Password back instead of just the login through steam feature.
You can use both...
https://i.ibb.co/MnHgLsV/login.jpg

- Fix the ban length bar.
I've found a working solution for it. Will be released soon.

- Make all images containing random people show your steam profile image (checking your STEAMID using steam api)
I've made a custom php function to fetch profile picture. Will be released soon.

- When opening up the server page, it shouldn't automatically open up the first server.
Working on it.

- You need to color code the Ban Length on the bans page, instead of just the default page.
Done. Will be released.

Distortion 11-28-2018 08:10

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by ssandiss (Post 2625331)
Hey!

Since I really really like this theme and looked up the original. I noticed that they had a paid version aswell where you got a Dark theme.

I thought it looked really cool so I figured I'd make a dark theme for it.

If anyone is interested please contact me :)

https://i.gyazo.com/5528d2634baab71d...242ffaadcf.png

That's great. I'm gonna add your name on first post so ppl can contact with you. cheerz

Distortion 11-28-2018 14:39

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by bmsmod (Post 2624674)
Seems to have an issue uploading demos. I was able to upload a 7z test text file. NOT a .dem or a demo that I 7z ipped. Once I went back to default theme the issue was resolved.


Anyone else having this issue?

Actually it is working on me. Uploading section is in pages folder. You'd better download that file from github and replace it.
https://i.ibb.co/J53hCTP/upload.png


NEWS RELEASE!!
Download from GitHub: Star Theme v1.5.0 for SB++v1.6.3

asdfxD 11-29-2018 12:19

Re: SourceBans Star Theme (v1.6.3)
 
i use the latest theme now and got an error.

https://i.imgur.com/ChyOX13.png

edit: removed the line 17 and now it works

Code:

        $res = bcadd((bcadd('76561197960265728', $authServer)), (bcmul($clientId, '2')));

bronnki4 12-01-2018 18:41

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by ssandiss (Post 2625331)
Hey!

Since I really really like this theme and looked up the original. I noticed that they had a paid version aswell where you got a Dark theme.

I thought it looked really cool so I figured I'd make a dark theme for it.

If anyone is interested please contact me :)

https://i.gyazo.com/5528d2634baab71d...242ffaadcf.png

For me not work man https://cdn.discordapp.com/attachmen...81421332/1.PNG

Distortion 12-02-2018 04:10

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by asdfxD (Post 2626086)
i use the latest theme now and got an error.

https://i.imgur.com/ChyOX13.png

edit: removed the line 17 and now it works

Code:

        $res = bcadd((bcadd('76561197960265728', $authServer)), (bcmul($clientId, '2')));

New calculation has been sent through private message. If it works correctly, I'll add it on github. Cheerz

asdfxD 12-02-2018 08:26

Re: SourceBans Star Theme (v1.6.3)
 
Quote:

Originally Posted by Distortion (Post 2626355)
New calculation has been sent through private message. If it works correctly, I'll add it on github. Cheerz

seems it works.


All times are GMT -4. The time now is 16:14.

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