Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cch

Pages: 1 2 [3] 4 5 6 7
31
In unmodified 4images there is only one such line.
I given, I removed 1 line of that code added the main code again and still got a white page.

32
Restore backups and try install mod again. There must an error you've made.
Hi V@no

I get a white page when I enter this code:

Code: [Select]
//Begin configuration:

$perpage = 10; //how many categories per page
$cat_text = "Found {total_cat_images} categories on {total_pages} page(s). Displayed category {first_page} to {last_page}";

//u can use those tags:
//{total_cat_images} - total categories
//{total_pages} - total pages
//{first_page} - displayed from (number first category displayed)
//{last_page} - displayed to (number last category displayed)
//End configuration

$page = (isset($HTTP_GET_VARS['cat_page'])) ? $HTTP_GET_VARS['cat_page'] : 0;
if (!class_exists("Paging")) {
  include(ROOT_PATH.'includes/paging.php');
}
$link_arg = $site_sess->url(ROOT_PATH.($cat_id ? "categories.php?".URL_CAT_ID."=".$cat_id : "index.php"));
$getpaging = new Paging($page, $perpage, $total, $link_arg, $cat_text, "", "cat_page");
$offset = $getpaging->get_offset();
$limit = ($offset + $perpage > $total) ? $total : $offset + $perpage - 1;
$total = $limit - $offset;
$site_template->register_vars(array(
  "cat_paging" => $getpaging->get_paging(),
  "cat_paging_stats" => $getpaging->get_paging_stats()
));
$cache = array();
$i = 0;
foreach ($visible_cat_cache as $key => $category_id) {
  if ($i >= $offset && $i <= $limit) {
    $cache[] = $category_id;
    $cache_sql .= (($cache_sql != "") ? ", " : "").$category_id;
  }
  $i++;
}
$total = count($cache);

Also there a 2 lines with this code:

Code: [Select]
  $total = sizeof($visible_cat_cache);
I've tried after both lines and still get the white page???

33
Discussion & Troubleshooting / Re: Auto Cat Sorting
« on: July 18, 2009, 09:43:20 PM »
Hi budduke

I've fixed this myself, it was so simple I'm suprised that no other member helped me.

Thanks

34
Hi V@no

I'm using v1.7.7 and have added all the code but I get a white page when I go to a Cat.

Thanks

35
Discussion & Troubleshooting / Auto Cat Sorting
« on: July 14, 2009, 06:40:36 PM »
Hi

On a previous version of 4images I found a piece of code that auto sorted the cats so I didn't need to use the dropdown to place it at the beginning or at the end etc...

Now I tried to find the code in the file using version 1.7.7 but of no avail.

Is there a way of making this work in 1.7.7

Here's the code:

Search for this line in global.php and admin/categories.php

Code: [Select]
ORDER BY cat_order, cat_name ASC";
and replace it with
Code: [Select]
ORDER BY cat_name ASC";
Jan posted this code on this thread

http://www.4homepages.de/forum/index.php?topic=1254.0

As I said the code isn't in the 2 files so if someone can give me a piece of code to get it working I'd be grateful.

Thanks

36
Hi

Does this work with 1.7.7?

Thanks

37
Discussion & Troubleshooting / Re: Sorting Cats in 1.7.7
« on: July 12, 2009, 08:55:09 PM »
Hi

Sorry I meant auto sort so when I add a new cat it slots in, in order without me have to sort it myself.

38
Discussion & Troubleshooting / Sorting Cats in 1.7.7
« on: July 12, 2009, 07:44:43 PM »
Hi

I've tried the old ways of sorting cat in the new version but had no luck. Does anyone know how to?

Thanks

39
Discussion & Troubleshooting / Re: Total GB
« on: April 17, 2009, 10:17:07 PM »
Hi V@no

I placed this code Nicky provided in my functions.php file and then added the 2nd code to my home.html file and the Admin CPanel went white, instead I added the 1st code to index.php file and all is working.

Thanks for your help :)

40
Discussion & Troubleshooting / Re: Total GB
« on: April 16, 2009, 09:42:16 PM »
Anybody?

41
Discussion & Troubleshooting / Re: Category Dropdown
« on: April 13, 2009, 05:36:24 PM »
Hi

Thank you for your help but this doesn't work, anymore ideas :?:

42
Discussion & Troubleshooting / Category Dropdown
« on: April 13, 2009, 05:00:40 PM »
Hi guys

In the Category Dropdown there are 2 options:

1. Select Category
2. ---------------------

How do you remove these so my 1st Category display as default, or is there a way of adding an option so you can search in all my Categories, I only have 1 Category which is "Audio" but I want to add an option called "All Covers" so if they choose that they can search in all my Categories. This will be useful when I add more Categories later.

Thanks

43
Discussion & Troubleshooting / Re: Total GB
« on: April 12, 2009, 11:05:52 PM »
I've currently lost my site so I restored this code but it makes my Admin CPanel show a white page.

Any ideas

Thanks

44
Discussion & Troubleshooting / Re: Select an Image File!
« on: April 12, 2009, 07:31:09 PM »
Hi V@no

The strange thing is via FTP the images apply ok even the thumbnails, is this normal?

Thanks

45
Discussion & Troubleshooting / Select an Image File!
« on: April 12, 2009, 03:57:37 PM »
Hi all

When I try to upload a single image, I select the image enter the title and click submit, it seems like its processing upload but after so long I get "Select an Image File!".

This also happens on Multi Upload even tho all the fields have images to upload.

Any ideas, some images upload some don't!

Thanks

Pages: 1 2 [3] 4 5 6 7