|
-
Oct 29th, 2008, 11:40 AM
#1
Thread Starter
New Member
Uber cool site =D
Right, for a little project, im making a little site just to see what i can do.
But im obviously not as smart as i thought it was
Anyway, what i want to do is basically have a main page
which i've designed
http://chris-brown.co.cc
and I'm using a script which is basically account controlled so you can register/login to an account, and have like a home
http://bebotimes.com/i4a/ChrisBrownTHS/test
but now, i want to be able to have sort of a built in code editor to here:
http://bebotimes.com/i4a/ChrisBrownTHS/secure
The password is "opensesame" (without quotes :P)
And i want the page it directs to, to be the code editor, its not the redirect i want done, just the code editor
But when i say code editor, I mean a sorta text field with the source code of the main page, which i can edit, and say i click a button called "save", the changes i've made appear on the main page
lets say on the main page i have an image called "image1.jpg" which is a picture of a car, and then i go to the code editor and edit the code, to be an image called "image2.jpg", which is a picture of a truck, so i click save, and the pciture on the main page becomes a picture of a truck.
Get it? =D
Welli dont think this is amazingly complex to do, but it would be a REALLY cool picture
Also, i will be adding extra pages like contact,about, etc.
and i will be embing the account system init, dunno why, but i will :L
but yeah, i would like someone to help me with the code editor 
thanks!
xx
EDIT: I want it to be exactly like the code editor utility in phpBB3 for editing templates for styles!!!!!!!!!111111111111111111111111111oneoneone!!1111111111111
cheeeeeeeeeeeeeeerrrrzzz
xx
Last edited by Bassy; Oct 29th, 2008 at 12:02 PM.
-
Oct 29th, 2008, 01:14 PM
#2
Re: Uber cool site =D
Excellent, have fun.
-
Oct 29th, 2008, 02:58 PM
#3
Re: Uber cool site =D
There are products out there like what you want. Probably some open source ones as well.
Google WYSIWYG or CMS. Both should yield some results.
You could simply use something like TinyMCE and use php to populate the field with HTML before the page loads. Mind you that is a text editor and won't be much help doing anything but table layouts and basic content.
Also, don't use javascript for your authentication. With a simple "Cancel" and a view of the source, you can see the password or the algorithm used to create the password.
-
Oct 29th, 2008, 03:37 PM
#4
Thread Starter
New Member
Re: Uber cool site =D
Thanks kfcSmitty, but thats not really what i was looking for..
Is there something where basically the text is like a mirror of a file somewhere, and then i have a a simple text field in the admin section (i will scrap the javascript one and i will make a normal php one) and basically, whatever i write in there and click save, is what will write to the file..confusing sounding i know
you know phpNUKE, well in there theres a body of text on the main page
eg. on www.bebobox.com
and then in the admin section, theres a module app thingy which allows you to write it all up, get what i mean?
I dont really want a think like tinymce, i just thought one of you guys might know a code :P
But thanks very much for replying, i really appreciate that you tried to help a no0b like me x]
-
Oct 29th, 2008, 04:55 PM
#5
Thread Starter
New Member
Re: Uber cool site =D
Redesigned!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1111111111111111oneoneone1oneone11111111111 1eleven
http://www.chrisbrown-ths.co.cc/
Anyway, any ideas bout the last post?
-
Oct 29th, 2008, 05:21 PM
#6
Re: Uber cool site =D
We don't really "know a code" specific to what you need, and I have never done this myself.
But PHP can write/read files. So, assuming you load up a page using PHP, modify it, save it, and then load into that same page using PHP it shouldn't be that hard.
The only issue I can see is that you would be modifying straight HTML instead of any kind of WYSIWYG editor.
Alternatively, you could also save the information to a database and pull it up when you need it as well.
-
Oct 29th, 2008, 05:39 PM
#7
Re: Uber cool site =D
Bassy, how about you make a start on it and if/when you hit problems post here and we can help you. Your first post looks a bit like a requirements spec and unless you are paying us to do this for you, it is of little use to us.
-
Oct 30th, 2008, 05:47 AM
#8
Frenzied Member
Re: Uber cool site =D
http://www.chrisbrown-ths.co.cc/ is dead as a canary in a microwave
what's with this co.cc domains?
a mate of mine got this ugly as heck site, no one use, but his Alexa rating is under 400!!!! The only thing I could think of different is the .co.cc .. he dont do anything to increase his ranking.
-
Oct 30th, 2008, 09:43 AM
#9
Thread Starter
New Member
Re: Uber cool site =D
Its because i dont want to buy an actual domain. co.cc are free domains cos its a subdomain of http://co.cc
And i dont care about ranking, i just wanna learn a few things, instead of buy a domain but not know the first thing about PHP :L
But al i want is basically an in-site code editor, like when you have a hosting file manager (like in Cpanel or whetever), if you select a file, then the code editor windows (like AJAX one inside the webpage) like this:
(chrisbrown-ths.co.c is a mirror frame thing of my mates hosting under my name, ie. he runs it, anyway, like this

The this shows up:

I want something just like that! xD (except not to esit the WHOLE page, only the huge body of text, and maybe I'll add a sorta "latest headline" module whcih would be cool
Anyone have ANY idea?
And btw, the only reason i haven't started writing loads of stuff is because i don't really want to write loads of content if it will be easily changed through the site itself..
And yeah, i just thought, how about i use TinyMCE, to basically write it all up, and then when i click save/submit/whatever then it changes the main content!!1 :P
feedback plz xD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|