Join us on Discord!
You can help CodeWalrus stay online by donating here.

[Android] CodeWalrus Post Notifier

Started by Snektron, April 16, 2015, 01:34:08 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

novenary

Exactly what Eiyeron said. The threads are friggin linked lists but it still manages to generate the page fast enough.

Snektron

Ah okay, thanks. Then i will just keep it this way :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Yep, basically the posts are ordered by ID in the db. THey are just associated to specific topics and have a timestamp on them. You should not have any issue, although listing topics from the most recently posted on to the oldest can take a bit more processing power (although it's not that bad if you just try to fetch topics that had the last 200 posts in or so).
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

#48
For now i just use something where id > id_msg with a limit of 10 sorted ascending.

Anyway i've been working on it for the last few days. I now have a fancy loading animation implemented, and a basic bbcode parser.
It supports most tags like bold, italic, underline, strike, align (though not really tested), links (clickable), code (which is just a <blockquote >), quote, tt, sub, sup, color, font size, youtube links become plain links etc. I'm still working on the images. Though some tags like tables and list are not going to be supported since i use Html.fromHtml which has a very limited tag set. though it's possible to add tags, but i'll have to get more familiar with the "Spanned" class. I also want to implement smileys (with a :3= ofcourse). Is there a full list of all the smileys somewhere? Also are these copyrighted (probably not) since i think i'm going to pre-download them and put it in the projects assets to save on downloads / cache?

EDIT: it looks like the <blockquote > (without the space) tag messes with the forum layout. The staff might want to look at this since maybe more tags work and this can lead to some exploits
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

#49
Awesome. Now that you mention tag support, we plan to use an [hide] tag at one point so it might be wise to consider supporting it in the future if we ever add it. Ideally, though, for notifications that appears in Android status bar, you should make the text so that it's stripped from all its bbcode/formating, so it won't look weird.

As for the smileys, although they are from various forums I ran, they are mostly based on PhpBB/Invisionboard/SMF or are literally from those softwares, so I'm unsure if using them in a downloadable app would be a good idea. There is no list sadly.

Also by <blockquote >  do you mean the quote bbcode tag? @Streetwalrus and @Juju might want to look into this, but it could be a SMF bug. EDIT: Nvm I see what you mean O.O

EDIT: Actually it seems like a forum feature that we have enabled:

QuoteThis will allow the posting of some basic HTML tags:
<b>, <u>, <i>, <s>, <em>, <ins>, <del>
<a href="">
<img src="" alt="" />
<br />, <hr />
<pre>, <blockquote>


Close window

We could disable it but I think this will prevent admins from using any HTML on the forums.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

I might just send a push notification like "post on topic Re: the game" or something. Also the smileys are in walrusirc too as files, so i think i should be okay with downloading them. It go see if there's something on that.

Also i have been working on image support lately. Gif support is a real bitch <_<. I found some piece of code online that's supposed to be able to decode gifs but it doesn't seem to work. I probably have to make my own thing for it <_<
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DarkestEx

Quote from: Cumred_Snektron on May 18, 2015, 06:25:03 AM
I might just send a push notification like "post on topic Re: the game" or something. Also the smileys are in walrusirc too as files, so i think i should be okay with downloading them. It go see if there's something on that.

Also i have been working on image support lately. Gif support is a real bitch <_<. I found some piece of code online that's supposed to be able to decode gifs but it doesn't seem to work. I probably have to make my own thing for it <_<
Cumred, there are publicly available, free and even commercially usable smiley packs. So why don't you use such?
Or use these (they're BSD licenced): http://dl.muessigb.net/Images/smileys.zip
  • Calculators owned: TI-84+, Casio 101-S, RPN-Calc, Hewlett-Packard 100LX, Hewlett-Packard 95LX
  • Consoles, mobile devices and vintage computers owned: Original Commodore 64C, C64 DTV, Nintendo GameBoy Color, Nintendo GameCube, Xbox 360, PlayStation 2

Unicorn

Man push notifiers, smileis and maybe evn postingfrom the app?
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Snektron

#53
I won't do posting, because i don't trust myself with accounts :P (i'm bound to screw something up, though there probably is a phppass android thing)

Also i might drop GIF support for now since it doesn't really work :(. I will try to add it after the school project part is done :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


alexgt

Yeah those darn projects <_< I have one myself but is is not nearly as big as yours O.O
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Unicorn

Yeah, I just finished mine, but its like a mosquito compared to a dragon. o.O

Oh yeah,that would involve giving you my password.... hmm. not the best idea.
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Snektron

Well this project is not that big :P Its the final project for our computer science class in school, so yeah :)
The PWS though O.O
\
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Quote from: Cumred_Snektron on May 18, 2015, 06:23:06 PM
I won't do posting, because i don't trust myself with accounts :P (i'm bound to screw something up, though there probably is a phppass android thing)

Also i might drop GIF support for now since it doesn't really work :(. I will try to add it after the school project part is done :)
I think that just as long as we can be notified when there are new posts and that the app easily allows you to open the browser to access the post on the website then it should be enough to be good. :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

I've added a Side Drawer and a menu bar :) Though i don't know what colors i should go for on the menu bar... i mean i could do the green again but everything is already green :P. Anyway i still need an image placeholder for when they're loading. Anyone want to help me out? :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Maybe have it like the navigation bar on CW website? For a placeholder you could just use one of the following:



  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal