Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: Updater

  1. #1
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Question Updater

    I fixing to start a site for a friend. He is a musician, and when he has a concert he wants to be able to update the site by himself. He doesnt know anything about html, or anything. So I was wondering, well let's start off with this.

    1.Basically I need a some codes, Using DD's WYSIWYG editor to display the text to a page, just something real basic.
    EXAMPLE: edit.php is the page with the WYSIWYG editor. when you click save it saves it to index.php. Mostly that's it.

    2.When you open up the editor again I need it to show what is already on index.php

    * Hope its not too confusing.
    * I'm out for tonight. Little late in tennessee.
    *Thanks for any help!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I suggest you store concert dates in a database and create a really simple interface.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Is it to big of a problem to make?

  4. #4
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Ok Ok sorry to ask so many questions. Just got tons of ideas going through my head.
    But could I not use Djr33's comment board and somehow redo some of the code to do what I need it to do?

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Tell him to LEARN html.

    Aside from that...

    Sure, just use the comment thing. That does it well enough.

    All you'd need to do is leave as is, and take out the part where it gets the current contents of the file and adds them to the new input... so it will replace the old with the new, rather than adding.

    Seems like this should work.

    Or just write your own...

    a database would help.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Ok Ive tried every way, but because im very new to php how do I
    Quote Originally Posted by djr33
    take out the part where it gets the current contents of the file
    Have tried it.

  7. #7
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    ok so far I have it working where there is no name showing and no email.
    http://benslayton.awardspace.com

    Edit:Please note Im working on it right now. So if it does differently, give it a couple of secs, and it will work.

  8. #8
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Anyone?

  9. #9
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Ok, Never mind finally fiqured it out...
    But now when I'm on add.php I can click enter on the keyboard and it drops but on the index.php page it doesnt. It just makes spaces. How can I fix that....

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You have a textbox. You need to type html. a <br> will be a line break, whether it's on the same line, or after/before a return.

    If you need to be able to do wysiwyg, instal the openwysiwyg editor to it, and be sure to, as I said in another thread, look at my thread at the top of the dd scripts forum for important fixes.

    Seems like you mentioned that at the beginning... just didn't do it yet?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •