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

Pages: [1] 2 3 4 5 ... 18
1
Discussion & Troubleshooting / Re: e-mails admin of new posts
« on: November 23, 2009, 07:03:57 PM »
Did you check your admin control panel.

under settings there is a option for "Notify by email upon user upload"
Atleast there is in 1.7.7

2
In member.php

Find:
Code: [Select]
     $media = $site_template->parse_template("media/".$file_extension);
      $content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";

Replace with:  (for index.php redirect)
Code: [Select]
     $media = $site_template->parse_template("media/".$file_extension);
 $media .= '<meta http-equiv="refresh" content="4;url='.$site_sess->url(ROOT_PATH."index.php").'">';
      $content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";

or with: (for details.php redirect)
Code: [Select]
     $media = $site_template->parse_template("media/".$file_extension);
 $media .= '<meta http-equiv="refresh" content="4;url='.$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id).'">';
      $content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";

3
Chit Chat / Re: 4image Site Collection
« on: October 10, 2009, 04:31:39 AM »

4
Discussion & Troubleshooting / Re: How to register a new global variable?
« on: October 08, 2009, 04:50:47 PM »
You can define the folder as a constant

In / includes / constants.php

above
?>

Add

define('DOWNLOAD_DIR''TheNameOfTheFolder');

5
Change
if ($bgcounter == 2)

to

if ($bgcounter == 1)

In V@no's code to have the ad after the first row of thumbs

6
Discussion & Troubleshooting / Re: I can't find code {thumbnails}
« on: October 08, 2009, 03:52:48 PM »
That template tag is built in your categories.php as
$thumbnails

and then is registered as a template tag here
$site_template->register_vars("thumbnails"$thumbnails);

7
Sorry about that, forgot to change that.

My post above is updated

8

In register.php


Find:
Code: [Select]
    $activationkey = trim($HTTP_GET_VARS['activationkey']);
    $sql = "SELECT ".get_user_table_field("", "user_name").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_activationkey")."
            FROM ".USERS_TABLE."
            WHERE ".get_user_table_field("", "user_activationkey")." = '$activationkey'";

Replace with:
Code: [Select]
    $activationkey = trim($HTTP_GET_VARS['activationkey']);
//Start Auto-login After Activation
    $sql = "SELECT ".get_user_table_field("", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_activationkey")."
            FROM ".USERS_TABLE."
            WHERE ".get_user_table_field("", "user_activationkey")." = '$activationkey'";
//End Auto-login After Activation

Find:
Code: [Select]
        $site_email->set_body("activation_success", $config['language_dir']);
        $site_email->send_email();
      }

After Add:
Code: [Select]
  //Start Auto-login After Activation
  if ($site_sess->login($row['user_name'], $row['user_password'], 1, 1, 1)) {
    redirect("index.php");
  }
  //End Auto-login After Activation

In includes / sessions.php

Find:
Code: [Select]
  function login($user_name = "", $user_password = "", $auto_login = 0, $set_auto_login = 1) {
Replace With:
Code: [Select]
  function login($user_name = "", $user_password = "", $auto_login = 0, $set_auto_login = 1, $activate= 0) {
Find:
Code: [Select]
    $user_password = md5($user_password);
Replace with:
Code: [Select]
//Start Auto-login After Activation
    $user_password = ($activate == 0) ? md5($user_password) : $user_password;
//End Auto-login After Activation

9
Give this a try, it is untested

In /includes/functions.php

Find:
Code: [Select]
"cat_description" => format_text($cat_cache[$category_id]['cat_description'], 1),
After add:
Code: [Select]
"cat_description_short" => (strlen($cat_cache[$category_id]['cat_description']) > 20) ? Cut_String($cat_cache[$category_id]['cat_description'], 20)."..." : $cat_cache[$category_id]['cat_description'],
***In the above code the 20 represents the max length of description in characters, you can change this (twice)  to fit your need ***

Above:
Code: [Select]
?>
Add:
Code: [Select]
function Cut_String($string, $max_length){  
    if (strlen($string) > $max_length){  
        $string = substr($string, 0, $max_length);  
        $pos = strrpos($string, " ");  
        if($pos === false) {  
                return substr($string, 0, $max_length)."...";  
        }  
            return substr($string, 0, $pos)."...";  
    }else{  
        return $string;  
    }  
}

In your category_bit.html

Find:
Code: [Select]
{cat_description}
Replace with:
Code: [Select]
{cat_description_short}

10
Chit Chat / Re: Attachments inline view
« on: October 02, 2009, 02:21:25 PM »
Nice mod V@no!  8)

11
Discussion & Troubleshooting / Re: How to get category thumbnails like this
« on: September 30, 2009, 10:04:50 PM »
Welcome to the forum

This is a mod that already exists, and would have been found easily with a search.

[MOD] Category Image v1.0.2

12
in your functions.php

find
Code: [Select]
}
     $text = str_replace("[hr]", "<hr>", $text);
  }
  if ($html !== 2) {
      $text = nl2br(trim($text));
      $text = replace_url($text);
}
  if ($word_wrap && $text != "") {
    $text = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i", " \\1\n", $text);
  }
  $text = str_replace("\n", "<br />", $text);
  $text = str_replace("\\'", "'", $text);
  $text = str_replace("\\\"", "&quot;", $text);
  return replace_badwords(stripslashes($text));
}

replace with

Code: [Select]
}
    $text = str_replace("[hr]", "<hr>", $text);
}
  if ($html !== 2) {
      $text = nl2br(trim($text));
      $text = replace_url($text);
}
  if ($word_wrap && $text != "") {
      $text = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i", " \\1\n", $text);
      $text = replace_badwords($text);  
}
  $text = str_replace("\n", "<br />", $text);
  $text = str_replace("\\'", "'", $text);
  $text = str_replace("\\\"", "&quot;", $text);

  return $text;
}

13
Ok , i made a update

try this.

14
Well you replaced the wrong function, you replaced the one that the instructions told you to block comment out on the first page.

I fixed it, and attached the file

15

but now i got this error

http://i34.tinypic.com/2rmnvk4.jpg


this picture in setting user and email admin  the email show in out button...

what i can to do ?



http://www.4homepages.de/forum/index.php?topic=4745.msg20105#msg20105

Pages: [1] 2 3 4 5 ... 18