Home aeyStudio
Welcome Guest · Registration
Resources
Download Seportal
Demo Site
SePortal Sites

Users
Username:

Password:

Log me on automatically next visit?


» Forgot password
» Registration

Topics
Home
Seportal (5)
News (3)

Who is Online
Currently active users: 2
There are currently 0 registered user(s) (0 among them invisible) and 2 guest(s) online.

Random Image
Ana Sayfa/Home

Ana Sayfa/Home
Comments: 0
zebaniz

Powered By
Powered by SePortal

Rate SePortal at
Listed at Hot Scripts in PHP

Scripts.com


ScriptSearch.com



Add Reply New Topic

> snippet - snippet size edit
 
 
aswinprakesh87
Posted: 13.08.2010 - 13:28
Quote


Member
*

Group: Üyeler
Total posts: 13
User No: 289
Join Date: 28.07.2010 10:00



 
hi friends,
  How to rezise snippet and descriptio size in articel posting.

Offline aswinprakesh87
Top
 
zebaniz
Posted: 16.08.2010 - 11:43
Quote


Administrator
Group Icon

Group: Admin
Total posts: 306
User No: 1
Join Date: 01.01.2007 00:00



 
Open submit.php;
1- Find (line 569);
PHP

if ($snippet == "") { 
$error 1
$field_error preg_replace("/".$site_template->start."field_name".$site_template->end."/siU"str_replace(":"""$lang['field_snippet']), $lang['field_required']); 
$msg .= (($msg != "") ? "
"").$field_error
}

and add after;
PHP

if (!empty($config['max_post_length']) && strlen$snippet ) > ($config['max_post_length']) ) { 
$msg .= (($msg != "") ? "
"").$lang['field_snippet'].": ".$lang['post_too_long']; 
$error 1

if (!empty(
$config['max_post_length']) && strlen$article ) > ($config['max_post_length']) ) { 
$msg .= (($msg != "") ? "
"").$lang['field_article'].": ".$lang['post_too_long']; 
$error 1
}

2- Find (line 747);
PHP

if ($captcha_enable_upload && !captcha_validate($captcha)) { 
$msg .= (($msg != "") ? "
"").$lang['captcha_required']; 
$error 1
}

and add after;
PHP

if (!empty($config['max_post_length']) && strlen$snippet ) > ($config['max_post_length']) ) { 
$msg .= (($msg != "") ? "
"").$lang['field_snippet'].": ".$lang['post_too_long']; 
$error 1

if (!empty(
$config['max_post_length']) && strlen$article ) > ($config['max_post_length']) ) { 
$msg .= (($msg != "") ? "
"").$lang['field_article'].": ".$lang['post_too_long']; 
$error 1
}

3- Open global.php;
Find (line 180);
You can change it if you like:
PHP

$config
['max_post_length'] = '3000'// leave blank if no check

Offline zebaniz
Top

Add Reply New Topic



Contribute | Forums | Gallery | Calendar | Links | Downloads | Members | Search | Guestbook | Article Directory

Powered by SePortal 2.5
Copyright © 2007-2012 SePortal.org