Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newer version of BigButtons doesn't work #4

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
8b610cb
Update to work with FPP 2.0
dkulp Aug 27, 2018
56c7012
Back to 100%
dkulp Aug 27, 2018
7ca74cd
No left margin
dkulp Aug 27, 2018
22df5e9
Allow customization via URL parameters.
cpinkham Jan 18, 2019
18a9c92
Initial version of pluginInfo.json for new plugin install page.
cpinkham Jan 18, 2019
c1b51c6
Fix description field name.
cpinkham Jan 18, 2019
0c90df8
Put version number in quotes.
cpinkham Jan 20, 2019
9ce9583
Fix bigbuttons plugin on 3.0
dkulp Aug 6, 2019
01d5ff0
Updates for new features on master
dkulp Nov 8, 2019
8f5ba73
Add variable text entry
dkulp Nov 8, 2019
2899106
Fix font size
dkulp Nov 9, 2019
eb4cea1
Fix json
dkulp Nov 9, 2019
c63e918
Update pluginInfo.json
dkulp Nov 9, 2019
b28a6a0
Update pluginInfo.json
dkulp Nov 9, 2019
5794215
Fix some issue if config doesnt already exist
dkulp Nov 10, 2019
02872aa
Update to use POST with FPP 3.5.1, some layout enhancements
dkulp Nov 11, 2019
125d54a
Make descriptions a little skinner to fit on screen.
cpinkham Feb 23, 2020
d7eb362
Fix a config save issue.
cpinkham Mar 12, 2020
852d818
Fix deleting of buttons
dkulp Aug 4, 2020
168a8e8
Refactor to allow sorting
adamcoulombe Jan 25, 2021
5026de6
Update button styling on config page
adamcoulombe Jan 27, 2021
f640532
focus style on buttonTitle
adamcoulombe Jan 29, 2021
da066bc
Update config.php
adamcoulombe Feb 25, 2021
a02160b
multiple tabs first implementation
adamcoulombe Mar 2, 2021
a97127b
Merge pull request #1 from adamcoulombe/master
adamcoulombe Mar 2, 2021
49b43cb
update plugininfo.json to point 5.x users to newui branch
adamcoulombe Mar 2, 2021
74c4fa2
Merge pull request #2 from adamcoulombe/multiple-tabs
adamcoulombe Mar 2, 2021
0b3057e
fix logic so buttons work
adamcoulombe Mar 2, 2021
da31f17
add some font scaling
adamcoulombe Mar 2, 2021
4efd972
use fpp-icon-grip for button grip
adamcoulombe Mar 2, 2021
e3551d4
add kiosk mode query var support
adamcoulombe Mar 3, 2021
1e5a474
add static command text to button config
adamcoulombe Mar 3, 2021
7c1b1bd
put command selects in fppDialogs
adamcoulombe Mar 3, 2021
ef5645f
tighter spacing between buttons
adamcoulombe Mar 3, 2021
dde813e
add ability to resize buttons
adamcoulombe Mar 4, 2021
c47aa4c
styles for some ui buttons
adamcoulombe Mar 4, 2021
06da15c
fix width resize bug
adamcoulombe Mar 4, 2021
c9d77ec
add ability to set a background color for each tab
adamcoulombe Mar 5, 2021
ff3d386
add ability to select an icon for your button
adamcoulombe Mar 6, 2021
433847b
fix button title field bug
adamcoulombe Mar 6, 2021
45e9829
Add tab descriptions and ability to delete tabs
adamcoulombe Mar 6, 2021
138a9b7
Merge remote-tracking branch 'origin/newui'
dkulp Aug 14, 2021
982046f
focus on title field when modal opens
adamcoulombe Jan 5, 2022
32b862d
Allow for multisync commands
adamcoulombe Jan 5, 2022
e499ed7
Merge updates into main branch
adamcoulombe Jan 5, 2022
b9f478e
Set better (working) default config for first run
adamcoulombe Jan 19, 2022
5e95417
Fix bigbuttons on MacOS
dkulp Feb 28, 2022
bde0fe5
Enable Multisync checkbox in command editor
cpinkham Sep 2, 2022
ee0c5ba
Revert "Enable Multisync checkbox in command editor"
cpinkham Sep 2, 2022
f45d8ec
Fix Multicast option updating wrong device
Poporacer Sep 13, 2022
479f50a
Set "Value" on load as well as slider, clean up some formatting
dkulp Sep 13, 2022
deed933
Start fixing BigButtons on fpp7
dkulp Jun 27, 2023
1c668e8
Handle lack of config file more gracefully
darylc Feb 1, 2024
50e39cb
previous paste was truncated
darylc Feb 1, 2024
ec287a6
Add "Browser URL" command for big buttons
dkulp May 10, 2024
0bb243e
Works with 8
dkulp Jul 23, 2024
3497154
Update config.php to correctly include files from plugin for MIME sec…
OnlineDynamic Jan 10, 2025
6806d04
Update config.php to remove / from urls
OnlineDynamic Jan 10, 2025
c2fcab0
Update issue templates
patdelaney Jan 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**NOTE:** IF YOU DO NOT ATTACH YOUR LOG FILES, THEN THERE IS A HIGHER PROBABILITY THE ISSUE WON'T BE RESOLVED. (Steps at end)
# Please answer the following:
**FPP Version and Hardware**:
Example: *FPP 8.x running on BBB*


