View Single Post
Old 06-25-2021, 12:47 AM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I am fairly sure you don't want "template" there. What you probably want to do is a "strcat". So:

Code:
strcat(format_number(re_group($#kobobookmark, '.*\/file(\d+).*'),'{0:,d}'),'/',$$#chaptercount)
For the other part, you could do something like:

Code:
current_chapter = 0;
if contains($#kobo_reading_location, 'File','1','0') then
    current_chapter = re_group($#kobobookmark, '.*\/file(\d+).*')
fi;
strcat(format_number(current_chapter,'{0:,d}'),'/',$$#chaptercount);
That should replace the line with the template in it.
davidfor is offline   Reply With Quote