|
#1
|
|||
|
|||
|
Multi-categories - if downloaded, read this
I missed a piece in my doc that you'll need...Its the piece that actually builds the check boxes on the "new image" page.
In your admin/index.php file, you will also need to replace these lines: 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 />
|
|
#2
|
||||
|
||||
|
Right, I thought that I was missing something when I did not find the check boxes in admin/new images. I did notice that if you got rid of the <br/> (see below in red) the check boxes will go left to right instead of up and down. Just for those that need extra room
Quote:
__________________
Steve@ISeeItLikeThis.com |
|
#3
|
|||
|
|||
|
everything else is working ok though?
|
|
#4
|
||||
|
||||
|
Yes, absolutly fine. Good job on this addition
__________________
Steve@ISeeItLikeThis.com |
|
#5
|
|||
|
|||
|
awesome!!....i've been worried.
![]() usafdcc - btw, loved browsing your site....have you really had over 3000 visitors today?? my god!! |
|
#6
|
||||
|
||||
|
Thank you for the compliments! 3200 - Yes, lots of visitors, but not many comments. They always make my day.
__________________
Steve@ISeeItLikeThis.com |
|
#7
|
|||
|
|||
|
image count?
My categories show up but when I assign more than one image it will not register in the image count?
|
|
#8
|
|||
|
|||
|
Well, not sure where you had your counts showing up, but since this change wasn't an "addon"...which in retrospect, i should have added some "addon" stuff that I changed in my index.php..
Here is the code i use to show count. I have my categories showing in a dropdown list in my archive page... You'll probably just have to see what part you use out of this... You may only need the piece of code "catcnt" Code:
// build browse menu
$browse_select = "<select name='browse'
onChange='self.location.href=this.options[this.selectedIndex].value;'><option value=''>Archives by Category</option><option value='?x=browse&amp;category='>$lang_browse_all ($pixelpost_photonumb)</option>";
$query = mysql_query("select * from ".$pixelpost_db_prefix."categories order by name");
while(list($id,$name) = mysql_fetch_row($query)) {
$name = pullout($name);
$catquery = mysql_query("select id from ".$pixelpost_db_prefix."categories where name='$name'");
$category_id = mysql_fetch_array($catquery);
$category_id = pullout($category_id['id']);
$catcnt = mysql_query("select count(*) as count from ".$pixelpost_db_prefix."catassoc where cat_id='$category_id'");
$catcnt_row = mysql_fetch_array($catcnt);
$category_count_number = $catcnt_row['count'];
$browse_select .= "<option value='?x=browse&amp;category=$id&amp;catname=$name'>$name ($category_count_number)</option>";
}
$browse_select .= "</select>";
|
|
#9
|
|||
|
|||
|
paged_archive addon
I am also using paged_archive addon.
This is where I am getting the error in the archive section not the multi categories addon. I guess they are not compatible. here is my example www.larock.org |
|
#10
|
||||
|
||||
|
yes. I'm almost sure about the incompatiblity
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
| Post Reply |
| Thread Tools | |
|
|