maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Customize N900 Conversations (https://talk.maemo.org/showthread.php?t=36618)

5spdvl 2011-03-03 15:04

Re: Customize N900 Conversations
 
Quote:

Originally Posted by b666m (Post 502404)
the css file :)
(just look a few pages back - there is the discussion about this topic ^^)



yep.
just edit the .js-file.

Code:

if (item.name_str != "") {
        name_tag.textContent = item.name_str;
    }

to
Code:

if (item.name_str != "") {
        name_tag.textContent = item.name_str;
    }

if (item.name_str != "" && item.self) {
        name_tag.textContent = "b666m";
    }

(replace b666m for your desired nick ^^)
haven't tested it but it should work :)

This worked great to remove the "You:" by replacing it with just "", but how do you remove the sender's name from the message bubble?

Perhaps:

if (item.name_str != "") {
name_tag.textContent = item.name_str;
}

if (item.name_str != "" && item.Other) {
name_tag.textContent = "";

Or maybe sender?

iscio 2011-03-03 15:46

Re: Customize N900 Conversations
 
so is it possibile to change "You" in "My name"???

niqbal 2011-03-03 16:52

Re: Customize N900 Conversations
 
Quote:

Originally Posted by 5spdvl (Post 959727)
This worked great to remove the "You:" by replacing it with just "", but how do you remove the sender's name from the message bubble?

Perhaps:

if (item.name_str != "") {
name_tag.textContent = item.name_str;
}

if (item.name_str != "" && item.Other) {
name_tag.textContent = "";

Or maybe sender?

if you want to remove sender's name, just put an empty string

Code:

if (item.name_str != "") {
  var name = item.name_str;
  name = "";
  name_tag.textContent = name;
}

if you want to remove both names, thats simple. at the end of this message function, add

Code:

name_tag.textContent = "";

niqbal 2011-03-03 20:11

Re: Customize N900 Conversations
 
2 Attachment(s)
Re-uploading Iphone influenced SMS window

basically worked on the side arrows to make them look better and have a better speech bubble feel to it.
  • only first name of sender is shown
  • width of bubble is dependent on the message
  • even gap between messages

i don't own an iphone. if someone can kindly experiment with better green and gray shades. thx

godofwar424 2011-03-03 22:12

Re: Customize N900 Conversations
 
I have updated my previous theme with some bug fixes and also some other options!

Check the updates here :)


Please check it out and let me know what you think :)

I have updated the wiki for this theme.

I am aware of the bug where it doesn't scroll to the bottom after sending a message, but I am not sure how to solve this issue. If someone tells me how to I will implement it into my themes :)

5spdvl 2011-03-04 00:03

Re: Customize N900 Conversations
 
So:

if (item.name_str != "") {
var name = item.name_str;
name = "";
name_tag.textContent = name;
name_tag.textContent = "";
}

...as the entire function to remove both names?

Edit: works nicely, thanks mate. :cool:

thej80 2011-03-04 06:22

Re: Customize N900 Conversations
 
Quote:

Originally Posted by niqbal (Post 959936)
Re-uploading Iphone influenced SMS window

basically worked on the side arrows to make them look better and have a better speech bubble feel to it.
  • your own name is omitted
  • only first name of sender is shown
  • width of bubble is dependent on the message
  • alternate gap is given between messages

i don't own an iphone. if someone can kindly experiment with better green and gray shades. thx

hi, for me this theme shows the last name of the sender, maybe because i have addressbook set to show last name first?

edit. yes it is because of the addressbook setting to show last name first.

what file do i have to edit to get the backround black? i know this is an iphone style conversation mod, but i still prefer a darker backround to fit for the rest of ui.

thanks for the mods :)

niqbal 2011-03-04 06:31

Re: Customize N900 Conversations
 
Quote:

Originally Posted by thej80 (Post 960265)
hi, for me this theme shows the last name of the sender, maybe because i have addressbook set to show last name first?

what file do i have to edit to get the backround black? i know this is an iphone style conversation mod, but i still prefer a darker backround to fit for the rest of ui.

thanks for the mods :)

edit .html file.

Code:

<html>
<head>
<body bgcolor="#F0F0F0"

change that value to "black", thats it

iscio 2011-03-04 08:01

Re: Customize N900 Conversations
 
Quote:

Originally Posted by godofwar424 (Post 960044)
I have updated my previous theme with some bug fixes and also some other options!

Check the updates here :)


Please check it out and let me know what you think :)

I have updated the wiki for this theme.

I am aware of the bug where it doesn't scroll to the bottom after sending a message, but I am not sure how to solve this issue. If someone tells me how to I will implement it into my themes :)



wow, good work...is it possible to you adjust also the theme that I use? post #831

ejasmudar 2011-03-04 08:30

Re: Customize N900 Conversations
 
I have started a thread for the scripts that i have been working on:http://talk.maemo.org/showthread.php?p=960308

Right now it can install themes, restore/backup themes, add portrait mode support (not guaranteed for custom themes) and change own name in SMS window.

I am also planning to add features for changing the colours, etc


All times are GMT. The time now is 01:29.

vBulletin® Version 3.8.8