how can you create rotating testimonials within a joomla module (joomla 1.5) - joomla

I have a new client that has an older 1.5 Joomla site. I don't have much experience with Joomla but I have been able to update it so far. There is a testimonial in a module in the right sidebar. If I add several testimonials they will just continue down the right side. This will create a very long homepage instead of rotating. I know it rotated before but the code was deleted...:(
I know it something very simple but I just have that much experience with Joomla and no one here can help..
Here is what I have
<p>11/26/13</p>
<p><i>“Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam non quam vitae sapien egestas posuere. Nam laoreet lacus in diam bibendum cursus. Phasellus nec commodo enim, vitae aliquam lacus. Nunc ultrices odio vel rutrum elementum. Duis sit amet massa ut nunc suscipit adipiscing at quis ipsum. Donec porta aliquam enim, sed congue nisi placerat et. Curabitur vel porta sem, sed ultrices tellus. Fusce malesuada pulvinar purus a facilisis. Ohio to Texas</i></p><br>Read More...<br mce_bogus="1">

You can install this module:
http://www.dynatec.at/joomla-extensions-modules-plugins-components/content-slider-module-for-joomla-1-5
I have an example here on this site:
http://five-elements-sd.com/center
I did some custom styling to it.

Related

How to use HEREDOC to pass as an argument to a method?

Code example:
create_data_with(
first: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
second: <<~TEXT
Aenean vel ex bibendum, egestas tortor sit amet, tempus lorem. Ut sit
amet rhoncus eros. Vestibulum ante ipsum primis in faucibus orci
luctus et ultrices posuere cubilia curae; Quisque non risus vel lacus
tristique laoreet. Curabitur quis auctor mauris, nec tempus mauris.
TEXT,
third: "Nunc aliquet ipsum at semper sodales."
)
The error is present in this line:
second: <<~TEXT
RuboCop describes it like this:
Lint/Syntax: unterminated string meets end of file
(Using Ruby 3.1 parser; configure using TargetRubyVersion parameter, under AllCops)
second: <<~TEXT
Can you please tell me what should be the syntax? I need to keep the look and use of <<~.
Another option is to move the heredoc after the method call. However, since the heredoc starts on the line following its identifier, your method call must not span multiple lines:
create_data_with(first: "foo", second: <<~TEXT, third: "bar")
Aenean vel ex bibendum, egestas tortor sit amet, tempus lorem. Ut sit
amet rhoncus eros. Vestibulum ante ipsum primis in faucibus orci
luctus et ultrices posuere cubilia curae; Quisque non risus vel lacus
tristique laoreet. Curabitur quis auctor mauris, nec tempus mauris.
TEXT
For longer values, you could use multiple heredocs:
create_data_with(first: <<~FIRST, second: <<~SECOND, third: <<~THIRD)
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
FIRST
Aenean vel ex bibendum, egestas tortor sit amet, tempus lorem. Ut sit
amet rhoncus eros. Vestibulum ante ipsum primis in faucibus orci
luctus et ultrices posuere cubilia curae; Quisque non risus vel lacus
tristique laoreet. Curabitur quis auctor mauris, nec tempus mauris.
SECOND
Nunc aliquet ipsum at semper sodales.
THIRD
With heredocs, the parser expects the exact delimiter to close the literal. You open with TEXT, but you close with TEXT, and ruby doesn't consider this literal closed. However, you can (and should in this case) put the comma after the opening delimiter. Here's a fix:
create_data_with(
first: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
second: <<~TEXT,
Aenean vel ex bibendum, egestas tortor sit amet, tempus lorem. Ut sit
amet rhoncus eros. Vestibulum ante ipsum primis in faucibus orci
luctus et ultrices posuere cubilia curae; Quisque non risus vel lacus
tristique laoreet. Curabitur quis auctor mauris, nec tempus mauris.
TEXT
third: "Nunc aliquet ipsum at semper sodales."
)
You can even call methods this way. For example, the squiggly heredoc (<<~TEXT) was previously done in rails as <<-TEXT.strip_heredoc

How to ignore URL when searching using ElasticSearch?

Hi,I have a set of documents which may contains some texts, but may have URLs inside them:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tincidunt metus a convallis imperdiet. Praesent interdum magna ut lorem bibendum vehicula. Maecenas consectetur tortor a ex pulvinar, sit amet sollicitudin nunc maximus. Pellentesque non gravida ligula, imperdiet pharetra odio. Nunc non massa vitae mauris tempor tempus. Nulla ac laoreet tellus. Nulla consequat tortor eu eros euismod bibendum. Curabitur ante ligula, aliquet at lacus at, pretium convallis eros. Fusce id mi condimentum, tempor lorem ut, pharetra libero.
https://document.io/document/ipsum
In eget eleifend neque. Morbi ex leo, tincidunt non enim ut, rutrum suscipit metus. Cras laoreet ex ut massa consequat condimentum. Aenean finibus eu nisl ut rhoncus. Aliquam finibus nisl risus, id facilisis justo rutrum et. Aenean enim libero, commodo id mi ut, mattis sollicitudin tellus. Aliquam molestie ligula sit amet lorem malesuada, aliquet pretium dolor malesuada. Phasellus fringilla libero in sollicitudin tristique. Quisque molestie, enim et aliquam dapibus, ex erat ultrices nisi, luctus ornare lorem metus eu sapien.
I am using a match query to search words inside the document, however, as you can see sometimes the URL has words that are also part of the actual texts. This is messing the result up. I am just wondering if ElasticSearch has a way for me to simply ignore the URLs and just focus on the texts?
I am using english analyzer for this field at this moment.
You can use Pattern replace character filter in your analyzer. For removing URL from your text you can add this filter to your search analyzer:
Filter:
"char_filter": {
"type": "pattern_replace",
"pattern": "\\b(https?|ftp|file)://[-a-zA-Z0-9+&##/%?=~_|!:,.;]*[-a-zA-Z0-9+&##/%=~_|]",
"replacement": ""
}
This filter will replace URL with empty string so you will not get result from URL match.

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 10015 bytes)

