Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 13

CurtisOdenericgillettemcu_hqx00 +9 guests

QwikPost

This discussion is related to the QwikPost addon.
QwikPost

grep is your friend.

«1

Comments

  • x00x00
    Posts: 1,540
    BTW This is my first extension for Vanilla. I hope it floats your boat, and doesn't sink it;)

    NOTICE

    For all those downloading, you know who you are! Could you please provide feedback?
    I will be very grateful for your help.

    Many thanks to those who have already done so.

    grep is your friend.

  • Uploaded version 1.1 of QwikPost.
  • x00x00
    Posts: 1,540
    Important revision. Forgot to reset the word temp each time and better link identification on the client side (peekabo).

    grep is your friend.

  • Posts: 19
    Wow! Perfect Add on! Thank you! Good job.
  • Posts: 169
    New to Vanilla and forum software so not sure if I am missing something or not but for some reason AjaxQuote or Quotations no longer work with QuickPost installed. I still retain the quote button but when I preview the post I do not get the graphic quote. Is there something I need to edit in QuickPost to keep either of those two working?

    Thanks
  • x00x00
    Posts: 1,540
    Just a heads up the files config/qpmedia.json and config/qptype.json need write access for the script.

    @Dan Devine, because there is no standardised way of routing the ajax through a common hub so that extensions know what the other extensions are doing (something that I might provide in another extension, which may be called 'SpringBoard'), I can't always predict how they have done it.

    ATM I only indentify if the original script was named ajax.php. If they don't set the X-Requested-With header you don't know for sure how to handle the request. Just checking if a script resides in a folder, etc isn't really a good solution.

    I will have a look at those, but any solution will probably be temporary (if it is what i think it is), because you can't keep compensating for extensions, that way.

    In other frameworks such AJAX routing controls have been too restrictive (understandably because they needed to be being on resources like facebook, etc). So these facilities just don’t used, instead they directly request the script. For SpringBoard it doesn’t have to be that way, but it could provide the essential information to the other plugins, and also provide simple to use control to cut down on coding, or alternatively do it exactly the way the developer wants it.

    Personally I think the quotations stuff could be done a bit better and there is some potential for doing simple stuff on the client side using similar meshing techniques of QwikPost.

    grep is your friend.

  • Posts: 4
    A few problems: Whenever I try to change settings I get and alert, "Responce cannot be read". Also, if I try to put in a link - It appears as, "Here is a link: <input type="hidden" name="qwikpost"><!--qp--> <a href="http://womenshealth.com" alt="link" target="_blank" rel="nofollow">[[_linker_]]</a> <!--qp-->" Where am I going wrong?
  • x00x00
    Posts: 1,540
    The first one is a problem with ajax.php, have you made sure config/qpmedia.json and config/qptype.json have write access for the script? Well the second seems like it is working correctly except you may have other filters on, that is escaping the html with html entities. Try turning QwikPost on then off. Failing that tell me what extension you have installed. What version of vanilla are you using? I have only tested it with 1.1.5

    grep is your friend.

  • x00x00
    Posts: 1,540
    @Dan Devine I completely miss your point (as usual). BBcode (or others) does not filter for QwikPost, and QwikPost does not filter for BBcode. BBcode can rightfully strip those tags out completely, so it wouldn’t matter if the client side QwikPost can pick it up. The preview and all the filters are working as expected. Applying QwikPost to other filter is problematic. You can ensure the order, except with a hack, and it also even if you do it become more like SlowPost rather than QwikPost. you also don't know what tags you are going to have to circumnavigate. You are basically breaking their filters.

    grep is your friend.

  • Posts: 4
    write access on both files and the config folder My Vanilla setup is only a few days old and I could be doing something wrong. Currently, I don't see a way to enter HTML - when I do it's converted to text. It almost works, but why does it say the link is [[_linker_]] instead of the link? (What I meant above is that is the HTML I see, the problem is really the [[_linker_]] part). Thanks \x00!
  • x00x00
    Posts: 1,540
    Right namotco it is not a file error or else it would say so. Though chmod \0600 is a good idea for those files I am not evaluating the json reply, just using a regular expression. So irregularities in the php json_enconding or the browser use of regex might cause the problem. Equally there could be an an php error that is causing a malformed response. However it is supposed to append the response to the error if it is not being read, and it doesn't look like there is any response is that correct? It a good idea to turn error reporting on to check for runtime errors, warnings and parse errors. What browser are you using BTW? Have you got any javascript errors? In qwikpost.js see the line if(match = resp.match(/^\{"status":"([^"]+)"(,"err":"([^"]+)"){0,1}\}$/)) { Remove the start line anchor '^' to see what happens.

    grep is your friend.

  • x00x00
    Posts: 1,540
    Oh balls yes that you can change, once you get the settings working that is. :P It says 'linker' to encourage people to change it.

    grep is your friend.

  • Posts: 4
    JS Error on the page: TypeError: Result of expression 'JSONeditor.start' [true] is not a function. JSONeditor.start true typeof JSONeditor.start "boolean" Thanks, about the [[_linker_]] issue - I changed it to #{href}
  • Posts: 169
    No problem. Being new to all this I am sure I did not explain myself too well either :-) Looks like a nice addition but may not be quite up on all this enough to take advantage of all it does. Will sit back and maybe with so more info I will reap all the benefits. I can live without quoted text it is just that all the old "quotes" on the posts appear as text now instead of the graphic.

    Thanks for you help. Nice addition.

    Dan
  • x00x00
    Posts: 1,540
    @namotco did it save? Remember you have to apply changes by clicking 'change', before saving. @Dan Devine, you inspired me to think of an alterative to quotes. Thanks!

    grep is your friend.

  • Posts: 4
    No, it didn't save. I do see the "Changed!", but upon clicking Save I get the error. What libraries does this depend on? Prototype.js?
  • x00x00
    Posts: 1,540
    None. The tree view is based on Thomas Frank's JSON editor, but that appears to be working. If in doubt try another browser. The ajax is my own code, but pretty standard stuff. There is no text after the error? I recon it is the ajax.php that is why it would be good to turn on full errors it should output the errors when you click. Either do it in you php.ini and restart server file or set it or put error_reporting(E_ALL ^ E_NOTICE); on the top of ajax.php Sometimes when errors are too low then it will output nothing. you also need to set display_errors to On. Also check your log file. What is your version of php? Can you also point to http://your_site/vanilla_path/extensions/QwikPost/ajax.php It should say {"status":"denied"} Also when in setting in the head tag you should see an inline script like so: <script type="text/javascript">qpExt = 'http://your_site/vanilla_path/extensions/QwikPost/';</script>; Thank you for your help!

    grep is your friend.

  • Posts: 19
    Hmmm \x00.... Why doesnt your addon coverts mp3 links in the user message wall like in comments?
  • x00x00
    Posts: 1,540
    user message wall?

    What does the source say. It might not be finding the player.

    In config go to mp3 then click on param folder. Then src does it say #{qwikpost}/mp3mini.swf ?

    *edit* message wall is addon I wasn't aware of. It shouldn't work with any of them ATM

    grep is your friend.

  • Posts: 19
    Right, user message wall add on. It is fine with src #{qwikpost}/mp3mini.swf
    Idealy it would be great if on the user wall links will be also converted. just a tip.
  • x00x00
    Posts: 1,540
    Problem is that the wall add-ons don't use the app string filter, they effectively just cleanse for entry in the database that is it. If they did it would a trivial matter, other wise it is possible but quite hit and miss whether it work. I have very mixed feelings about doing it, and stuff like this can put you badly of track introduces more problems than it is worth, much to the annoyance of people not interested in the wall. So I would have to insolate that functionality as much as possible.

    Why don’t you pester them into using the string filter. It not like you can use other stuff like BBcode with the wall addons either.

    grep is your friend.

  • Posts: 169
    \x00

    Would really like to see an alternative to Quotes that would work with this extension especially if it would allow me to display my existing quoted comments normally (with the graphic) as before.

    Thanks,

    Dan
  • Uploaded version 1.2 of QwikPost.
  • x00x00
    Posts: 1,540
    There is quite a major change in the new version in that the json is raw url encoded and stored in the settings. This saves you from having to recreate your settings when you upload, if you don't remember to copy it some place safe. However in every other respect it works exactly the same.

    So for just the once if you want to keep your settings: Before upload, save the two json files in config/ somewhere safe then when you put the new folder in the extensions director overwrite the defult json files in the config/ folder with you saved ones before doing anything with it. From then on you won't have to do this.

    grep is your friend.

  • x00x00
    Posts: 1,540
    Dan Devine
    Would really like to see an alternative to Quotes that would work with this extension especially if it would allow me to display my existing quoted comments normally (with the graphic) as before.
    I have come up with something that could work really well for you, though I don't want to rush releasing it. Still some thing to work out first. I would release it as an experimental beta, if you are interested.

    grep is your friend.

  • Uploaded version 1.2 of QwikPost.
  • Posts: 2,610
    Go on then, beta :P
  • x00x00
    Posts: 1,540
    sit back put your feet up

    grep is your friend.

  • Posts: 169
    Yes!

    Great on the beta when you get it worked out.

    Thanks,

    Dan
  • x00x00
    Posts: 1,540
    Ok there are some bug fixes in this latest update to do with how it handles qwikpost links in between other text on the server side, and laso the correct handeling of newlines. It is also going to make things more compatible with my latest project snippets.

    grep is your friend.

Sign In or Register to comment.