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 - Marcovich

Pages: 1 [2] 3 4
16
Mods & Plugins (Requests & Discussions) / Re: Problam with search
« on: July 28, 2009, 06:24:12 PM »
Working great but now i have this error:

Notice: Undefined variable: setperpage_dropdown in /home/backgrou/public_html/includes/page_header.php on line 426

thats when im  trying to search in specific category:
  $setperpage_dropdown .= "<input type=\"hidden\" name=\"cat_id\" value=\"".$cat_id."\" />\n"; - this is the line

here the whole code:
Code: [Select]
//--- Set Images Sort Dropdown ------------------------
//-----------------------------------------------------
  $imgsort_dropdown="\n<select name=\"imagesorder\" class=\"setperpageselect\">\n";
  foreach ($image_order_optionlist as $key => $val) {
    $imgsort_dropdown .= "<option value=\"$key\"";
    if ($config['image_order'] == $key) {
      $imgsort_dropdown .= " selected=\"selected\"";
    }
    $imgsort_dropdown .= ">".$val."</option>\n";
  }
  $imgsort_dropdown .= "</select>\n";
  foreach ($image_sort_optionlist as $key => $val) {
  $imgsort_dropdown .= "<INPUT type=\"radio\" name=\"imagessort\" value=\"$key\"";
  if ($config['image_sort'] == $key) {
      $imgsort_dropdown .= " checked";
  }
  $imgsort_dropdown .= ">".$val."\n";
  }
if ($cat_id != 0) {
  $setperpage_dropdown .= "<input type=\"hidden\" name=\"cat_id\" value=\"".$cat_id."\" />\n";
}
if (isset($show_result) && $show_result == 1) {
  $imgsort_dropdown .= "<input type=\"hidden\" name=\"show_result\" value=\"1\" />\n";
}
$site_template->register_vars("imgsort_dropdown", $imgsort_dropdown);
$imgsort_dropdown_form = $site_template->parse_template("imgsort_dropdown_form");
$site_template->register_vars("imgsort_dropdown_form", $imgsort_dropdown_form);

$site_template->un_register_vars("imgsort_dropdown");
unset($imgsort_dropdown);
unset($imgsort_dropdown_form);
//-----End Images Sort Dropdown------------------------

17
Mods & Plugins (Requests & Discussions) / Problam with search
« on: July 28, 2009, 03:09:32 PM »
Hey all,

I have add this recently:
    "thumbnail_show_url" => $script_url."/data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file'],

and now when im going to search.htm im getting this error:

Notice: Undefined variable: script_url in /home/backgrou/public_html/includes/functions.php on line 946

in line 946 you can see what i have add:
    "thumbnail_show_url" => $script_url."/data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file'],

Plase help?
Thanks.

18
Mods & Plugins (Requests & Discussions) / Resize image plugin
« on: July 28, 2009, 01:40:13 PM »
Hey all,

I would like to create a plugin that i'll be able to click on button and it will resize original image into new size with the same name in new folder for example:
the original resolution is:

http://www.backgroundscity.net/data/media/790/Lucky 20Star 20(66).jpg- original size for example 1600X1200

So i want that the plugin will resize the image (width that i'll choose, i'll do it manualy through the code)


http://www.backgroundscity.net/data/media/790/Folder/Lucky 20Star 20(66).jpg- resized for example to 600X400

Please i saw some mods here, but i dont like them.
Let me know if you can help me.

19
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits,i.image_group,i.image_group_image, c.cat_name, u.user_name FROM (4images_images i, 4images_categories c) LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id = 382 AND c.cat_id = i.cat_id AND NOT i.image_group <> i.image_group_image ORDER BY i.image_hits DESC LIMIT 4
Unknown column 'i.image_group' in 'field list'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/backgrou/public_html/includes/db_mysql.php on line 116

what to do? :)

20
Hey all, i would like to make 5 or 4 images in a row in every category and it will be "Best wallpapers of category cars" for examples or maybe Random will be better if that wont be to heavy on the database.

Would like to know if someone made this mod or something similar, thanks. :)

21
OK :)
Let assume i have page in template thats called : Bannerbar.html, like header.html or footer.html, i would like to call it {Bannerbar}
When i'll put this code : {bannerbar} it will put the code from Bannerbar.html

As the system do with {header} and {footer} tags.

Thanks!

22
Sorry for all these questions, but where is the "right place"? i dont know where and i got error when i put the code in bad places.

Thanks.

23
Installation, Update & Configuration / Re: Imagemagick Modify
« on: July 25, 2009, 03:56:23 AM »
Well nicky have look into my files and made some changes and still nothing its not working you can also see:
http://www.backgroundscity.net/nicky/im_test.php

24
in functions its not working, what it is xx.php?

thanks.

25
Hey all,
I have a question, how can i make "file.html" to code like this: {file}

Thanks.

26
Its ok now :)

27
Hi all, right now its :
Logged in as: (br)
Username

I would like to change it to one row
Logged in as: Username.

Where i can edit it?

Thanks.

28
Great thanks! :)
Solved.

29
Here some example for thumbnail code:

    "thumbnail" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),

    "thumbnail_openwindow" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link, 1),

i would like to get the url of the thumbnail and not to get the image.
Someone can help me?

By the way i dont want to change the current function, i want to add one more.
thansk.
for example {thumbnail_show_url}


30
Mods & Plugins (Requests & Discussions) / More than 1 random image
« on: July 22, 2009, 05:59:38 PM »
I would like to change my site and maybe you can help me,
I would like to put more random images in the main page, and put the first, second.... sixth that have the best grades (best voting)

Thanks.!

Pages: 1 [2] 3 4