Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 10-25-2006, 11:45 AM
syntaxmonster Offline
forum loafer
 
Join Date: Oct 2006
Posts: 7
Mark all images in admin area

Hi @all,


itīs realy a pain to mark all images in the admin area if you have a lot of them.
So here are a few lines of code which can help mark all images simultaneous:

Code:
<script language="JavaScript" type="text/javascript">
<!--
function CheckAll() {
  for (var i = 0; i < document.manageposts.elements.length; i++) {
    if(document.manageposts.elements[i].type == 'checkbox'){
      document.manageposts.elements[i].checked =         !(document.manageposts.elements[i].checked);
    }
  }
}
//-->
</script><a href="javascript:void(0)" onClick="CheckAll();">Check all</a>
Just put thes few lines after ?> at the bottom of admin/images_edit.php

Chris
Reply With Quote
  #2  
Old 11-15-2006, 10:30 AM
klimin_a_s's Avatar
klimin_a_s Offline
pp veteran
 
Join Date: Oct 2006
Location: Russia, Birsk
Posts: 95
Send a message via ICQ to klimin_a_s
Thanks! I have just update my Pixelpost from 1.4.2 to 1.5, and this modification is very useful!
__________________
Klimin Andrew,
Birsk photoblog: photoblog.birsk.info (PP 1.7.1)
Pixelpost addons: Custom Fields 1.3
Reply With Quote
  #3  
Old 11-16-2006, 08:50 AM
taquinade Offline
forum loafer
 
Join Date: Aug 2006
Posts: 15
Hello,

This javascript is in the admin folder : script.js

no need to copy the javascript code a the "admin/images_edit.php" bottom file.

In "admin/images_edit.php"

Search this:
PHP Code:
<form method="post" name="manageposts" id="manageposts"  accept-charset="UTF-8" action=""
And Paste this after:
PHP Code:
<input class="cmnt-buttons" type="button" onclick="checkAll(document.getElementById('manageposts')); return false; " value="check all" name="chechallbox" />

<
input class='cmnt-buttons' type='button' onclick="clearAll(document.getElementById('manageposts')); return false; " value='uncheck all' name='clearallbox' />

<
input class="cmnt-buttons" type="button" onclick="invertselection(document.getElementById('manageposts')); return false; " value="Invert selection" name="invcheckbox" /> 
++
Thierry
__________________
My Photo blog:
Reply With Quote
  #4  
Old 11-16-2006, 09:09 AM
klimin_a_s's Avatar
klimin_a_s Offline
pp veteran
 
Join Date: Oct 2006
Location: Russia, Birsk
Posts: 95
Send a message via ICQ to klimin_a_s
Thank you, but I had to make some modification:

PHP Code:
<input class="cmnt-buttons\" type=\"button\" onclick=\"checkAll(document.getElementById('manageposts')); return false; \" value=\"check all\" name=\"chechallbox\" /> 
<input class='cmnt-buttons' type='button' onclick=\"clearAll(document.getElementById('manageposts')); return false; \" value='uncheck all' name='clearallbox' /> 
<input class=\"cmnt-buttons\" type=\"button\" onclick=\"invertselection(document.getElementById('manageposts')); return false; \" value=\"Invert selection\" name=\"invcheckbox\" /> 
__________________
Klimin Andrew,
Birsk photoblog: photoblog.birsk.info (PP 1.7.1)
Pixelpost addons: Custom Fields 1.3
Reply With Quote
  #5  
Old 11-18-2006, 12:34 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
I added this feature to the SVN version today and extended it with a delete all selected images and publish all selected images feature.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #6  
Old 11-18-2006, 12:37 PM
klimin_a_s's Avatar
klimin_a_s Offline
pp veteran
 
Join Date: Oct 2006
Location: Russia, Birsk
Posts: 95
Send a message via ICQ to klimin_a_s
Thanks! What is the 'SVN' version?
__________________
Klimin Andrew,
Birsk photoblog: photoblog.birsk.info (PP 1.7.1)
Pixelpost addons: Custom Fields 1.3
Reply With Quote
  #7  
Old 11-18-2006, 01:02 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
The SVN is the development version we are currently working on as a team. This code isn't public since we're still making changes and test each others code.

In time a snapshot of the SVN version will be frozen and released as version 1.6.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #8  
Old 11-19-2006, 09:04 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
@Dennis: SVN code is public (but non of us gave a link to it on the forum) :P

BTW This slowly comming version (as slowly as all previous) should be huge step in PP development
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #9  
Old 11-20-2006, 05:36 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
@Piotr: wouldn't that make SVN not available to the general public? So in a way public access is restricted :P
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #10  
Old 11-20-2006, 10:14 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Public SVN access is restricted but everyone can come by WWW and look into the code :P
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 09:03 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs