You should be able to do either. I'm not sure why yours is only quoting the last one checked. Try adding some debug code to the JavaScript file. Before the "for" statement:RedTrinity wrote:Hi Primehalo, great MOD idea - now I won't have to open multiple quote windows and copy/paste to respond to more than one person at once lol.
I just installed it all, used the Subsilver2 template edits (using Serenity which is Subsilver2 based) and the checkboxes are all there and markable - but what do you do from there, press a quote button or the normal post button?
I have tried both and they do the same thing - just quote the one person and not multiple marked posts.
So would appreciate some help
Otherwise look forward to using it!
Code: Select all
alert('number of posts on page = ' + (document.forms['prime_multi_quote_form'].quotes.length));
Ok, so just to clarify - I add the above code at the beginning of the js file? The "for" statement part has confused me a bit sorry :Sprimehalo wrote: Try adding some debug code to the JavaScript file. Before the "for" statement:It should display the same number of posts that are on a page.Code: Select all
alert('number of posts on page = ' + (document.forms['prime_multi_quote_form'].quotes.length));
Nevermind about that. I think the problem is with the code added in posting.php. Can you send me that file or post the areas that you changed?RedTrinity wrote:Ok, so just to clarify - I add the above code at the beginning of the js file? The "for" statement part has confused me a bit sorry :Sprimehalo wrote: Try adding some debug code to the JavaScript file. Before the "for" statement:It should display the same number of posts that are on a page.Code: Select all
alert('number of posts on page = ' + (document.forms['prime_multi_quote_form'].quotes.length));
The second block of code that you are to add in posting.php was put in the wrong place.RedTrinity wrote:No problem at all, here is the file:
http://www.theparentingsanctuary.com.au/posting.txt
Hope it helps
Code: Select all
Find:
<!-- IF postrow.U_QUOTE --><li class="quote-icon"><a href="{postrow.U_QUOTE}" title="{L_REPLY_WITH_QUOTE}"
Code: Select all
Add After:
<!-- IF $PRIME_MULTI_QUOTE --><li><input type="checkbox" name="quotes" value="{postrow.POST_ID}" class="radio" title="{L_REPLY_WITH_QUOTE}" /></li><!-- ENDIF -->
Code: Select all
Find:
<!-- IF postrow.U_QUOTE --><li class="quote-icon"><a href="{postrow.U_QUOTE}" title="{L_REPLY_WITH_QUOTE}"<!-- IF $PRIME_MULTI_QUOTE --> onclick="prime_multi_quote(this);"<!-- ENDIF -->><span>{L_REPLY_WITH_QUOTE}</span></a></li><!-- ENDIF -->
Code: Select all
Add After:
<!-- IF $PRIME_MULTI_QUOTE --><li><input type="checkbox" name="quotes" value="{postrow.POST_ID}" class="radio" title="{L_REPLY_WITH_QUOTE}" /></li><!-- ENDIF -->
So there should be no need for me to add a note saying the same thing.Find
Tip: This may be a partial find and not the whole line.
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
thoughtspot wrote:First of all, this is a great mod. I applaud your resistance to use a new icon! A Checkbox is so much better.
Something about the install file though:
Now it reads:Code: Select all
Find: <!-- IF postrow.U_QUOTE --><li class="quote-icon"><a href="{postrow.U_QUOTE}" title="{L_REPLY_WITH_QUOTE}"
but I think it should read more like:Code: Select all
Add After: <!-- IF $PRIME_MULTI_QUOTE --><li><input type="checkbox" name="quotes" value="{postrow.POST_ID}" class="radio" title="{L_REPLY_WITH_QUOTE}" /></li><!-- ENDIF -->
Code: Select all
Find: <!-- IF postrow.U_QUOTE --><li class="quote-icon"><a href="{postrow.U_QUOTE}" title="{L_REPLY_WITH_QUOTE}"<!-- IF $PRIME_MULTI_QUOTE --> onclick="prime_multi_quote(this);"<!-- ENDIF -->><span>{L_REPLY_WITH_QUOTE}</span></a></li><!-- ENDIF -->
Just to make sure that people don't break the line of code, as I did by accident, tee-hee! If that doesn't fit, then perhaps a comment as you did earlier in the install regarding the 2 identical lines, would be helpful?Code: Select all
Add After: <!-- IF $PRIME_MULTI_QUOTE --><li><input type="checkbox" name="quotes" value="{postrow.POST_ID}" class="radio" title="{L_REPLY_WITH_QUOTE}" /></li><!-- ENDIF -->
Just an idea. Works perfect for me in all 3 of my styles.
Yep.Origin30 wrote:So this is quite safe for use as is?