Comments (7)
Oui il y a pas mal de situations où ça serait bien. Par exemple pour un flux par émissions sur Nolife Online, par thème sur Arte+7,...
Par contre c'est un changement de mécanique interne qui m'est inaccessible. Contributions bienvenues
from rss-bridge.
function select($name, $array, $select='', $keyvalue=false) { #$name : name=""(string) #$array : value posted in select 'value'=>'view' (Array) #$keyvalue : if true : 'value'=>'view' else 'value' (Boolean) $selected = ''; $form= '<select name="'.$name.'">'."n"; if($keyvalue) { foreach($array as $key => $option) { if($select === $key) { $selected = ' selected="selected"'; } $form .= "\t".'<option value="'.$key.'"'.$selected.'>'.$option.'</option>'."\n"; $selected=''; } } else { foreach($array as $option) { if($select === $option) { $selected = ' selected="selected"'; } $form .= "\t".'<option value="'.$option.'"'.$selected.'>'.$option.'</option>'."\n"; $selected=''; } } $form .= '</select>'.PHP_EOL; echo $form; }
Si ca peut dépanner.
from rss-bridge.
Je reviens là dessus: j'ai pas trop su comment intégrer ton code ^^ Pourrais-tu faire une démo dans un fork pour test ?
from rss-bridge.
à vrai dire, je ne sais pas utiliser ton code. le $name correspond au nom de l'array (le ), l'array le contenu (la clé étant l'idée, donc CONTENU DE L'ARRAY</option). $select est le choix par défaut et $keyvalue, c'est juste pour savoir si tu utilise une clé, faut mettre à true.
from rss-bridge.
Je reviens sur cet issue: avec le nouveau site pour Arte+7, je ressens bien le besoin pour une liste déroulante, afin de sélectionner la catégorie que l'on souhaite 😢
Au niveau des bridges, un exemple de syntaxe pourrait être:
* @use1(list["choix 1","option 2","autre solution"])
(en gros le mot-clé list
signalant un array JSON dont chaque élément correspond à une option de liste)
Contributions et idées fortement bienvenues !
from rss-bridge.
Tu peux regarder ma PR #156, où je propose une implémentation. Cela reste encore à tester.
La syntaxe que j'ai utilisé est la suivante :
@use1(list|u="nomdeloption1=>valeurdeloption1; option 2 => valeur de l'option 2")
from rss-bridge.
Mergé
from rss-bridge.
Related Issues (20)
- Reddit failed with error 403 HOT 1
- Bridge request for worldbank.org / banquemondiale.org
- Sens Critique failed with error 400 HOT 3
- NextInpact Bridge failed with error 404 HOT 4
- Yggtorrent Bridge failed with error 0 HOT 4
- Parse `<time>` elements automatically without formatting string HOT 3
- How to stop RSS-Bridge from escaping/sanitizing html? HOT 4
- Tiktok bridge adds extra / in video url, which makes yt-dlp unusable HOT 2
- Feature Request: Keeping YouTube Feed Content Intact in Filter Bridge HOT 1
- (@true_secator) - Telegram failed with error 0 HOT 4
- YouTubeBridge Generates 75 Feeds Instead of Expected 10 - High Load Concerns
- Gitea Commits fails ? HOT 1
- CSS Selector Bridge error on Mobilizon HOT 1
- CSS Selector Bridge failed with error 0 HOT 3
- Bridge request for Academia.edu/topics
- Urlebird Bridge failed with error 403 due to cf
- eBay Bridge problems
- How to get around SSL verification errors with proxy even with http url HOT 1
- Full Podcast Feed Support - Reduce Filter Modifications HOT 1
- bin/cache-prune always throws a "No cache type configured" error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rss-bridge.