How do you get these modules?
ErrorException: Undefined index: forum - library\EWRporta\ControllerPublic\Forum.php:14
Generated By: Unknown Account, 3 minutes ago
Stack Trace
#0 C:\sites\-\library\EWRporta\ControllerPublic\Forum.php(14): XenForo_Application::handlePhpError(8, 'Undefined index...', 'C:\sites\mymine...', 14, Array)
#1 C:\sites\-\library\XenForo\FrontController.php(310): EWRporta_ControllerPublic_Forum->actionIndex()
#2 C:\sites\-\library\XenForo\FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 C:\sites\-\index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
["url"] => string(45) "http://-/forums/-/index.rss"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Appearance ->Styles -> Templates
Edit EWRblock_HtmlBlock template, insert a HTML code you want
Text block example:
Code:<div class="section"> <div class="secondaryContent" id="HtmlBlock"> <h3>Homer Simpson Quotes</h3> <div> <p>Facts are meaningless - you could use facts to prove anything that's even remotely true!<br /> Homer</p> </div> </div> </div>
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<block block_id="HtmlBlock" title="Html Block" version_string="1.0.0" version_id="1" url="" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="" cache="now">
<admin_templates/>
<listeners/>
<options/>
<phrases/>
<route_prefixes/>
<templates>
<template title="EWRblock_HtmlBlock"><![CDATA[<div class="messageText ugc baseHtml">
<div class="secondaryContent">
<h3>Homer Simpson Quotes</h3>
<p>Facts are meaningless - you could use facts to prove anything that's even remotely true!<br /> Homer</p>
</div>]]></template>
</templates>
</block>
I want to make multiple HTML blocks .... ... which bits of the xml file need editing to make a new instance?
It will help you immensely to read all thirty eight pages. Hint their was a major version change making many of the first modules no longer work. Most of the new modules are already part of your download however you have to manually load/install them. For whatever reason when you install Xenportal it doesn't install all the modules that are present. Reading will way help though (it's a faster read then you think)
<?php
class EWRporta_Block_Articles extends XenForo_Model
{
public function getModule()
{
$mystuff = $this->_getDb()->fetchAll('SELECT * FROM `articles_category` ORDER BY `category_name` ASC');
foreach ($mystuff as &$stuff)
{
$stuff = array(
'one' => $stuff['category_name']
);
}
return $mystuff;
}
}
SELECT
top.category_id as top_id,
top.category_name as top_name,
top.category_parent as top_parent,
sub.category_id as sub_id,
sub.category_name as sub_name,
sub.category_parent as sub_parent
FROM
`articles_category` top
LEFT JOIN
articles_category sub ON sub.category_parent = top.category_id
WHERE
top.category_parent = 0
ORDER BY
top.category_name, sub.category_name
Anyone made an Adsense 2 block? Tried editing the first one to different values and it seemed to kill the first block - The block appears, but the ad doesn't. Going into the config of the block, the params are now missing. I'm guessing it's some sort of conflict..... Any ideas?
I'm after some help with custom blocks - if anyone can help I'll send a £10 donation via Paypal for some beers. PM me if you can.
This block has not been tested, I am not using AdSense, but if it works for you then link is here Donations: http://www.8wayrun.com/xenforo/
works great, thank you very muchMediaRecentComments
Show the last x Comments of your XenMedia Users. Number can be set in the block options.
Feel free to do whatever you want to do with this block addon. I don't claim any rights.
If you like it and you want to donate, donate to jaxel.
Not much to say, just enjoy it
class EWRporta_Block_Articles extends XenForo_Model
{
public function getModule()
{
$mystuff = $this->_getDb()->fetchAll(
'SELECT
top.category_id as top_id,
top.category_name as top_name,
top.category_parent as top_parent,
sub.category_id as sub_id,
sub.category_name as sub_name,
sub.category_parent as sub_parent
FROM
`articles_category` top
LEFT JOIN
articles_category sub ON sub.category_parent = top.category_id
WHERE
top.category_parent = 0
ORDER BY
top.category_name, sub.category_name
');
foreach ($mystuff as &$stuff)
{
$stuff = array(
'one' => $stuff['top_name']
);
}
return $mystuff;
}
}
you need help to build the block in a template form using the xenforo syntax, right?snip
We use essential cookies to make this site work, and optional cookies to enhance your experience.