Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. Joomla is based on PHP.
5
votes
3
answers
5k
views
Php doesn't display special characters
I have a .php that retrieves the publish_up field and echo it. But it doesn't display the special characters such as é,è,û... Instead I get a �. … php
$oldLocale = setlocale(LC_TIME, 'en_US');
echo strftime("%a %d %b %Y", strtotime($jitem1->publish_up));
setlocale(LC_TIME, $oldLocale);
? …
0
votes
Php doesn't display special characters
php $oldLocale = setlocale(LC_TIME, 'fr_FR');
$date_string = utf8_encode(strftime('%d %B %Y', strtotime($jitem1->publish_up)));
echo $date_string;
setlocale(LC_TIME, $oldLocale);
?> …
3
votes
2
answers
662
views
How to sort my query's results by publish_up value?
I have a .php script that retrieve fields from my database table and then displays them in a foreach loop (here are the relevant parts of the code):
<? … php echo $jitem1->fulltext; ?></div>
</li>
<?php
endforeach;
?>
So everything works great except that my array entries are sorted by id. …
1
vote
Adding/Importing a ready coded (AboutUs) page into Joomla
Then in the link in the link feild.
2) Alternatively ( abit more complicate but that way you have access to your php via the backend), you can also install the modules "Jumi" and "Module Anywhere". … Then create a new Jumi module, copy/paste your php the the Code written field. …
2
votes
2
answers
896
views
Remove all <img> tag except the first one change image size - Tag component
php
if (! … php
$item->core_body= preg_replace('/\<img/','****',$item->core_body,1);
$item->core_body= strip_tags( $item->core_body, '<p>');
$item->core_body= str_replace('****','<img',$item->core_body); …
1
vote
2
answers
1k
views
Tag page: remove links on image when they are in introtext
I did find the correct php function:
$notagintrotex =strip_tags( $this->item->introtext, '<img>');
echo $notagintrotex;
But I can't find which file I have to override. …
1
vote
1
answer
395
views
Attributing Itemid to article when opened from a "Tagged Items" pages
php echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?>">
<? … php echo $this->escape($item->core_title); ?>
</a>
You can see what I mean here
2) The title of my article aren't displayed at all.
Any idea how to solve this? …
4
votes
Accepted
Language condition with Php if... elseif
php
$lang = JFactory::getLanguage();
$result = $lang->getTag();
if ($result=="fr-FR") {
echo 'Accueil: ';
}
else {
echo 'Home: ';
}
?>
</div> …