Forum 'Edit' dodgy about emoticons - About xda-developers.com

Just as quick one - gotta do some shopping, but...
If you Edit a post that has emoticons ( ) in them, and save, it will complain if there are more than 4 - apparently due to an inline image limit. The piece of code that checks this should, obviously, ignore emoticons
Cheers

Related

Posting images

As some of you may have noticed, attaching large images breaks the phpBB layout.
[DSC00580.JPG left]There is a way to make the "phpBB attachment MOD" do thumbnails, but I didn't like the way attachments get all their meta-info displayed. Nice for zip files and the like, not for images. They should be a natural part of the layout.
Luckily I had some code lying around I wrote for the school website I built a while ago. At that site we use phpBB as a sort of content management system, and the code allows for some flexibility when attaching images.
From now on, if you attach an image, you can give it a place in your message by enclosing the name in square brackets anywhere. So if you attach an image called 'DSC000237.jpg' then if you put '[dsc000237.jpg]' in the text, this gets replaced with the image. (The name is not case sensitive). The image will be resized if it is wider than 500 pixels, clickable for those that want to see the original image. Unless you put 'noframe' after it (i.e. '[dsc000237.jpg noframe]' ), the image will be placed inside a narrow white frame that also holds the attachment description.
[DSC00579.JPG]
If you say '[dsc000237.jpg left]' or '[dsc000237.jpg right]', the image will be inserted to the left or the right of the text flow, and resized to be 200 pixels wide. Again, you can add 'noframe' after the left or right to make the frame disappear.
Any images not mentioned in the text get shown at the bottom of the message, two side by side.
I've added a few pictures with this message so you get the idea. For the curious: it's a school in Eastern Germany, redesigned by Friendensreich Hundertwasser.
Peter Poelman said:
I've added a few pictures with this message so you get the idea. For the curious: it's a school in Eastern Germany, redesigned by Friendensreich Hundertwasser.
Click to expand...
Click to collapse
Oh, are you from Wien?
his flag leads one to believe that he's dutch
a picture is worth 1024 WORD's
or 512 DWORD's if you pref
Rudegar said:
his flag leads one to believe that he's dutch
a picture is worth 1024 WORD's
or 512 DWORD's if you pref
Click to expand...
Click to collapse
It's a Hundertwasser house that's why ...
How many posts do have to have to post an image?

TextBox with Header

This is exactly what I like to have:
http://msdn.microsoft.com/en-us/library/hh202916(v=vs.92).aspx
Since there exists no standard control I have written one by myself but I didn't get DataBinding to work (even when using correct implementation of DependencyProperty)
Got 25 votes for:
http://wpdev.uservoice.com/forums/1...474043-add-header-property-to-textbox-control
Simple
I think for that screenshot on the MSDN page you give they did what I also did without thinking twice in my own apps: Place TextBlock controls immediately before the TextBox controls.
Indeed, I found the approach of some controls with built-in header text property annoying because they waste a line of space even if you don't need a text.
And where would you stop with your new header property because sometimes you need text in front of a text box, but sometimes below, or in front and in the back at the same time, etc. (Yes, that does not happen with trivial, 3 textbox screens, but drive up the number of features in your program and it will probably happen.)
Don't agree. A HeaderMode enum should do the trick. I don't want do reinvent the wheel each time I need a simple TextBox After a year implementing WP apps I still see advantages of a TextBoxWithHeader control.
Sent from my RM-821_eu_euro2_530 using XDA Windows Phone App

MyState Beta Testing

Introduction
Android Version:
ICS+ (4.0.3+)​App Name:
MyState (as in Status) - I haven't really decided whether it should be "MyState Messaging", "MyState Status Messaging", "MyState Status Sharing". Maybe you have a a suggestion?!​Synopsis:
MyState provides a free 140 character messaging / broadcast service.
The app is an invite only private messaging system that allows you to broadcast single/group messages to friends (followers). The system doesn't actually need followers to be of use, and can perform as a diary, allowing you to leave messages along with emotional feedback.
The system is ideal for messaging 1-0, 1-1 or 1-many people. 1-0 would be you leaving messages for yourself. 1-1 would be you and a friend, and 1-many would be considered a broadcast.
You can only be sure of who you follow, all people that follow you are anonymous to you. What this means is that you should only share your invitaion to people you want following you. That said you can revoke your invitations at any time, stopping followers from getting your updates.
You can use the system not only as a messaging service but also to let others know what your current status is, be that you may be offline, don't want to talk or away for example.
MyState is an easy to use and dare I say it, fun way to communicate with people you really want to connect with.​Market:
Probably early teen to mid 20's but I'm no marketeer. It may be fun for the whole family for all I know!​
Click to expand...
Click to collapse
Functionality
10 main areas (Below is a sort of site map/app map, whatever!):​
Welcome page/profile
Manage profile avatar (long press avatar)
add/update avatar (touch context menu add icon)
Remove avatar (touch context menu trash icon)
Set Status (touch emoticon)
Drag finger around seekbar to change mood, touch emoticon to set mood
Set an alternate nickname (this is a name friends can see, may be friendlier than just a username, set at your own discretion) (long press username)
Emoticon Manager (long press emoticon)
Allows you to choose up to 9 emoticons. Scroll emoticons to select your favourite 9 emotions. (Best viewed in landscape)
Pick (Button)
Allows you to select single/multiple emoticon sets depending on what you like (touch row to select, accept chosen emoticon set by touching tick in context menu)
Mix (Button) Just a bit of fun!
Advanced/simple (Button)
Clicking button switches to the specified mode.
Simple, (default) puts emoticon in order of low frequency moods to high frequency moods (e.g. sad -> happy)
Advanced, puts chosen emoticon sets in all slots and you can choose what you want (e.g. all slots could be happy (not sure why but they could!))
Invites (Followers) (Friends/peeps following you) (Button) (touch button/swipe left to right from welcome/profile page)
Allows you to manage anonymous followers
Invite (Create a group invitation that peeps can follow) (touch the invitation icon in menu)
Add a reference, this is to help remind you who you are inviting (e.g. girlfriend, boyfriend, Bob, Alice, facebook, friends, etc)
Choose an invites expiration (after it expires no one else can follow you on it, however all current followers will be fine)
Invitations are made up of a number (on left) which defines the number of followers, your reference and a shareable invite code.
Remove invitations (this will stop followers from getting your updates) (long press an invitation)
Share an invitation (bluetooth/facebook/gmail/google+,etc) (long press an invitation)
Swipe left to right/right to left to move to adjacent activities
Peeps (Following) (Friends you are following) (Button) (touch button)
Allows you to manage peeps you are following (friends,collegues,etc)
Follow a friend (enter a valid invite code) (touch the follow icon in menu)
Remove a friend (they will be informed) (long press avatar)
Drag/drop friends in grid (long press emoticon)
Swipe left to right/right to left to move to adjacent activities
Status Messages (Button) (touch button/swipe right to left from welcome/profile page)
Allows you to manage messages
Post a new message (touch the message icon in menu)
Dialog appears. Enter a message (up to 140 chars) and choose your mood. (touch emoticon to post message) (long press emoticon to enter emoticon manager)
If you have more than 2 invitations on the go then you will see another area that allows you to send/broadcast messages to these seperate groups (invitations) if you wish
Remove messages (messages are removed from all your devices and follower devices)(long press)
Repost messages (long press message and touch the repost icon in context menu)
If you are following a friend then a "friend filter" will appear at the bottom of messages (touch friend button to show their messages)
Swipe left to right/right to left to move to adjacent activities
Sign up (Button)
Allows you to sign up/register for an account
Sign in/Switch (Button)
Allows you to sign in to the app
Update password
Request sign in details and have them sent to your registered email
Sign out (Button)
Just signs you out
Settings (icon in menu)
Peruse the apps settings - should be self explanatory
Widget
Allows you to add yourself/peeps to your homescreen in 2 sizes (1x1, 2x2)
Click to expand...
Click to collapse
FAQ
-- Nothing so far
Click to expand...
Click to collapse
Testing
Please test any or all of the features.
If you own multiple devices please add the app to each device and make sure all data syncs correctly.
The app allows multiple accounts in case a tablet or phone has multiple users.
Any funniness let me know
Click to expand...
Click to collapse
Devices
I would like to test as many devices as possible. Any trouble let me know.​
Click to expand...
Click to collapse
Feedback
Just state the areas above which you have trouble with. Give whatever feedback you feel is necessary. Extra functionality needed, areas of concern, bits that don't feel right etc.​
Click to expand...
Click to collapse
Final Words
My Request to you
This app is designed primarily to be used with multiple users. So by all means share your invite codes here with fellow testers, or better still on the google+ community page (see below). And with real friends perhaps!
Your Data
The online database that stores all data (some of which is personal e.g. email addresses) will be truncated/deleted at the end of the beta.
Your data is safe and will not be shared/sold or divulged to anyone else except myself. I also have no interest in your data so please feel assured that nothing nafarious will happen with any data submitted.
Thank you for reading this far and any help you can give to this beta test will help me a great deal.
Click to expand...
Click to collapse
Download
MyState Google+ Community
XDA beta testing Google+ Community
Click to expand...
Click to collapse

[Q] String manipulation

Is there any possibility to display only the X characters from a string?
Like the LEFT$ function in Basic for example.
I'm trying to fit a certain string in a box (see image below).
Thank you,
Tikl
I found it!
You have to use a rich text module (I was using only text) and the [tr] BB code will format the text as you will.
It even adds '...' at the end of a trimmed text!
Tikl

[Q] Tasker to Change Font Color & Size for Missed Calls or New Messages?

