|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I wrote a PHP script that allows me to write multipage articles and store them in a mySQL db.
I wrote a PHP script that allows me to upload images, resize them, rename them, thumbnail them and store the name and location info in a mySQL db. I would like to bring these two together.
The last part I can't figure out. How would I do that? Is that a Javascript type of thing? Also, I have no idea how to edit something like that. Which makes me think, is this a poor way to do this? Is PHP a poor language to do something like this? How do sites like this or xbitlabs.com imbed their pictures in their articles? Thanks |
|
#2
|
||||
|
||||
|
Have you considered using one of the WYSIWYG HTML editors? You could accomplish what you're wanting to do by using javascript to add the tag at the end of the contents of the textarea, but if the user screws it up somehow, the page is screwed. It's often harder to screw up such things in a WYSIWYG editor.
|
|
#3
|
|||
|
|||
|
I use HTML-kit. I'm comfortable and would rather use the text based editor when I write/code pages.
I am game to trying new things though. Do you have an editor you would recommend? A script from somewhere like hotscripts or freshmeat that does this would be helpful as well. Thanks |
|
#4
|
|||
|
|||
|
I was thinking that maybe you were talking about a CMS. I started with PostNuke and then tried out Envolution about a year and a half ago. I needed to modify them some, but found my PHP knowledge was to small. I didn't know enough to pick them apart to see how they functioned so I could make the modifications I needed. So I started learning. This site, Devshed, Sitepoint and Melonfire were very helpful. With some effort I may be able to pick apart much of the open source PHP scripts out there.
I notice DevArticles uses Mambo Open Source. According to the Mambo site, Quote:
When you say WYSIWYG editor, I think Frontpage, or that awful NetObjects Fusion. I guess that you are talking about these kind of editors? |
|
#5
|
|||
|
|||
|
Hmmm, I remember coming across an article and I thought, why would anyone want to build a WYSIWYG editor. Now I know. Mitchell Harper's Building a WYSIWYG HTML Editor might teach me what I need to know.
I'm still interested in recommendations on these type editors or a way to do this that isn't browser dependent. Thanks |
|
#6
|
||||
|
||||
|
Right, I actually meant something like HTMLArea that you could use in place of a plain textarea in your site itself. It may not be the best solution for you, especially as the best of these things aren't cross-platform, but you might consider one of these as a way of allowing your users to insert pictures and screw with the content of their articles. Otherwise, the solution you proposed seems ok, if not ideal.
|
|
#7
|
|||
|
|||
|
I'm looking at HTML Area. It could be helpful. It'll definately give me something to tinker around with for a while. I'll have to test out Mambo Open Source and see how they use HTML Area. I might be able to learn something from Mambo's script.... if I've learned enough to actually follow it.
I think this probably the route I want to take. Thanks |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Inserting images in stories?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|