|
#11
|
|||
|
|||
|
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. |
|
#12
|
|||
|
|||
|
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 |
|
#13
|
|||
|
|||
|
can you show me the snippit of that area?
|
|
#14
|
|||
|
|||
|
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. |
|
#15
|
|||
|
|||
|
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! |
|
#17
|
|||
|
|||
|
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 />
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.">&nbsp;".$name."<br/>";
}
?>
<br /><br />
|
|
#19
|
|||
|
|||
|
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?
|
|
#20
|
|||
|
|||
|
This is the modified admin/index
|
| Post Reply |
| Thread Tools | |
|
|