[How-To] Create your own Inline Moderation
This How-To will only work with the upcoming Beta 5 or RC1 or whatever they decide to name it. It will not work with Beta 4, because of this thread.
Wouldn't it be cool to have your own Inline Moderation? Of course it would. Especially if you paginate your results, you might want to mark multiple items across pages. You don't need to understand AJAX in order to find this guide useful. Hell I don't know much AJAX, I'm just good at tinkering with code until it works :p Im assuming you know how to create and submit forms, so I won't go into details on how to alter the example form in order to make it work with your hack. Make sure your php file has the "inlinemod" phrasetype included.
That should do the trick :) Feel free to ask if there's anything you find unclear, I was in sort of a hurry and Im not very good at explaining :( |
I'm having trouble with this guide... these are my templates:
FORM: Code:
<form action="videoajax.php" method="post" id="videoComments"> Code:
<li id="vcomment$comment[videocommentid]" class="floatcontainer"> 1 - class="floatcontainer" should change to class="floatcontainer inlinemod" when a bit is checked... it doesn't here... 2 - selections are not saved on page-switch; or added to the "Go (0)" count on the submit form. Please take a look at my code and tell me what I am missing. |
Found another issue... the drop-down menu doesn't work. If I hit "select all", it doesn't select anything.
--------------- Added [DATE]1254172453[/DATE] at [TIME]1254172453[/TIME] --------------- Figured It Out! Code:
<script type="text/javascript"> --------------- Added [DATE]1254173076[/DATE] at [TIME]1254173076[/TIME] --------------- Wait... actually, there is still an error... Selections are not saved on page-switch; or added to the "GO" count" |
All times are GMT. The time now is 06:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|