GraffitiCMS Comment Forms - macros

In GraffitiCMS v1.2, I'm trying to include the comment form on my blog posts, but the submit button does nothing. Comments are enabled for the post, and I've included $macros.CommentForm() in the blog.post.view file. I've also confirmed that the necessary Ajax.ashx file exists on the root. Are there any other dependencies?
Are there any instructions posted anywhere that explain how to make this work? I've been Googling for several hours and can't find any.
NOTE: I cannot upgrade to v1.3 at this time. Hopefully on a future project.

You need to make sure you have the /__utility/js/graffiti.js and /__utility/js/prototype.js scripts linked on your page. Calling $macros.Head() should do this automatically.

It turns out that I was already doing as Jeremy H suggested, and calling $macros.Head(), but my use of jQuery was conflicting with Prototype. I resolved the problem by linking in jQuery before $macros.Head() and switching out all my jQuery $ tokens to use the actual jQuery function name.
https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/

Related

How is the Fancybox License meant to be used?

There is no relevant documentation of how the license key is to be used on the site or on GitHub. Is it meant to be embedded as a HTML Comment or in the JavaScript as a comment?
http://fancyapps.com/fancybox/3/#license
https://github.com/fancyapps/fancybox/issues/1032
Jut keep it, there is no need to put/use it anywhere. Obviously, if you would have to do something specific, then it would be stated.

Jekyll-bootstrap how does mark down for external links work?

I am currently writing this in my post.md
Intro to [links](http://jekyllrb.com/docs/permalinks/)
Then when I am clicking this link once the post has been published the link I am sent to is:
http://example.github.io/post-name/jekyllrb.com/docs/permalinks/
Can anyone help?
This is a gotcha. I had recently migrated from from Maruku to kramdown, which handles urls differently. You need to define
[setid]: http://www.example.com (don't forget the http://)
Then use [setid] in place of the link.

find_all_links() Perl function doesn't find all links

I'm starting with Perl and I'm trying to do a script that logs me out of a page (I already did the login one).
The idea is, I'm trying to use find_link function from WWW::Mechanize (I also tried WWW::Mechanize::Firefox) to find the logout link, but it's not working.
So, my question is:
is the event onmouseover avoiding that link to be found? I think WWW::Mechanize::Firefox supports javascript but maybe that's not correct.
<a class="hb2" href="/goform/Logout?logout=Logout" onmouseover="(window.status='Logout');
return true">Logout</a>
Is there a way to do what I want? Any help or suggestions will be highly appreciated.
Apparently my MozRepl (needed to use WWW::Mechanize::Firefox) add-on was not well installed. #gangabass, #andy I checked the HTML and it seemed to be in the source. So #choroba I checked why WWW::Mechanize::Firefox was acting the same as WWW::Mechanize and I reinstalled the add-on.
Then everything worked perfect. Thanks a lot to all of you for taking time to help me.
Are you sure you have this HTML fragment in your source HTML? I mean your HTML code fragment may be created dynamically via Javascript or may be you have frames in your source HTML.
So please show output of $mech->content() and your code to process this link (as stated above $mech->find_link( text => 'Logout' ); should work).
Have you dumped the page with the mech-dump command line utility? Try that. If your link shows up in the output of mech-dump then you're calling find_all_links() wrong.
If mech-dump does not show your link, then you probably either have malformed HTML, or the HTML is generated in the browser with JavaScript.

Prestashop - Header links

I have a Prestashop installation and am trying to add pages to it. I want the pages to show up with the HOME and CONTACT links and not in the information block. I take it I need to edit code, but where? Do I hard code the pages? Or can I create the page with the CMS in tools and just add a link in the headerlinks for that page?
AH, I found it. For any who may also be looking for this, you can edit this directly like this:
Find the 'modules/blockpermanantlinks/ directory and edit the blockpermanentlinks-header.tpl file. You will need to set up target pages manually too. I just pointed to information CMS pages I made earlier.
#Stefan, in PS 1.4, you need to let Smarty Force a Compile in order to see changes you make while testing or changing the elements/appearance of a page.
Go to Preferences > Performance, and change to Force Compile: Yes, w/ Cache: No, while you are testing changes. When you are done, change those two settings back to Force Compile: No and Cache: Yes.

How to integrate TinyMce with Zend Framework with Gzipping and Image managers?

I have done some research on this subject, and found out, that Gzipping and adding a new image manager through a plugin would not be as difficult. The only question is the Image manager.
I have seen some quite good ones, like the Image Manager for JCE, which is a Joomla wysiwyg editor, but none for TinyMce for itself.
Could someone show me a good image plugin?
P.S. SwampyFoot is out of question, as it's download links are broken, and PhP Letters Ajax image manager is quite hard to install.
Thanks!
EDIT: I just found Mad File Manager, which seems to work excelently except for a little glitch: An image can be uploaded, but cant be selected... Thats sad...
EDIT2: I've found KCFinder, which seems to be very promising, but I just can't get it to work properly. Somehow, the configuration is quite difficult.
Ok, So I have been able to answer my question myself. So here it goes:
Set up TinyMce with Sozfo solution. The important ting to remember here is, instead of extending your Forms from Zend_Form, you have to extend them from Sozfo_Form. As to the defining your own extendable controller, it didnt work for me, So I put the path defining helpers in my Bootstrap. And if the whole ordeal works, there is a textarea that should have TinyMCE controls, but there aren't any, try checking the comments at Sozfo, or checking if the page is cached or not. It took me a good hour, to find out, that the only reason why no JavaScript was pushed to the header was because of a very persistent cache.
Set up KCFinder. The main problems I faced here were due to wrong paths to corresponding files. When the paths were correct, the only thing to remember is to enable it. There is a boolean to change in configuration file.
The last issue was adding the KCFinder to my Tinymce, and what I ended up doing was, I added the function needed to call KCFinder in TinyMCE.php View helper. ( Due to some glitch I seem to be unable to post the code here). Once you have set up your paths correctly, everything should work splendidly.
All in all, it took me about 3 days to figure this whole thing out. Talk about steep learning curve...
Have you looked at MCImageManager - its not free but its an option if you're happy to pay for it
Not really a suggest as you've got it but swampy foot download does work
As you're already using zend framework, why not use dojo, set up the dojo form and call the editor element and integrate this http://docs.dojocampus.org/dijit/_editor/plugins/LinkDialog into it?