Elxis CMS Forum
Extensions => Components => Topic started by: babis1 on November 07, 2010, 08:26:45
-
i need more characters here $row->ddesc (in image description), how can i change the default ?
-
Please be more spesific.
Where (file, line) is the '$row->ddesc' ? It may be solved by either changing a line of code or modifing the database...
-
components->com gallery-> gallery.html.php line 291 ....... <div class="image-desc"><?php echo $row->ddesc; ?></div>
or
components->com gallery-> gallery.php line 226....$row->ddesc = $this->getDialected($row, 'description');
i need the $row something like that
components->com gallery-> gallery.html.php line 41
$title = (eUTF::utf8_strlen($row->dtitle) > 100) ? eUTF::utf8_substr($row->dtitle, 0, 20).'...' : $row->dtitle; :)
-
data...help ? vote ? ;D
-
components->com gallery-> gallery.html.php line 291 ....... <div class="image-desc"><?php echo $row->ddesc; ?></div>
or
components->com gallery-> gallery.php line 226....$row->ddesc = $this->getDialected($row, 'description');
There is a function named : getDialected(2 arguments) on the file gallery.php.
We must see what this function does.
i need the $row something like that
components->com gallery-> gallery.html.php line 41
$title = (eUTF::utf8_strlen($row->dtitle) > 100) ? eUTF::utf8_substr($row->dtitle, 0, 20).'...' : $row->dtitle; :)
On this line make a test if the title description length is more than 100 characters then type the title of dercription from the begging (0) till 20 characters and adds the '...' at the end of that string.
If title of the description is not more than 100 characters then the $title = $row->dtitle. ;)
-
yes i see this function getDialected(2 arguments) and for that is little bit complicate for me , for the $title i havnt problem i write only for example ... but ... i make a test and give in ($row->dtitle) > 100) 100 the default is i thing 23 and after i give a sort image title and big description text so then there isnt a problem i see all the description but i dont thing that there is a connection with $row dtitle and $row ddesc...or not ?
-
No there is not a connection between them.
There is a case condition inside of the function.
I must see an example page in order to understand what you mean.
I use the ios_gallery and i don't see any limitation about number of characters that display on image description.
As i can see on the source code there isn't any limitation.
The only limitation is on title.
-
i delete all the old pictures and make new pictures with titles and descriptions and now i havent problem, i dont know the only change from me it was here $title = (eUTF::utf8_strlen($row->dtitle) > 100) ? eUTF::utf8_substr($row->dtitle, 50, 50).'...' : $row->dtitle;
..............anyway thanks for your time, i am not sure that the problem is fixed, i try it tomorrow
-
eUTF::utf8_substr($row->dtitle, 50, 50)
You don't want to do that, this is wrong...
If you don't know how to use a function read the f...ing manual (http://php.net/manual/en/function.substr.php)!
And please do not put php code or html in your post subjects.
-
yes its wrong there, but still i cant found why yesterday after some characters gives me ... (dots), for the subject i doing that like fast way ... :'(