Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

Feedback - Make RSEvents intro layout EventDesc<x>ription more flexible

Welcome guest,
You have 1 votes remaining.

40 votes

Make RSEvents intro layout EventDescription more flexible

by anonymous on 15 Jul 2010 03:00 | 978 Hits | 0 comment(s)

At the moment the EventDescription gets reformatted by some hardcoded syntax before it gets shown in the "Event Intro List view". The code in /views/events/view.html.php strips the html tags and shortens the text. Make it more dynamic. Give the option to turn of the stripping and shortening and put in logic that displays the description until the "readmore" tag . I core hacked the view.html.php with this code: Replaced this line: $objList->EventDescription = rseventsHelper::strip_html_tags(rseventsModelEvents::shorten($objList->EventDescription)); With: $EventDescriptionArray = explode('', $objList->EventDescription); $objList->EventDescription = $EventDescriptionArray['0']; Of course you need to make the code much nicer but i guess you get the idea. Hardcoded things are never good for professional customization.

Yahoo! twitter
Status: none Subscribe



1000 Characters left

Antispam Refresh image Case sensitive

How many votes ?

close

Please select the appropiate flag

Spam Inappropriate Duplicate Wrong Category

Please select the correct category

close

Please select the category

close