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 - V@no

Pages: 1 ... 7 8 9 10 [11] 12 13 14 15 ... 741
151
Discussion & Troubleshooting / Re: What is wrong with my emails in gallery?
« on: September 20, 2011, 12:32:19 PM »
I guess the simplest solution would be replace the whole format_text function with default one:
function format_text($text$html 0$word_wrap 0$bbcode 0$bbcode_img 0) {
  if (
$word_wrap && $text != "") {
    
$text preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i"" \\1\n"$text);
  }

  if (
$html == || $html == 2) {
    
$text safe_htmlspecialchars($text);
  }

  
// Replace { to prevent parsing in templates
  
global $site_template;
  
$text preg_replace(
    
'='.preg_quote($site_template->start).'([A-Z0-9_]+)'.preg_quote($site_template->end).'=Usi',
    
'&#38;#123;\1&#38;#125;',
    
$text
  
);

  if (
$html !== 2) {
    
$text nl2br(trim($text));
    
$text replace_url($text);
  }

  if (
$bbcode == 1) {
    
$search_array = array(
      
"/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
      
"/(\[)(list)(])(.*)(\[\/list\])/siU",
      
"/(\[\*\])/siU",
      
"/(\[\/\*\])/siU",
      
"/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
      
"/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
      
"/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU",
      
"/(\[)(url)(])([^\"]*)(\[\/url\])/siU",
      
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
      
"/javascript:/si",
      
"/about:/si"
    
);
    
$replace_array = array(
      
"<ol type=\"\\5\">\\7</ol>",
      
"<ul>\\4</ul>",
      
"<li>",
      
"</li>",
      
"<a href=\"http://www.\\6\" target=\"_blank\" rel=\"nofollow\">\\8</a>",
      
"<a href=\"\\5\" target=\"_blank\" rel=\"nofollow\">\\7</a>",
      
"<a href=\"http://www.\\5\" target=\"_blank\" rel=\"nofollow\">www.\\5</a>",
      
"<a href=\"\\4\" target=\"_blank\" rel=\"nofollow\">\\4</a>",
      
"<pre>Code:<hr size=1>\\5<hr size=1></pre>",
      
"java script:",
      
"about :"
    
);
    
$text preg_replace($search_array$replace_array$text);
    if (!
$bbcode_img)  {
      
$text preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU""<a href=\"\\5\" target=\"_blank\">\\5</a>"$text);
    }
    else  {
      
$text preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU""<img src=\"\\5\">"$text);
    }
    
$text preg_replace("/(\[)(b)(])(\r\n)*([^\"]*)(\[\/b\])/siU""<b>\\5</b>"$text);
    
$text preg_replace("/(\[)(i)(])(\r\n)*([^\"]*)(\[\/i\])/siU""<i>\\5</i>"$text);
    
$text preg_replace("/(\[)(u)(])(\r\n)*([^\"]*)(\[\/u\])/siU""<u>\\5</u>"$text);

    
$text replace_badwords($text);
  }

  
$text str_replace("\\'""'"$text);

  return 
$text;
}


(don't miss the last bracket ;))

152
Discussion & Troubleshooting / Re: What is wrong with my emails in gallery?
« on: September 20, 2011, 12:15:07 PM »
Please attach your includes/functions.php

format_text function has been changed, but some of the mods that replacing/modifying that function are based on old version, I suspect the problem is in there.

153
Discussion & Troubleshooting / Re: What is wrong with my emails in gallery?
« on: September 20, 2011, 12:11:44 PM »
4images version? Was it upgrade or fresh install?

154
What's in your header.php first 50 lines?

155
Chit Chat / Re: Sorry Guest, you are banned from using this forum!
« on: August 28, 2011, 12:26:56 AM »
Screenshot or it's never happened...(just kidding. (well, not really))

Seriously though, I'm not sure why you get that in firefox and not in chrome, have you tried clear cookies?

156
Plugins / Re: [Plugin] Valid file extensions manager v1.1 (2010-07-04)
« on: August 24, 2011, 04:33:17 AM »
The AVI containers cannot be used for online streaming, you should convert them into FLV for best compatibility.
Even if you manage fix the avi.html template to use Windows Media Player plugin (most likely) it still will have to download .avi file completely before it be able play it.

157
Plugins / Re: [Plugin] Valid file extensions manager v1.1 (2010-07-04)
« on: August 22, 2011, 02:04:22 AM »
Hello and welcome to 4images forum.

This sounds like server's restrictions. Search in ACP (Admin Control Panel) -> phpinfo():
post_max_size
upload_max_filesize

And try upload a file smaller then set in these two settings. If it works, then it's definitely these settings. Then you can try these tweaks:

Cannot upload large files (larger than 2Mb)
Fatal error: Allowed memory size of NN bytes exhausted
 

158
Discussion & Troubleshooting / Re: How Do I Delete a Sub-Category?
« on: August 12, 2011, 02:51:53 AM »
Hello and welcome to 4images forum.

No programmer skills required to manage 4images.
In ACP (Admin Control Panel) on left side you should see a link "Edit categories", click on it and then you should find links to edit and delete for each of your category.

So in the future if you need move a category, all you need to do is edit a category and at the provided dropdown menu select it's parent category where you want it to be.
Also you can use up/down arrow icons to sort categories.

159
Mods & Plugins (Requests & Discussions) / Re: Password lenght
« on: August 09, 2011, 03:18:09 PM »
There are specific laws on password length, composition and encryption.
I just hope there is no law for the maximum length of a password...

160
Mods & Plugins (Requests & Discussions) / Re: Password lenght
« on: August 09, 2011, 02:59:09 PM »
in member.php find:
  if ($current_user_password != $user_info['user_password']) {
    
$msg .= (($msg != "") ? "<br />" "").$lang['update_password_error'];
    
$error 1;
  }


Insert below:
  if (strlen($HTTP_POST_VARS['user_password']) < || !preg_match("#[0-9]#"$HTTP_POST_VARS['user_password']))
  {
    
$msg .= (($msg != "") ? "<br />" "").$lang['update_password_minimum_error'];
    
$error 1;
  }



In register.php find:
    if ($user_password == "") {
      
$msg .= (($msg != "") ? "<br />" "").$field_error preg_replace("/".$site_template->start."field_name".$site_template->end."/siU"str_replace(":"""$lang['password']), $lang['field_required']);
      
$error 1;
    }


Insert below:
    if (strlen($user_password) < || !preg_match("#[0-9]#"$user_password)) {
      
$msg .= (($msg != "") ? "<br />" "").$lang['update_password_minimum_error'];
      
$error 1;
    }



In lang/<your language>/main.php at the end add:
$lang['update_password_minimum_error'] = "Password must be minimum 8 characters long and contain at least one numeric character";


P.S.
Personally I don't understand the reason behind limiting maximum length of a password....I used to have a bank account where password requirement was 6 to 12 characters long...wtf? bank? seriously?

161
You'll needed edit global.php

162
Have you tried upload a new image as a regular member (not admin)?
Do you, as admin, see edit/delete links?

If answer to both questions is "yes", then attach your details.php

164
Discussion & Troubleshooting / Re: problem with categories
« on: July 26, 2011, 07:34:59 AM »
Did you install any modifications related to categories, such as different sort for each category, etc?

Pages: 1 ... 7 8 9 10 [11] 12 13 14 15 ... 741