The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello to all,
I want to print part of a post using (like the first 100 words) the vB_BbCodeParser. If I use PHP sometimes I cut thre string in the middle of somewhere where I should not and I cannot display the html correctly. For example: PHP Code:
Here, the link does not work because I cut the code incorrectly. HTML Code:
<span style="font-fam...<a href="thr |
#2
|
||||
|
||||
![]()
Is this for vB5? Looks likes not.
Anyway, why not let the browser (via CSS) truncate the text and add ellipsis (...) depending on how wide the container of the text is? PHP Code:
Code:
.review-text .pagetext { width: 90%; } |
Благодарность от: | ||
MarkFL |
#3
|
|||
|
|||
![]()
Hello noypiscripter and thank you for your answer.
You are right, I am using vB 4 i posted in the wrong forum (Im sorry, hope that the moderators move this thread to the correct place). Ill check if your solution works. |
Благодарность от: | ||
MarkFL |
#4
|
||||
|
||||
![]() Quote:
![]() |
#5
|
||||
|
||||
![]() Quote:
Code:
.review-text .pagetext { width: 90%; } Code:
.review-text .pagetext { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 90%; } |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|