PDA

View Full Version : Show titles in submit.tpl limit?


cid
10-23-2008, 04:28 PM
php version: 3.3.0
------------------
Hello,

I have the following problem and need help.
An additional query in the submit.tpl the limit of the securities. An approach I have already started.

submit.tpl (Edit in red color) :
Content visible to registered users only.

submit.php (Edit in red color) :
Content visible to registered users only.

Even with a query IF it will not work:
Content visible to registered users only.

The limit of the title will be displayed, but an entry is impossible.

I would be delighted if someone in this case would find a solution.

Yours sincerely
Joe

James
10-23-2008, 05:34 PM
//Determine length of title field $TitleLimit = (isset ($data['TITLE']) && strlen (trim ($data['TITLE'])) > 0 ? TITLE_MAX_LENGTH - strlen (trim ($data['TITLE'])) : TITLE_MAX_LENGTH); $tpl->assign('TitleLimit', $TitleLimit);


I take it it really si this:
//Determine length of title field
$TitleLimit = (isset ($data['TITLE']) && strlen (trim ($data['TITLE'])) > 0 ? TITLE_MAX_LENGTH - strlen (trim ($data['TITLE'])) : TITLE_MAX_LENGTH);
$tpl->assign('TitleLimit', $TitleLimit);

Right?

Got an example live I can see?

cid
10-23-2008, 06:11 PM
Hello James,

Thanks for the quick response :-)

I have the file .htaccess disabled.

The link I sent you via PN.

If I change the line:

/ / Determine length of title field limit $ title = (isset ($ data [ 'TITLE']) & & strlen (trim ($ data [ 'TITLE']))> 0? TITLE_MAX_LENGTH - strlen (trim ($ data [' TITLE '])): TITLE_MAX_LENGTH); $ tpl-> assign (' Title Limit ', $ title limit);

disable. I can enter the link.

Yours sincerely
Joe

cid
10-23-2008, 06:14 PM
Hello James,

Thanks for the quick response :-)

I have the file .htaccess disabled.

Link:

{broken links removed}

Template:

{broken link removed}

If I change the line:

/ / Determine length of title field limit $ Title = (isset ($ data [ 'TITLE']) & & strlen (trim ($ data [ 'TITLE']))> 0? TITLE_MAX_LENGTH - strlen (trim ($ data [ 'TITLE' ])): TITLE_MAX_LENGTH); $ tpl-> assign ( 'Title Limit', $ title limit);

disable. I can enter links.

Yours sincerely
Joe