Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #11  
Old 02-21-2005, 08:15 PM
iblitz Offline
forum loafer
 
Join Date: Feb 2005
Location: Spain
Posts: 9
I have made all the changes and it don't work well. I can't see
the checkboxes in admin page, only see them if I edit the images.
__________________
My fotoblog: http://iblitz.fotorecull.tk
Another work: http://fotorecull.tk
Reply With Quote
  #12  
Old 02-21-2005, 08:21 PM
iblitz Offline
forum loafer
 
Join Date: Feb 2005
Location: Spain
Posts: 9
When I upload an image become the following message:

Warning: Invalid argument supplied for foreach() in /home/reculltk/public_html/iblitz/admin/index.php on line 467
__________________
My fotoblog: http://iblitz.fotorecull.tk
Another work: http://fotorecull.tk
Reply With Quote
  #13  
Old 02-21-2005, 09:26 PM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
can you show me the snippit of that area?
Reply With Quote
  #14  
Old 02-21-2005, 09:36 PM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
looks like the multicategories are working on your main site, but not in your admin area right?

thats good news then....i was worried that you may have problems with the database.
Reply With Quote
  #15  
Old 02-22-2005, 03:50 AM
iblitz Offline
forum loafer
 
Join Date: Feb 2005
Location: Spain
Posts: 9
I have made some snapshots:

Admin line 467
Images page
Edit image page
Uploaded image
Admin/index all code (rtf file)

Thanks and excuse me, Mark!
__________________
My fotoblog: http://iblitz.fotorecull.tk
Another work: http://fotorecull.tk
Reply With Quote
  #16  
Old 02-22-2005, 03:59 AM
iblitz Offline
forum loafer
 
Join Date: Feb 2005
Location: Spain
Posts: 9
When I upload the image don't show the selected category, I need
edit the image and to add it.

snapshot
__________________
My fotoblog: http://iblitz.fotorecull.tk
Another work: http://fotorecull.tk
Reply With Quote
  #17  
Old 02-22-2005, 05:39 AM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
I think i found the problem...thanks for this...i totally missed this in my documentation....(ill update)...its the part that actually builds the check boxes when adding a new image...

Replace these lines in your admin/index.php file

Code:
if($_GET['view'] == "") {
    ?>
    <div id='jcaption'>
    Post a New Image</div>
    <div id="content">
    <form method="post" action="<?php echo $PHP_SELF; ?>?x=save" enctype="multipart/form-data">
    Image Title<br />
    <input type="text" name="headline" style="width:95%;" /><p />
    
    File Under Category<br />
    <select name="category">
    <?php
    $query = mysql_query("select * from ".$pixelpost_db_prefix."categories order by name");
    while(list($id,$name) = mysql_fetch_row($query)) {
        $name = pullout($name);
        echo "<option value='$id'>$name</option>\n";
        }
    ?>
    </select><p />
With:

Code:
if($_GET['view'] == "") {
    ?>
    <div id='jcaption'>
    Post a New Image</div>
    <div id="content">
    <form method="post" action="<?php echo $PHP_SELF; ?>?x=save" enctype="multipart/form-data">
    Image Title<br />
    <input type="text" name="headline" style="width:95%;" /><p />
    
    File Under Category<br /><br />
    <?php
    $query = mysql_query("select * from ".$pixelpost_db_prefix."categories order by name");
    while(list($id,$name) = mysql_fetch_row($query)) {
        $name = pullout($name);
        echo "<input type=checkbox name=box[] value=".$id."> ".$name."<br/>";
        }
    ?>
    <br /><br />
Sorry sorry..
Reply With Quote
  #18  
Old 02-22-2005, 06:19 AM
iblitz Offline
forum loafer
 
Join Date: Feb 2005
Location: Spain
Posts: 9
Sorry, don't work.

Message:
Parse error: parse error, unexpected T_STRING in /home/reculltk/public_html/iblitz/admin/index.php on line 316

Code
__________________
My fotoblog: http://iblitz.fotorecull.tk
Another work: http://fotorecull.tk
Reply With Quote
  #19  
Old 02-22-2005, 01:32 PM
mark Offline
pp veteran
 
Join Date: Feb 2005
Location: Atlanta, GA USA
Posts: 89
ok, i've looked and looked at your code....i can't see anything wrong in the snippit you sent. I dont suppose you could send the admin/index.php again?
Reply With Quote
  #20  
Old 02-22-2005, 03:25 PM
iblitz Offline
forum loafer
 
Join Date: Feb 2005
Location: Spain
Posts: 9
This is the modified admin/index
__________________
My fotoblog: http://iblitz.fotorecull.tk
Another work: http://fotorecull.tk
Reply With Quote
Post Reply


Thread Tools




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

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