Current location: Hot Scripts Forums » General Community » Script Requests » "simple" News system


"simple" News system

Reply
  #1 (permalink)  
Old 12-29-07, 08:38 PM
Alex.css's Avatar
Alex.css Alex.css is offline
Newbie Coder
 
Join Date: Nov 2007
Location: Canada
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
"simple" News system

Hi everybody !
I code a little bit in PHP but I'm still unable to do something with the MySQL database.

And this time, the PHP code I would ask is news system, not ordinary.

I have a website and it will be translated in french soon. What I need is news system like:

[French Title] (the text field)
[French News] (textarea field where the news will be written)

HR

[English Title] (the text field)
[English News] (textarea field where the newser will translate the news)

...

After, the data selection with the $_GET method.

Example the url: mysite.com/index.php?lang=EN

will take only english news

and the url: mysite.com/index.php?lang=FR

will give only the french news.

so... in script, it gives something like this without PHP:
HTML Code:
<!-- news_new.php -->
<form action="news_send.php"method="POST">
<label for="title_en">News's Title</label>
<input type="text"maxlength="255"id="title_en"name="title_en" />
<label for="news_content_en">News Content :</label><br />
<textarea cols="15"rows="25"name="news_content_en"id="news_content_en">Enter your news here</textarea>

<hr>

<label for="title_fr">Titre News</label> <!-- Don't worry, it's translated in french ^^ --><input type="text"maxlength="255"id="title_fr"name="title_fr" />
<br />
<label for="news_content_fr">Contenu de la news :</label><br />
<textarea cols="15"rows="25"name="news_content_fr"id="news_content_fr"></textarea>


<input type="submit"value="Send" /><input type="reset"value="Reset" />
</form>
And finally, the PHP code wich will send the "news":
PHP Code:

<?php

if($_GET['lang'] == "EN")
{
  
// This is the english news
}
elseif(
$_GET['lang'] == "FR")
{
// This is the french news
}
else
{
?>
<script type="text/javascript">
document.location.href=select_lang.php
</script>
<?php
}
// end of the main page example
?>
Fiou. If you understood what I meaned , please could you help me if you are able, of course^^ .

Thanks in advance.

Alex.css
__________________
Alex.css
.:ImperialBB's French Translator:.
Even us aren't able to save ourselves - Anonymous, Japan
Reply With Quote
  #2 (permalink)  
Old 12-29-07, 08:59 PM
staticfire's Avatar
staticfire staticfire is offline
Wannabe Coder
 
Join Date: May 2007
Location: Stockton, England
Posts: 223
Thanks: 0
Thanked 1 Time in 1 Post
I am slightly confused.. are you wanting a system which translates english to french?
__________________
Visit http://www.staticfire.co.uk
Reply With Quote
  #3 (permalink)  
Old 12-29-07, 10:05 PM
Alex.css's Avatar
Alex.css Alex.css is offline
Newbie Coder
 
Join Date: Nov 2007
Location: Canada
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
No no.
It would be too hard and impossible.

The newser who will make the news will translate manually the news in the other field.
Ex:
English Content field: The newser enter the news, in english

French Content Field: the newser translate the news in french by himself.

If he don't translate, it's not very important, the news won't be shown in this language.

Sorry if it's hard to understand, I'm very bad to explain ^^
__________________
Alex.css
.:ImperialBB's French Translator:.
Even us aren't able to save ourselves - Anonymous, Japan
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommend an excellent ASP program gives everyone:Webmaster club news system v5.09 we12we23 ASP 0 11-09-06 04:40 AM
Images system just like a news system modji Script Requests 0 01-02-06 08:12 PM
Simple News System? (which supports RSS) DannyK Script Requests 0 08-14-05 06:11 PM
News system with MySQL webdiary Script Requests 6 07-25-04 01:39 PM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 06:02 AM


All times are GMT -5. The time now is 09:14 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.