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 - Buggy Driver

Pages: 1 [2]
16
} is missing

Dorn that’s the second time this happens

empty search words
Strange  I tested this en I don’t get an empty string in the stats even tested a space

Did you follow the instructions correctly?  Is it possible to post your search.php?


17
I cant open the image so I hope this is it

In search_stats.php

Look for
Code: [Select]
foreach ($lang['search_stats_order_options'] as $key => $val) {
$sort_dropdown .= "<INPUT type=\"radio\" name=\"order\" value=\"$key\"";
if ($order == $key) {
    $sort_dropdown .= " checked";
}
$sort_dropdown .= ">".$val."\n";
}

change to
Code: [Select]
/*
foreach ($lang['search_stats_order_options'] as $key => $val) {
$sort_dropdown .= "<INPUT type=\"radio\" name=\"order\" value=\"$key\"";
if ($order == $key) {
    $sort_dropdown .= " checked";
}
$sort_dropdown .= ">".$val."\n";
}
*/

$sort_dropdown .="\n<select name=\"order\" class=\"setperpageselect\">\n";
foreach ($lang['search_stats_order_options'] as $key => $val) {
  $sort_dropdown .= "<option value=\"$key\"";
  if ($order == $key) {
    $sort_dropdown .= " selected=\"selected\"";
  }
  $sort_dropdown .= ">".$val."</option>\n";
}
$sort_dropdown .= "</select>\n";

18
I got this Mod to work in 4images 1.7.4


There are some changes in search_stats.php because the original dint use search_stats_sort_dropdown_form in 4images 1.7.4

search_stats_install.rtf is adapted for 4images 1.7.4

the original search_stats.php is still in the zip file  remove the org_ from the file name before uploading to your site.


I hope this is of use to someone (it woks for me)


EDIT
--------------------------------------------------------------------------------------------
Copy and past is a nice thing
if you select everything that needs to be copied of course. :wink:

I updated the search_stats_install.rtf file   

Thanks Cristina.


19
Mods & Plugins (Releases & Support) / Re: [MOD] Download limit v1
« on: April 16, 2007, 02:12:56 AM »


Same problem hire  1.7.4  --> redirect to the index.php  --> no error no message.

it looks like the redirect($url); is wrong
so after a couple try and error I reached this solution

Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
  if (!check_dl_limit(0))
  {
    $site_sess->set_session_var("msg_error", addslashes($lang['dl_limit_reached']));
//    redirect($url);
    redirect("details.php?image_id=".$image_id);
    exit;
  }
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/


but there are 2 places in the download limit where a redirect($url); occurs
the other is always bin there but now after the redirect there is a error message so……

in the index php look for

Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream
));

above insert the same code as in details.php
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
if ($msg_error = $site_sess->get_session_var("msg_error"))
{
  $msg .= ((empty($msg)) ? "" : "<br />").stripslashes($msg_error);
  $site_sess->drop_session_var("msg_error");
}
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/

now the message will be on the index page to.


20
Mods & Plugins (Requests & Discussions) / Re: Pemission ?
« on: April 13, 2007, 11:51:28 AM »

21
Plugins / Re: [Plugin] Notepad in Control Panel
« on: April 05, 2007, 11:49:27 PM »
Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in ...4images/admin/plugins/notepad.php on line 7

Code: [Select]
$root_path = (!eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "../" : "../../";



DB Error: Bad SQL Query: UPDATE admin_notes SET notes='', width=, height=
You have an error in your SQL syntax near ' height=' at line 1

Code: [Select]
if ($action == "update") {
global $site_db;

// extra code to fill the $var
$notes = $_POST["notes"];
$width = $_POST["width"];
$height = $_POST["height"];
//


$sql = "UPDATE admin_notes SET notes='$notes', width=$width, height=$height";
$result = $site_db->query($sql);
printf ("Notepad Updated<br>");
}

Pages: 1 [2]