I'm trying to use tasker to alter the font for some items. I have a popup widget that has email, gmail, sms, phone,etc. on it that I want to change font color and become bold when I have a missed call or new message. I've set up tasks and profiles for sms, and gmail so they will change color. I cannot seem to get them to become bold though. They are made as Rich Text if that matters. I can't figure out how to write the parameter where the [c][/c] and take effect together. Can somebody tell me how to write the advanced parameter to get this to work?
Also, I can't seem to figure out the code to use for email or phone. I've tried %COUNTEMAIL, %COUNTMSG, %MISSEDCALL but they don't seem to work. This is the tutorial I used for this: https://seo-michael.co.uk/change-text-colour-in-zooper-widget-with-tasker (sorry can't post a link yet). Can I make this work with the Email App and the Phone?
Thanks!
From what I've read you are trying to display a count rather than the actual text/phonecall details? In which case you would be better off using Zooper's built in variables #SMCALLS# for missed calls and so on. To change the colour of the font in rich text format you can use a conditional like this:
[c=$#SMCALLS#>0?#ffff0000:#ff00ff00$]#SMCALLS#[/c]
This will display missed call count in red when you have missed calls and green when you don't.
Then to change to bold for missed calls as well you can wrap the above in a conditional like this:
HTML:
$#SMCALLS#>0?[b]$[c=$#SMCALLS#>0?#ffff0000:#ff00ff00$]#SMCALLS#[/c]$#SMCALLS#>0?[/b]$
Hope this helps.
ps Sorry about the HTML tags but I don't know how to stop it from rendering the bold tags in the code instead of displaying them
Thanks. Are there built in variables for gmail, email, and sms? I'm trying that code but it doesn't seem to do anything on my phone...
Yes there are functions for sms , gmail etc. You can find them under the system heading when you enter your text.
The code I wrote should work fine. Are you entering it in the advanced parameters screen of the manual text edit screen?
I used the manual screen when I wrote it. When you enter it does nothing happen at all? Or only part of what you want?
Torgadden said:
Yes there are functions for sms , gmail etc. You can find them under the system heading when you enter your text.
The code I wrote should work fine. Are you entering it in the advanced parameters screen of the manual text edit screen?
I used the manual screen when I wrote it. When you enter it does nothing happen at all? Or only part of what you want?
Click to expand...
Click to collapse
I'm putting it into the advanced parameters because the manual text area is what is labeling the shortcut I have. It doesn't nothing when I enter it. I've written it, copy and pasted from the site, and still nothing. I can modify it and get the color I want to change but it will not turn bold.
I think that it needs to be written in the text area because the bold tags will need to go round your text in the same way they do if you use the bold function when writing a post here.
Torgadden said:
I think that it needs to be written in the text area because the bold tags will need to go round your text in the same way they do if you use the bold function when writing a post here.
Click to expand...
Click to collapse
Hmm ok. How do I write the paramater and still keep the text I have then? So for example, I have one line that says "gmail". Clicking the word opens gmail and when I have a new email it changes from white to green based on the #COUNTGMAIL task I have in Tasker. How do I write in the code in the manual field to keep the "gmail" and still make it change? I'll be playing with this shortly when I get a chance.
You can mix text in with your functions so if you just want the word Gmail displayed and for that word to change colour and bold when you have unread mail you would lay it out like this:
HTML:
$#SUG#>0?[b]$[c=$#SUG#>0?#ff00ff00:#ffffffff$]Gmail[/c]$#SUG#>0?[/b]$
So going through it one step at a time, the first conditional (between $ $) if unread gmail count is greater than 0 then write the open bold tag.
Then open the colour tag, if unread gmail count is greater than 0 then set font colour to green, otherwise colour is set to white.
Next the text you want to display is written, "Gmail" in this case but you could add other zooper variables or text if you needed.
Close the colour tag.
Finally the last conditional writes the close bold tag in the same way as for the first conditional.
Zooper will then render the text code as you needed it.
Hope this helps
Torgadden said:
You can mix text in with your functions so if you just want the word Gmail displayed and for that word to change colour and bold when you have unread mail you would lay it out like this:
HTML:
$#SUG#>0?[b]$[c=$#SUG#>0?#ff00ff00:#ffffffff$]Gmail[/c]$#SUG#>0?[/b]$
So going through it one step at a time, the first conditional (between $ $) if unread gmail count is greater than 0 then write the open bold tag.
Then open the colour tag, if unread gmail count is greater than 0 then set font colour to green, otherwise colour is set to white.
Next the text you want to display is written, "Gmail" in this case but you could add other zooper variables or text if you needed.
Close the colour tag.
Finally the last conditional writes the close bold tag in the same way as for the first conditional.
Zooper will then render the text code as you needed it.
Hope this helps
Click to expand...
Click to collapse
Thank you. That code works perfectly. If only I could get the zooper widget to update quicker.
So my next question is, do you have the parameter code for regular email? I know the #SUG# is gmail but I don't have the code for email, or phone, or sms. I think those are the only ones I need to do this. Although I would like to have the "music" line change color when poweramp is running....
If you go to edit text you will see the list of available fields. SMS counts, etc are under system. Looking at them I could have sworn that there was a regular email count but I can't see it now, you should be able to capture that in Tasked and pass it to zooper as a variable though.
As for the media, use Media Utilities to get the player state. It gives you a whole set of variables which will let you work with media states in Zooper

Categories

Resources