The Full error.
Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 10015 bytes) in /home/mvcolleg/public_html/plugins/system/tcshortcodes/core/tc_shtcodes.php on line 152
Well I only use these in my articles but this item is link on my JU Flashnews.
Here is my code:
[row][col class="span6"] [tab id="tab2" class="tabbale" button="nav-tabs"] [tab_item title="Book Information"]
Leviticus: Brazos Theological Commentary on the Bible
Author:
EPHRAIM RADNER
Publisher:
Anvil Publishing Inc.
Format:
Book Bound
ISBN:
97897127336423
[accordion id="sc-accordion" class="accordion"][accordion_item title='About the Author']consectetur adipiscing elit. Proin ornare consectetur sodales. Nulla luctus cursus mauris at dapibus. Cras ac felis et neque consequat elementum a eget turpis. Aliquam erat volutpat. Integer feugiat sem eu ligula vulputate consequat. Nulla facilisi. Cras vel elit lectus, at fringilla lorem.[/accordion_item]
[accordion_item title='Student Reviews'][testimonial name="Oscar Vidal" designation=" System Administrator" email="email#email.com" url="#"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aliquam laoreet sodales lacinia. Curabitur ut purus tincidunt. Ipsum dolor sit amet, consectetur adipiscing laoreet sodales lacinia ut purus. Anime con saed elitr, sed diam nonu eirmo conse tetur sadipscing elitr.
[/testimonial]
[testimonial name="Jeriel Espenorio" designation=" System Administrator" email="email#email.com" url="#"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aliquam laoreet sodales lacinia. Curabitur ut purus tincidunt. Ipsum dolor sit amet, consectetur adipiscing laoreet sodales lacinia ut purus. Anime con saed elitr, sed diam nonu eirmo conse tetur sadipscing elitr.
[/testimonial][/accordion_item]
[accordion_item title='External Links and Other Sources'] Proin ornare consectetur sodales. Nulla luctus cursus mauris at dapibus. Cras ac felis et neque consequat elementum a eget turpis. Aliquam erat volutpat. Integer feugiat sem eu ligula vulputate consequat. Nulla facilisi. Cras vel elit lectus, at fringilla lorem.[/accordion_item] [/accordion][/tab_item]
[tab_item title="Description"] This volume, like each in the Brazos Theological Commentary on the Bible, is designed to serve the church--through aid in preaching, teaching, study groups, and so forth--and demonstrate the continuing intellectual and practical viability of theological interpretation of the Bible.[/tab_item]
[tab_item title="Gallery"][carousel]
[carousel_item]
Full Cover Page
[/carousel_item]
[carousel_item]
Full Cover Page
[/carousel_item]
[/carousel][/tab_item][/tab] [/col] [/row]
And then I've got this error it seems annoying that I'm happy and contented what I've done then I've got an error since I only use the visual Editor..
Kindly help me with this problem. I'm a newbie in Joomla and I'm using it for 3 days.
I solve it, by writing down a line in "configuration.php" and "configuration.php-dist":
ini_mem('memory_limit','12M');
Try this ;)

Saving data with CreatePHP in Laravel 4

I'm trying to implement https://github.com/flack/createphp with Laravel 4.
I have have a view which outputs some data from the database:
<div class="row editable content" property="sioc:content" data-placeholder="Enter some content..." contenteditable="true" data-medium-element="true">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed semper bibendum tellus at commodo. Nam fermentum odio posuere nulla gravida, quis placerat augue sodales. Vivamus sagittis, ligula eget eleifend congue, nibh erat fermentum neque, a consectetur dui libero imperdiet elit.
I am not sure how to use https://github.com/flack/createphp with Laravel to then save the data once the orgional data has been updated. Like in http://createjs.org/demo/hallo/
I have added midgard/createphp": "0.9.*#dev in composer.json
Can anybody point me in the right direction?
Cheers,
Chris

Only return slimmed down version of feed

I'm trying to create a new yahoo pipe that will only returned a slimmed down version of an xml.
Say my original XML looks like:
<?xml version="1.0" encoding="UTF-8" ?>
<name>Joe bloggs</name>
<age>31</age>
<description>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquam metus id eros blandit vel convallis nunc accumsan. Fusce adipiscing eros a enim feugiat vestibulum. Cras vulputate malesuada neque vel ultricies. Nunc commodo condimentum risus, eu interdum odio rutrum ut. Nullam nec neque eget dolor tristique dignissim sit amet non nibh. Donec sagittis, elit eget tempus laoreet, tellus eros gravida nunc, eu elementum sem turpis eget velit. In hac habitasse platea dictumst. Donec sed nibh nec arcu feugiat malesuada nec sollicitudin neque. Morbi egestas gravida blandit. Praesent luctus ipsum sed sem porta a tempus ipsum congue. Cras non lectus metus. Fusce non purus quam, vel convallis urna. Aenean dignissim consequat tincidunt. Nunc posuere pulvinar est, id pretium sem vestibulum non</description>.
I'm trying to create a yahoo pipe that will change the tag names, in which I'm using the rename module, and it works fine.
Now, I'm wanting to get rid of the description tag, so my XML only returns name and age.
How can I do that with yahoo pipes?
Cheers in advance for any help
Use the Regex module on the description field and replace .* with an empty textfield. That deletes the field.
Use the "Create RSS" module as the last step in the chain. Then only include the fields you want.

Resources