|
Post by Alyce on Apr 29, 2009 8:15:17 GMT -5
I spoke too soon. I have a separate app working that uses the sendemail.exe. Attempts to incorporate it into the wiki code have failed. This happens on runbasicnet.com and on my own machine. I wonder if it's because of the chained module. If the email routine were in the main program instead of in userObject, perhaps it would work. Will try again later. I'd like to make this work.
|
|
|
Post by santiago on May 3, 2009 7:57:19 GMT -5
Thanks, Neal, I downloaded it as well.
|
|
neal
Full Member
Posts: 104
|
Post by neal on May 13, 2009 22:47:36 GMT -5
Just a quick note to say that a new version of runWikiNG is available at runbasic.staddle.net. Changes are: - Output is more XHTML standards compliant
- New tag ((name)) to define page anchors. Use [[#name]] to jump to a page anchor
- Images can now be left or right aligned using {{image.gif|Alt text|left}} or {{file.gif|Alt text|right}}
- Image links (internal and external) can be created using [[pagename|{{image.gif}}]]
- The plugin API has been changed, so all plugins must be updated.
|
|
|
Post by santiago on May 15, 2009 11:19:36 GMT -5
Hi, Neal, I'm trying to install NG wiki, but I got an error: (I made a project folder in project and put the user object.bas in there as well. Any hints as to what blunder I'm doing? Message not understood: #code UndefinedObject(Object)>>doesNotUnderstand:self nil temps aMessage a Message with selector: #code and arguments: #() excpt a MessageNotUnderstood resumeValue nil
ProjectEditor>>openProjectNamed:self a ProjectEditor temps t1 'runwikiNG' inst vars decoration a Seaside.WAStateHolder(a ProjectEditor) code '' parentPage a SessionPage hideCodeEditor nil editorSize nil toolbar a WebToolbar persistentCode nil
optimized [] in [] in [] in OpenProject>>renderContentOn:self BlockClosure [] in [] in [] in OpenProject>>renderContentOn: temps self an OpenProject inst vars method CompiledBlock [] in [] in [] in OpenProject>>renderContentOn: outerContext nil copiedValues an OpenProject
Seaside.WAActionCallback>>evaluateWithArgument:self a Seaside.WAActionCallback temps t1 'Open' inst vars context a Seaside.WARenderingContext owner a RunBASICPersonal key '39' block BlockClosure [] in [] in [] in OpenProject>>renderContentOn:
Seaside.WAActionCallback(Seaside.WACallback)>>evaluateWithField:self a Seaside.WAActionCallback temps t1 'Open' inst vars context a Seaside.WARenderingContext owner a RunBASICPersonal key '39' block BlockClosure [] in [] in [] in OpenProject>>renderContentOn:
|
|
neal
Full Member
Posts: 104
|
Post by neal on May 16, 2009 7:55:00 GMT -5
Hmm, not too sure what is happening here. The way I install it is as follows: - Create a new project using the web interface, paste in the userObject code and save the project as 'userObject' .
- Create a new project using the web interface, paste in the runWikiNG code and save the project as 'runWikiNG'
- Run the runWikiNG project. If it works, publish the runWikiNG project (the userObject project does not need to be published).
I'm not sure if having userObject.bas in the same project folder is causing a problem - I don't run it that way as I reuse userObject in a number of my other projects. Hope this helps - Neal
|
|
|
Post by santiago on May 18, 2009 0:10:28 GMT -5
It's sorta working now! Thanks, now I have my own wiki! (I don't know how to publish it, though) but I get this message: Unexpected Error An unexpected error has occured. Error: (0) program does not understand: push( I wonder what I did wrong? It comes when I modify a page. (It says Post Preview or Cancel or something like that)
|
|
neal
Full Member
Posts: 104
|
Post by neal on May 18, 2009 6:36:51 GMT -5
Sounds like a problem with the "stackObject" project. Check that a project exists called "stackObject" (it should come with the latest version of Run BASIC, otherwise you can download it from my web site).
To publish a project click on the "Publish" tab in the Run BASIC web interface and check the option next to the project you want publicly available. This is assuming you are using the paid for version of Run BASIC - I don't think the free demo version can publish projects.
Once published you can access the wiki at http://your_address:8008/seaside/go/runbasicpersonal?app=runWikiNG (or you can make runWikiNG the home page project under the "Preferences" tab in which case you just need http://your_address:8008/)
- Neal
|
|
|
Post by santiago on May 18, 2009 7:45:15 GMT -5
Great! I'm up and running! I copy/pasted the latest version of stackObject over the one that came with RB. Presto! It works! Thanks Neal!
|
|
|
Post by Psycho on Jun 1, 2009 20:19:37 GMT -5
Neal. This is a great program! I commented about it on Alyce's post and have really been having fun with it for the last week I currently host several programs I've written in RB at work and am about to launch your version of runWiki within the facility to let everyone share information. As I and others have found existing Excel files that we wanted to post, it became clear that converting the syntax for existing files is tedious. I threw this program together so we could take Excel files, save them as tab delimited txt files, then upload them and have RB convert them to your syntax. I didn't allow for headers but that could be a question for the user and added easily. I'm not sure if you could find a way to incorporate this into your runWikiNG, but if so, feel free to use this in part or whole. For anyone else using this program, this is an easy way to quickly convert Excel tables to runWikiNG syntax. At most, you may have to clean up a few bars from empty cells that converted to blanks. filepath$=ResourcesRoot$+"\runWikiNG"
[uploadTable] titlebar "Adding Excel Tables to wiki" print html "<b>Excel File Upload Function:</b><br>" print html "Press <b>'Browse...'</b>, select the file you wish to add, then press <b>'Upload'</b>.<br>" print print print html "<b>Uploaded files must be tab delimeted text files</b><br>" print upload "Select a file to upload."; file$ if file$ = "" then end oldfile$=file$ files #old, filepath$+"\"+oldfile$ if #old hasanswer() then kill filepath$+"\"+oldfile$ end if open file$ for binary as #f filedata$ = input$(#f, LOF(#f)) close #f open filepath$ +"\"+ file$ for binary as #g print #g, filedata$; close #g
open filepath$+"\"+file$ for input as #test a=0 while eof(#test)<>1 line input #test, dummy$ a=a+1 wend close #test
'Open new file and print "|" bars in front of each new field open filepath$+"\"+file$ for input as #addTable dim tableLine$(a) for x = 1 to a print line input #addTable, tableLine$(x) thisWord$="" for b = 1 to len(tableLine$(x)) if mid$(tableLine$(x),b,1)=chr$(9) then print "|";thisWord$;" "; thisWord$="" else thisWord$=thisWord$+mid$(tableLine$(x),b,1) end if if b=len(tableLine$(x)) then print "|";thisWord$;" "; end if next b next x close #addTable print:print print "Copy the above text and paste it into your wiki" end John "Psycho" Siejkowski
|
|
neal
Full Member
Posts: 104
|
Post by neal on Jun 2, 2009 1:21:02 GMT -5
|
|
|
Post by Psycho on Jun 2, 2009 16:46:52 GMT -5
Wow! 5 hours from my post and an update is in place. Very nice I tried it today and it works well. Thanks a lot Neal. John "Psycho" Siejkowski
|
|
neal
Full Member
Posts: 104
|
Post by neal on Jun 6, 2009 23:54:28 GMT -5
Another small update - runWikiNG now allows Windows Share style links (\\server\filename) and file links (file://server/filename) to be used - thanks to John Siejkowski for the suggestion!
|
|
|
Post by Jerry Muelver on Jun 7, 2009 11:10:36 GMT -5
like this? (for sendemail.exe) ....
server$ = "smtp.gmail.com:587" servermailuser$ = (your complete gmail address-- *gmail.com) Mail ConfigurationSMTP Host: "smtp.gmail.com:587" SMTP Password (if required): (your gmail password) From Address: (any address you want) sendmaildir$ = "/sendEmail.exe"
|
|
|
Post by Psycho on Jun 7, 2009 14:27:14 GMT -5
Very nice Neal! Works great! Thanks for implementing this into the program. John "Psycho" Siejkowski
|
|
neal
Full Member
Posts: 104
|
Post by neal on Jun 7, 2009 18:21:16 GMT -5
like this? (for sendemail.exe) .... server$ = "smtp.gmail.com:587" servermailuser$ = (your complete gmail address-- *gmail.com) Mail ConfigurationSMTP Host: "smtp.gmail.com:587" SMTP Password (if required): (your gmail password) From Address: (any address you want) sendmaildir$ = "/sendEmail.exe" Alas not - this was just for linking from the Wiki to files on a Windows Server - mainly used in intranets. However you make a good point - I should add support for sendmail.exe since a number of people seem to have to use it...
|
|