Friday, 24 October 2014 15:24
beggarly

Showing original formatting of the introtext is it possible?

Groups your news by sections or by categories

Showing original formatting of the introtext is it possible?

Postby angstudios » Tue Apr 22, 2008 6:58 am

version for J1.0.xx, installed and running flawlessly with one exception - showing the {mosimage} tag in the content displayed along with image itself

could be any workaround? on J1.5 version there is no such bug
Last edited by angstudios on Wed Apr 15, 2009 3:05 am, edited 65535 times in total.
angstudios
Fresh Boarder
Fresh Boarder
 
Posts: 4
Joined: Tue Apr 22, 2008 7:47 am

Re:Showing mosimage tag in the content

Postby chus » Tue Apr 22, 2008 7:20 pm

Hi

Please try downloading and installing the current version. We have updated it to remove these tags.

Thank you for your feedback!
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re:Showing mosimage tag in the content

Postby angstudios » Wed Apr 23, 2008 6:36 pm

yes, it worked

I thank you very much for your support and especially for the software you sharing - it's really god job, well done. the only comparable module around that I could adjust for my needs, thank you!

I only have one question - is there a way to keep original intro formatting (for example display a numbered list) in the module content instead of plain text? I've managed to add some styling to it (adding h5 tag to the title and p tag to the content), but possibility to keep original formatting would be very nice touch up

thank you again for your great work :)
angstudios
Fresh Boarder
Fresh Boarder
 
Posts: 4
Joined: Tue Apr 22, 2008 7:47 am

Re:Showing mosimage tag in the content

Postby chus » Wed Apr 23, 2008 8:13 pm

It is a little complicated. If we left the tags, most of them would probably remain unclosed when shortening the text, which would generate multiple html invalidations. That is why we have decided to remove them at line 22, helper.php:
Code: Select all
    $str = trim( strip_tags( $str ) );

However, you can delete this line if you still want to keep your introtext tags.
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re:Showing mosimage tag in the content

Postby angstudios » Thu Apr 24, 2008 5:00 am

wow, it works too!!!

anyway I format intros that going into the module that it all fits in container, so there is no text shortening - I put 1500 characters limit. That wouldn't be a problem, right?

Seems to be working perfectly! Thank you again!!
angstudios
Fresh Boarder
Fresh Boarder
 
Posts: 4
Joined: Tue Apr 22, 2008 7:47 am

Re:Showing mosimage tag in the content

Postby chus » Fri Apr 25, 2008 6:01 pm

Right, it should be no problem, although I haven't tested it so much with all introtext possible tags!

One thing for sure is that the module will soon be updated so you can easily add the heading and the paragraph tags just like you did.

Thank you!
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Showing original formatting of the introtext - is it possibl

Postby angstudios » Sun Apr 12, 2009 5:26 am

hi that's me again
a year later but with the same question :roll:

this time for J1.5 version: i need the module to show original formatting of the intro text. i've tried to find and comment the strip_tags line, but after that i have 2 images - 1 resized and 1 of original size
is there any workaround on it?

by the way, i still use your module on J1.0 site whole this time, it still the best - thank you! doing exactly what i need, but now i think to move to J1.5...
angstudios
Fresh Boarder
Fresh Boarder
 
Posts: 4
Joined: Tue Apr 22, 2008 7:47 am


Return to Global News



Who is online

Users browsing this forum: No registered users and 0 guests