Page 2 of 3

Posted: Fri Jul 13, 2007 5:56 am
by themasterofthedisaster
Well, it desn´t matter if this doesn´t use FCK editor, what I wan is to have a text editor with fuctions like BOLD ; UNDERLINED; CURSIVE; Select Arial or other font; And a save button, thats all what I realy need. ¡IMAGES DON´T NEEDED! That´s all. Or only a simple text box, where the adim can write like here in a forum. Something like this post editor in this forum and instead of a Submit button a Save it! button., whichout any advanced features. Somebody is able to do that??

Posted: Sat Jul 14, 2007 11:52 am
by themasterofthedisaster
SOMEBODY CAN HELP OR NOT?

Re: The Theorie

Posted: Sat Jul 14, 2007 11:59 am
by Benjamin
undecided name 02 wrote:I hope somebody can program this for me, I don´t know nothing about PHP so I will be grateful if somebody could help me.
That's not really what we do. When you start trying things and get stuck, post your code; that is when we can help you.

Posted: Sat Jul 14, 2007 12:09 pm
by themasterofthedisaster
But I don´t know nothing about PHP so if somebody find time maybe he/she can help me to do this.

Posted: Sat Jul 14, 2007 2:36 pm
by superdezign
undecided name 02 wrote:But I don´t know nothing about PHP so if somebody find time maybe he/she can help me to do this.
Well, if you find money, someone's bound to find time.

Posted: Sat Jul 14, 2007 4:09 pm
by onion2k
undecided name 02 wrote:SOMEBODY CAN HELP OR NOT?
Please don't write in all caps, and please don't bump your thread. If someone wishes to volunteer to help you then they will. Pushing your thread to the top just annoys people.

If noone volunteers then I suggest you consider recruiting someone to help you for a fee. Why not post in the Work forum to find someone?

Posted: Sun Jul 15, 2007 4:52 pm
by Charles256

Posted: Wed Aug 01, 2007 10:38 pm
by jenovian
Hello, It's been quite a while since I've touched PHP, but as of late I've decided to get back into it, so I'll try my luck with this project and see how far it gets me. One question though... As I'm more of a charitable type, is this for a school as the sample web page design makes it out to be? Or is this for more of a personal run web site. While I could probably put one together though probably without some of the more advanced features... still, one for a school I would be most willing to do, one for personal use, that'd seem like the perfect project to work on to learn PHP - something that I honestly don't think would hurt anyone.

Another small note... if this is for your website, you'd probably find it easier to just use your forums as the posting script.. setup a forum (if you wish, hide it from everyone else's view), post the news in that forum and then have the homepage extract those posts from the database, I believe phpbb has a function or two that'll take the text from the database and render it.

Posted: Thu Aug 02, 2007 6:49 am
by themasterofthedisaster
Well, I´m using PHPbb and it works, now you said it is possible to make work phpbb to work like the idea of this proyect. Are you able to build a "system" (I call it "System" becaus e it nedds to have a correct syntax, etc ... :lol: ) in the way like this image??? :
Image
I will be greateful if you can help me and show me how to build such a "System". Its a School proyect, my school lend me its server to build a miniwebside in it for Students, so Me and some of my friends can write the latest news in the Index webside. Well if it is possible I prefer to build such a "system" before I put there a PHPbb forum. Well if it isnt possible to build such a system I've discribed in this Subforum please say me how to use phpbb in it. Thanks 4 all!

Posted: Thu Aug 02, 2007 9:42 am
by jenovian
ok.... So I threw this together, if you know even a little bit of PHP you should be able to understand how it works...

http://your_url/config.php - change to fit your values...
http://your_url/index.php - views the last five posts.... easy to change to something else..
http://your_url/admin/index.php - will allow you to login, and once logged in, will let you add a post, simply add in your content and click submit..
http://your_url/admin/post.php - actually adds the post...
http://your_url/admin/addadmin.php - allows you to add an admin with a username and password... DON'T leave it on your system or anyone will be able to access it...

VERY basic, and I might just touch up on it and add for viewing/deleting posts in the admin area... in any case, it's not anything big and definitely isn't going to be protected a lot, but most schools nowadays are on an intranet... The main page for viewing the posts isn't pretty, but you said you could handle the design aspect, so I just left some comments in there for where to put everything...

Took an hours worth of work throwing that together, make it look pretty and it's a basic design... to delete posts right now just open up phpmyadmin or something and delete them from the database...

http://www.mediafire.com/?1tmu39sa9kr

Posted: Thu Aug 02, 2007 1:00 pm
by themasterofthedisaster
Wow! Greate Work, pretty thanks for all! This is greate! And thanks for the comments, too. Wow! Maybe when I learn PHP ill help you or other people to do their proyects too. ¡¡¡Greate forum and greate people here!!! THANKS!

Posted: Fri Aug 03, 2007 9:18 am
by themasterofthedisaster
Test:
To test it I´ve used the WAPM server for my PC and this are the results:
Index file works!
Ooops... one more

One last test...

more tests

testing

Stupid test........ a few more!

Well what doesnt work is the addadmin.php. When i write a username and password this what it says:


Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\admin\addadmin.php on line 26

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\admin\addadmin.php on line 26
User added!!!
What can I do???? Thanks

Posted: Fri Aug 03, 2007 9:35 am
by programmingjeff
These kinds of questions should be asked in the PHP - Code forum.

Make sure you are properly connecting to your database. http://us.php.net/mysql_connect

Posted: Fri Aug 03, 2007 10:59 am
by jenovian
Actually, he is referring to an error I made in the script I gave him... sorry about the error.. should work now..

http://www.mediafire.com/?ejmjmxd2tp2

there's already a test admin in there... username - admin password - test

but that file should allow you to add admins..

Posted: Fri Aug 03, 2007 12:12 pm
by themasterofthedisaster
Hmm, well, now it says this when I try to add a new admin:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\admin\addadmin.php:3) in C:\wamp\www\config.php on line 11
User added!!!
And... is it possible to delete a Admin user witch is alredy in the database??? (For example the Admin-Test user)

--------------------------------------------------------------------------------------
And here come the good news!:
Ive tryed the Admin-Test user and it worked, the new text realy apeared, whichout any bugs!. Greate work! Wow, and the smilies apear too!


Thanks 4 all until now!