**Describe the bug and Steps to reproduce**:
A clear and concise description of what the bug is and the steps to be taken to reproduce.
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**:
A clear and concise description of what you expected to happen and why.

**Additional context**:
Add any other context about the problem here.

**Additional Attachments**
Please include the log files. To create the file:
1. Open the FPP UI
2. Open the the File Manager (Content Setup->File Manager),
3. Select the "Logs" tab
4. Click "zip" button.
5. Attach to this ticket.

If applicable, add screenshots to help explain your problem.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode
legacyBigButtonsSampleConfig.json
61 changes: 61 additions & 0 deletions bb-common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?


function returnIfExists($json, $setting) {
if ($json == null) {
return "";
}
if (array_key_exists($setting, $json)) {
return $json[$setting];
}
return "";
}

function convertAndGetSettings() {
global $settings;

$cfgFile = $settings['configDirectory'] . "/plugin.fpp-BigButtons";
if (file_exists($cfgFile)) {
$pluginSettings = parse_ini_file($cfgFile);
$json = array();
for ($x = 1; $x <= 20; $x++) {
$buttonName = "button" . sprintf('%02d', $x);
$color = returnIfExists($pluginSettings, $buttonName . "color");
$desc = returnIfExists($pluginSettings, $buttonName . "desc");
$script = returnIfExists($pluginSettings, $buttonName . "script");

if ($color != "" || $desc != "" || $script != "") {
$json["buttons"][$x]["description"] = $desc;
$json["buttons"][$x]["color"] = $color;
if ($script != "" && $script != null) {
$json["buttons"][$x]["command"] = "Run Script";
$json["buttons"][$x]["args"][] = $script;
} else {
$json["buttons"][$x]["command"] = "";
}
}
}
$fontsize = returnIfExists($pluginSettings, "buttonFontSize");
if ($fontsize != "" && $fontsize != null) {
$json["fontSize"] = (int)$fontsize;
}
$title = returnIfExists($pluginSettings, "buttonTitle");
if ($title != "" && $title != null) {
$json["title"] = $title;
}

file_put_contents($cfgFile . ".json", json_encode($json, JSON_PRETTY_PRINT));
unlink($cfgFile);
return $json;
}
if (file_exists($cfgFile . ".json")) {
$j = file_get_contents($cfgFile . ".json");
$json = json_decode($j, true);
return $json;
}
$j = "{\"fontSize\": 12, \"title\": \"\", \"buttons\": {\"1\": {}}}";
return json_decode($j, true);
}


?>
Loading