Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Text Display (foo_textdisplay) (Read 218613 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Text Display (foo_textdisplay)

Reply #150
Great component, just voicing that the option to disable confirmation when clicking links can be disabled.

Text Display (foo_textdisplay)

Reply #151
Is there a way to set more than one link (using $doclink) per line or must I always use clrf() between them?


Text Display (foo_textdisplay)

Reply #153
In the current version you must use the $crlf().


Thanks.

Can't this plugin here be used as a much more advanced statusbar? I am using it as such but it overlaps the native statusbar in some aspects of functionality. I read in other threads that an option to hide statusbar is out of the question , but maybe upgrading it to include the options you are offering here and make it much more versatile?

Text Display (foo_textdisplay)

Reply #154
Technically it would be possible to use a custom, advanced status bar. As far as I know Columns UI does that. Would Peter be willing to do this? I really don't know.

Text Display (foo_textdisplay)

Reply #155
Web services links on playing track

Code: [Select]
$puts(myartist,$if3(%artist%,%album artist%,%BAND%,$directory(%path%,1)))
$puts(myalbums,$if3(%album%,%directoryname%))
$puts(mytitle,$if3(%title%,%filename%))
$puts(myquery,music+$get(myartist)+$get(myalbum)[+%date%]+$get(mytitle))


// Google all
$doclink(Google all,'http://www.google.com/search?ie=utf-8&q='$replace($get(myquery), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// search google for lyrics
$doclink(Google Lyrics,'http://www.google.com/search?ie=utf-8&q=lyrics|parole+'$replace($get(mytitle), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')+$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Google Lyrics Translate // bug urlencode
//$doclink(FRENCH Lyrics,'http://translate.google.fr/?ie=utf-8&hl=fr#auto/fr/'$replace($if3(%lyrics%,%unsynced lyrics%), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// Wikipedia artist
$doclink(Wikipedia,'http://en.wikipedia.org/wiki/Special:Search?search='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Youtube artist
//$doclink(Youtube,'http://www.youtube.com/results?aq=f&search_query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// Blogspot artist
$doclink(Blogspot,'http://www.google.com/search?sitesearch=blogspot.*&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// MusicBrainz artist
$doclink(MusicBrainz,'http://musicbrainz.org/search/textsearch.html?type=artist&an=1&as=1&aa=1&limit=100&handlearguments=1&query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Discogs artist
$doclink(Discogs,'http://www.discogs.com/search?type=artist&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// LastFM artist
//$doclink(LastFM,'http://www.lastfm.fr/search?q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// myspace artist
$doclink(MySpace,'http://www.myspace.com/search/music?q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23',&,,))
$crlf()

// rateyourmusic artist
$doclink(rateyourmusic,'http://rateyourmusic.com/search?searchtype=a&searchterm='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// greatsong.net
$doclink(greatsong.net,'http://www.greatsong.net/recherche.php?ie=utf-8&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// slothradio
$doclink(sloth cover,'http://www.slothradio.com/covers/?artist='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// allmusic
$doclink(allmusic,'http://www.allmusic.com/search/all/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// internet archive
$doclink(Internet Archive,'http://archive.org/search.php?query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// filecrop
$doclink(FileCrop,'http://www.filecrop.com/search.php?size_i=0&size_f=100000000&engine_r=1&engine_h=1&engine_m=1&engine_d=1&w='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// jango
$doclink(Jango,'http://www.jango.com/music/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// hypeM
$doclink(HypeM,'http://hypem.com/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// metacrawler
//$doclink(metacrawler,'http://www.metacrawler.com/search/web?fcoid=417&fcop=topnav&fpid=27&ql=&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// webcrawler
$doclink(webcrawler,'http://www.webcrawler.com/search/web?fcoid=417&fcop=topnav&fpid=27&ql=&ss=t&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// songstr
$doclink(songstr,'http://www.songstr.com/#!/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// deezer
$doclink(deezer,' http://www.deezer.com/fr/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

Text Display (foo_textdisplay)

Reply #156
Hi foosion,

Just updated to latest version of foo_textdisplay and it seems to ignore (or treat differently): $crlf()

C.

EDIT:
Win7 x64
fb2k v.1.2.6 (portable)
PC = TAK + LossyWAV  ::  Portable = Opus (130)


Text Display (foo_textdisplay)

Reply #158
Thanks marc2003. Don't quite understand how I was using such an old version?? - only made my DUI setup this year. Very strange.
Anyway, problem solved.

Cheers,

C.
PC = TAK + LossyWAV  ::  Portable = Opus (130)


Text Display (foo_textdisplay)

Reply #160
On my system my text display element has recently stopped displaying lyrics, showing instead "."  I'm on a Win7 machine, and the problem arose when I upgraded to fb2k v1.3.  I believe this is due to the problem Edgar Grey identified above -- please add my voice to his update request.

Thanks kindly -- I've appreciated this plugin (and your many others) over the years.

Text Display (foo_textdisplay)

Reply #161
On my system my text display element has recently stopped displaying lyrics, showing instead "."  I'm on a Win7 machine, and the problem arose when I upgraded to fb2k v1.3.  I believe this is due to the problem Edgar Grey identified above -- please add my voice to his update request.

Thanks kindly -- I've appreciated this plugin (and your many others) over the years.


Could be fixed by editing LargeFieldsConfig.txt in foobar2000 profile folder

Text Display (foo_textdisplay)

Reply #162
Does anyone know where I can find a non 1.0 release of the plugin?  All I want is proper line breaks to appear.


Any chance that this will be fixed in future versions?
I mean without the workaround from Post #132.
I don't like my scriptings to be messed up with a large number of $replace commands.

Text Display (foo_textdisplay)

Reply #163
Since a few weeks ago (I can't tie it with any update of this plugin or foobar2000) I noticed that this plugin cannot read lyrics from FLAC files. It only displays a dot in the text box. It works just fine with MP3 and MPC files.

Im using fooobar2000 v1.3.2 and Text Display UI Element 1.1 beta 1. Thank you!

Text Display (foo_textdisplay)

Reply #164
loft: This looks like the same issue as in post #161. I suspect it is just a coincidence that it occurs with FLAC files.

Text Display (foo_textdisplay)

Reply #165
It looks like the same problem... My database is quite big, about 7000 files, mp3's, mpc's and FLAC's. Now why is it only happening with FLAC's... Dunno!

Text Display (foo_textdisplay)

Reply #166
Are there any plans to add Bold formatting support? Facets has a nice support for it in the Default UI, and was hoping it could be achieved with Text Display

Text Display (foo_textdisplay)

Reply #167
Just added some formatting for podcast details and noticed with certain Comment fields it breaks the Text Display formatting. Perhaps there are some characters that aren't being escaped?

Here is a screenshot of the issue. The first is the normal formatting showing correctly, the second one version of being broken, the last an alternate form of the formatting being broken.



Here's my formatting code:

Code: [Select]
[<<<%artist%>>>$crlf()]
%title%$crlf()
$if2(<<<%album% ['['#%track%']'] ['['%date%']']>>>,'('<<<Unknown>>>')')$crlf()
$if(%isplaying%,%playback_time%[ / %length%],%length%)$crlf()
<<∙∙∙∙>>$crlf()
[<<<%comment%>>>$crlf()<<∙∙∙∙>>$crlf()]

$puts(myartist,$if2(%albumartist%,%artist%))
$puts(myalbum,$if3(%album%,%directoryname%))
$puts(mytitle,$if3(%title%,%filename%))
$puts(myquery,$get(myartist) $get(myalbum) $get(mytitle))
$puts(myquery2,$get(myartist) $get(myalbum))

// Wikipedia
$doclink(Search Wikipedia '('album')','http://en.wikipedia.org/wiki/Special:Search?search='$replace($get(myquery2), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Youtube
$doclink(Search Youtube '('track')','http://www.youtube.com/results?aq=f&search_query='$replace($get(myquery), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Search google for lyrics
$doclink(Search Lyrics,'http://www.google.com/search?ie=utf-8&q='$replace($get(myquery) lyrics, ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

Text Display (foo_textdisplay)

Reply #168
I guess there is a line break in some of your comment tags. This breaks the formatting since Text Display can only apply formatting to whole paragraphs. There are two options. Either remove the line breaks in your formatting script using
Code: [Select]
<<<$replace(%comment%,$char(13),,$char(10),)>>>
or break up the comment into multiple, separately highlighted paragraphs with
Code: [Select]
<<<$replace(%comment%,$crlf(),>>>$crlf()<<<)>>>


I'm not sure what goes wrong for the second case but you can try to use Text Display's $urlencode function instead of a $replace which only handles a few special characters, i.e.
Code: [Select]
$doclink(Search Youtube '('track')','http://www.youtube.com/results?aq=f&search_query='$urlencode($get(myquery)))

Text Display (foo_textdisplay)

Reply #169
Perfect foosion, just what I needed. 

BTW is there a way to pass the currently playing file to an app? I see the $applink() function but don't see a way to open just a single file.

Text Display (foo_textdisplay)

Reply #170
if you want the default application to open the file, just put %path% as the application. or if you want to open a specific app, you can specify %path% as an argument.

Text Display (foo_textdisplay)

Reply #171
I'm having trouble using the highlight function in my config.



My settings for the above are:

Code: [Select]
$if2(%track%,) [<<<%artist%>>>] - $if2(%title%,)$crlf()

[$if(%ALBUM%,%ALBUM%,$if(%radioshow%, | %radioshow%', episode'
$if2(%RADIOSHOW EPISODE%,), | %liveset%))
[' ('$if(%BROADCAST DATE%,%BROADCAST DATE%,%date%)')']$crlf()]
$crlf()
$if(%play_count%,Played %play_count% times,Not Played)


There is probably something really simple that I'm missing but I can't seem to get it to work.

Text Display (foo_textdisplay)

Reply #172
Hi,

this should work:

Quote
$if2(%track%,) <<<[%artist%]>>> - $if2(%title%,)$crlf()


Greets

Text Display (foo_textdisplay)

Reply #173
This is a known limitation of the current version of the plugin. The highlighting only works if you apply it to the entire line, e.g.
Code: [Select]
<<<[%track%] [%artist%] [%title%]>>>$crlf()
// The rest of your code follows here.

Text Display (foo_textdisplay)

Reply #174
Thanks for the reply foosion. Wasn't aware of that particular limitation. Nevertheless using the code provided results in the following: