How can I twek this code to choose the goup whom blog posts I want to display on custom index ?
Many thanks ;)
Set the container guid to the group guid value
Something like this ? (1111111 being arbitrary)
<?php
$num = 5;
$context = get_context();
set_context('search');
$content = elgg_list_entities(array('types' => 'object', 'subtypes' => 'blog', 'container_guid' => 111111111, 'limit' => $num, 'full_view' => FALSE, 'pagination' => FALSE));
set_context($context);
echo $content;
if ($content) {
$blogurl = $vars['url'] . "pg/blog/owner/" . page_owner_entity()->username;
echo "<div class=\"widget_more_wrapper\"><a href=\"{$blogurl}\">".elgg_echo('blog:moreblogs')."</a></div>";
}
Is this needed ? :
if ($content) {
$blogurl = $vars['url'] . "pg/blog/owner/" . page_owner_entity()->username;
echo "<div class=\"widget_more_wrapper\"><a href=\"{$blogurl}\">".elgg_echo('blog:moreblogs')."</a></div>";
}
detailed plz.
;-) is this detailed enough ? ? ?
$entity_stats = get_entity_statistics();
?>
<div>
<table>
<?php
foreach ($entity_stats as $k => $entry) {
arsort($entry);
foreach ($entry as $a => $b) {
if ($a == "__base__") {
$a = elgg_echo("item:{$k}");
if (empty($a))
$a = $k;
} else {
if (empty($a)) {
$a = elgg_echo("item:{$k}");
} else {
$a = elgg_echo("item:{$k}:{$a}");
}
if (empty($a)) {
$a = "$k $a";
}
}
echo "{$a}: {$b}";
}
}
?>
wow! impressive mi amigo!
anything is possible, elgg is extremely versatile.
A "slideshow/carousel" can be added as in the robust blog plugin. The issue is what do you want to put in it... i.e. which plugin to use it?
If you're talking about a standard feature that can be harnessed by any plugin, yes it's possible to do with a bit of coding.
Thing is, I just want to display GoogleAd between post content and post comments, but I don't know where to put the code, in wich file. The code itself is good, provided by google. I just need to know where to put it.
Thanks!
You are missing the question Dhrup posed. He knows Google can code. What he was asking is what is elgg code you are working with.
Standard Elgg 1.7.5
Sorry for the confusion...
Yeah its okay to have the tables with no entries.
As far as i think,ELGG couldn't connect to the database using the given credentials is not because of defects in the elgg software,rather it should be because of your hosting provider. The mysql server maybe experiencing some problems or maybe it was receiving too many simultaneous requests that some of the requests timed out.Maybe there is a script which keeps on looping and sending requests or there maybe a problem with the port number on which the mysql server runs.I guess the best way to debug the problem would be disable to disable all the mods and see how elgg works.If you still experience problems,it may have to do with your hosting provider.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.