Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

add some characters in the intro test
(1 viewing) (1) Guest
Universal booking and reservations component for Joomla!.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: add some characters in the intro test

add some characters in the intro test 12 years, 1 month ago #33986

Hi i have a problem with the intro test of the item in objects view i can't add some characters neither if i configure in the control panel nor i change the code here

AHtml::getReadmore($subject->introtext, $config->readmoreLength);

in the control panel is set 2500 but it's less than 2500 even if i change this way

AHtml::getReadmore($subject->introtext, 2500);

it's less

this is the code with some test if i use substr the page is broken
 
if ($config->displayReadmore) {
//$a=substr($subject->introtext, 0, 200);
//$a= AHtml::getReadmore($subject->introtext, $config->readmoreLength);
$a= AHtml::getReadmore($subject->introtext, 3000);
//$a= substr($subject->introtext, 0, 2500);
$b=" Town";


could you help me? thank you
Last Edit: 12 years, 1 month ago by surferbloggy.
The topic has been locked.

Re: add some characters in the intro test 12 years, 1 month ago #34006

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

I am not sure what problem do you have.
Control panel should work only with 1 bug. There was problem that it always cut minimally last word.
What characters you can not add? How looks your description in administration and how it looks printed on frontend?
ARTIO Support Team
The topic has been locked.

Re: add some characters in the intro test 12 years, 1 month ago #34012

in the intro test there is the address of the restourant for example i can read Piazza Castello, 1 but i must add the town with php becouse it's cut here
Piazza Castello, 1 and i 've done this way
 
if ($config->displayReadmore) {
 
$a= AHtml::getReadmore($subject->introtext, 3000);
$b=" Milano";


and
<div><?php echo $a.$b; ?></div>


so if you tell me the problem is with the last word i add some space to fix it
The topic has been locked.

Re: add some characters in the intro test 12 years, 1 month ago #34058

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

try to modify file: administrator/components/com_booking/helpers/html.php
There should be line (around 562 row):

if ($length) {

Modify it to:

if ($length && (mb_strlen($text, 'utf8') > $length)) {
ARTIO Support Team
The topic has been locked.

Re: add some characters in the intro test 12 years, 1 month ago #34091

now it works, thank you bye
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný