[56K WARN] Advanced Homepage wit NEWS 2.0
Moderator: General Moderators
-
themasterofthedisaster
- Forum Commoner
- Posts: 31
- Joined: Mon Jul 09, 2007 6:23 am
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??
-
themasterofthedisaster
- Forum Commoner
- Posts: 31
- Joined: Mon Jul 09, 2007 6:23 am
Re: The Theorie
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.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.
-
themasterofthedisaster
- Forum Commoner
- Posts: 31
- Joined: Mon Jul 09, 2007 6:23 am
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
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.undecided name 02 wrote:SOMEBODY CAN HELP OR NOT?
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?
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
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.
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.
-
themasterofthedisaster
- Forum Commoner
- Posts: 31
- Joined: Mon Jul 09, 2007 6:23 am
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 ...
) in the way like this 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!

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!
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
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
-
themasterofthedisaster
- Forum Commoner
- Posts: 31
- Joined: Mon Jul 09, 2007 6:23 am
-
themasterofthedisaster
- Forum Commoner
- Posts: 31
- Joined: Mon Jul 09, 2007 6:23 am
Test:
To test it I´ve used the WAPM server for my PC and this are the results:
Index file works!
Well what doesnt work is the addadmin.php. When i write a username and password this what it says:
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:
What can I do???? Thanks
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!!!
-
programmingjeff
- Forum Commoner
- Posts: 26
- Joined: Fri Jan 05, 2007 10:56 am
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
Make sure you are properly connecting to your database. http://us.php.net/mysql_connect
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..
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..
-
themasterofthedisaster
- Forum Commoner
- Posts: 31
- Joined: Mon Jul 09, 2007 6:23 am
Hmm, well, now it says this when I try to add a new admin:
--------------------------------------------------------------------------------------
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!
And... is it possible to delete a Admin user witch is alredy in the database??? (For example the Admin-Test user)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 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!