Easy Na'vi Lessons Blog

Started by Tirea Aean, October 26, 2012, 08:27:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tirea Aean

I have added Tìtstewan as a collaborator to my repository.

You should be able to push to my repo now.

Tìtstewan

Irayo for adding me! :)

After tons of testing to convince the program to add the new materials on GitHub, I just successfully added the new stuff to your respository (https://github.com/tirea/tirea-learnnavi-org/ -> new folder final-Tirea-Navi-amip).

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

Quote from: Tìtstewan on June 22, 2015, 01:22:32 PM
Irayo for adding me! :)

After tons of testing to convince the program to add the new materials on GitHub, I just successfully added the new stuff to your respository (https://github.com/tirea/tirea-learnnavi-org/ -> new folder final-Tirea-Navi-amip).

Cool! We can work with that.

Tirea Aean

The experimental copies of the website as seen on GitHub ( https://github.com/tirea/tirea-learnnavi-org/ ) are now live here:

http://tirea.learnnavi.org/tirea-learnnavi-org/

and

http://tirea.learnnavi.org/tirea-learnnavi-org/final-Tirea-Navi-amip/

As Git commits come in, I'll pull them and we can see how it looks in live production on the server. :)

Tìtstewan

Cool! :D You can delete the code for the button plus their CSS if you want, just to reduce the amount of code. :)

-  padding: 22px;
+  padding: 50px;

huh? I thought, I already changed it? ???
EDIT: Nevermind, after the button is gone, it have to be again 50px.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tìtstewan

Ma Tirea,
I have removed the unnecessary CSS code for the nume-ko-button as it isn't in use anymore.
Plus, I have fixed the Teylu image of the lesson 2. ;D

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

Quote from: Tìtstewan on June 27, 2015, 04:43:32 PM
Ma Tirea,
I have removed the unnecessary CSS code for the nume-ko-button as it isn't in use anymore.
Plus, I have fixed the Teylu image of the lesson 2. ;D

Tsari irayo!

Yay for GitHub. I'll pull the code to the server now. :)

EDIT: Looks good! :D Irayo

Tìtstewan


I think, I have fixed that by a new solution. I hope it looks well now. Please, let me know if I broke anything. :S

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

Seems to function now, with different more horizontal style.

Tìtstewan

I guess, this was the best solution for mobile devices to give it a more horizontal style. I should play with the CSS to optimize it...

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tìtstewan

Yeah, ma smuk, just see what Tirea and I did:
old gallery link?id=6458[/img]
The lesson blog in desktop and mobile device look :)
http://tirea.learnnavi.org/tirea-learnnavi-org/final-Tirea-Navi-amip/index.php
Testing and feedback would be very cool! :)

Btw, there is also planned to add a custom comment function to each lesson page without the use of third-party stuff like facebook, Disqus and co. ;)

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Vawmataw

#91
Txantsan! Frawzo.
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Toliman

Ah, it's really GREAT  :D
Excellent work!

Wllìm

#93
Tested with Firefox on Android, no bugs found. Excellent work, it looks really nice! :D

Edit: Also tested with Firefox on Linux, also no bugs found.

Vawmataw

Quote from: Wllìm on July 07, 2015, 11:47:22 AM
Tested with Firefox on Android, no bugs found. Excellent work, it looks really nice! :D
Tested with Chrome and Internet Explorer on Windows 8. Frawzo, seysonìltsan!
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Tìtstewan

Seiyi irayo, ma smuk! :D

Here is a little test of a future comment function:
old gallery link?id=6459[/img]

php and MySQL is weird, and funny, HRH.png ;D

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Wllìm

Quote from: Tìtstewan on July 07, 2015, 12:17:32 PM
php and MySQL is weird, and funny, HRH.png ;D

HRH that we can just write HRH.png and everyone knows what image it is supposed to be ;D

The comment list looks nice! How did you make it; did you use a library of some sorts, or did you write the comment function yourself? :)
Because I'm a computer science student I have to ask: did you guard against SQL injection attacks?

Tìtstewan

I wrote it... And I used html and stuff.

Code I used to get that screenshot above:
Code (php) Select
<?php

define 
'MYSQL_HOST''localhost' );
define 'MYSQL_USER''root' );
define 'MYSQL_PASS''' );
define 'MYSQL_DATA''commentfunction' );

$db_link = @mysql_connect (MYSQL_HOSTMYSQL_USERMYSQL_PASS);

if ( ! 
$db_link ) {
    die(
'Failed to etablish connection to the database. Check it out later!');
  }

$db_sel mysql_select_dbMYSQL_DATA )
  or die(
'Unable to select database.');

$sql " SELECT * FROM comments ORDER BY date ";

$db_erg mysql_query$sql );
  if ( ! 
$db_erg ) {
  die(
'Invalid query: ' mysql_error()); }


// testing here
    
echo "<div class=\"comments\">";

$entries mysql_num_rows($db_erg);
    echo 
"<p><b>Comments: $entries </b></p>";

while (
$data mysql_fetch_array$db_ergMYSQL_ASSOC))
{
   
// echo "<b>ID:</b> ";
    
echo $data['id'];
   
// echo "<br />";
 
    
echo " <b>Name:</b> ";
    echo 
$data['name'] ;
   
// echo "<br />";
 
   // echo "Email: ";
   // echo $data['email'];
   // echo "<br />";
 
   // echo "URL: ";
   // echo $data['url'];
   // echo "<br />";
 
    
echo " <b>Date:</b> ";
    echo 
$data['date'];
    echo 
"<br />";
 
    echo 
"<div class=\"ayliu\"><b>Comment:</b><br />";
    echo 
$data['comment'];
    echo 
"</div>";
}
    echo 
"</div>";

mysql_free_result$db_erg );
?>


Tirea edited the "post new comment module" and it should be imune against SQL injection attacks, because:
Code (php) Select
function test_input($data) {
  $data = trim($data);
  $data = stripslashes($data);
  $data = htmlspecialchars($data);
  return $data;
}

is added.

Here are the files on GitHub:
https://github.com/Titstewan/php-blog-comment-script
(but there isn't the comment render modul I used for testing.)

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

Quote from: Wllìm on July 07, 2015, 03:37:44 PM
Because I'm a computer science student [...]

Txantsan! I am too :D This project is on GitHub (as previously mentioned). How would you like to join us? Especially if your PHP knowledge is good. (I know mostly only basics) All I'll need is your GitHub account.

Then, if you notice a hole in our security, you can easily commit a fix.

I like how this lessons blog is becoming more community-oriented. :D

Tìtstewan

LOL, I did a quite good job for that I am not a computer science student (I never got the chance to studied that :(). ;D


Quote from: Tirea Aean on July 09, 2015, 02:54:58 PM
I like how this lessons blog is becoming more community-oriented. :D
Oeri nìteng. :D

Hey Tirea, I got an total weird idea regarding login and post stuff. but I have to play a bit first.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-