Gustavo Fernandez
Active member
Thats true hehe. I should rephrase that and say thats its not a 'standard' option but im sure someone can make a fix
Yes! I dont think it's difficult... I dont know much php
Thats true hehe. I should rephrase that and say thats its not a 'standard' option but im sure someone can make a fix
Here is the updated version of RandomQuote Module. I was unable to import font color, so I left it as default. This one should work in all browsers.
Hey Xarcell, the quotes are not showing and the font is still default. All files uploaded as instructed into the /data/RandomQuotes directory, but nothing showing. Tested on both Google Chrome and Firefox. Any ideas?
Hey Xarcell, the quotes are not showing and the font is still default. All files uploaded as instructed into the /data/RandomQuotes directory, but nothing showing. Tested on both Google Chrome and Firefox. Any ideas?
Thanks....looks like the main reason mine wasn't working was because it was written assuming that the forum was installed at the root. So, I had to add the /forum in the code.
The latest threads module was made by Jaxel and is a default module in the portal. So your best bet might be to talk to Jaxel.
XenCarta's [wiki] bbcode has a failsafe against non _view containers. By the nature of how blocks in XenPorta are modularized, they do not have a _view element. Without the _view element, you can't build from templates; thats why the more complex bbcode, quick require callback functions, such as quote, code, etc, don't have template styles when put into XenPorta's Recent News module.I wonder if you could make a PHP page in the wiki and embed that wiki entry in XenPorta ?
Yes, or just a html-module where you can add whatever you want. I'm not sure how to create one, please help.Can someone help me with the code to just have a photo in a block I have a logo that I want to offer to use as a link and all I need it a simple block to hold the photo.
$weather = ob_get_contents();
ob_end_clean();
$params = array('weather' => $weather);
$response->params = array_merge($response->params,$params);
}
<div class="section">
<div class="secondaryContent WeatherSmall" id="WeatherRecent">
<h3>Current Weather</h3>
<ul>
<div>
{xen:raw $weather}
</div>
</ul>
<div style="clear: both;"></div>
</div>
</div>
<div class="sectionMain">
<div class="subHeading"><h3>Current Weather</h3></div>
<div class="primaryContent">{$Weather.advisory_html}</div>
<div class="secondaryContent">{$Weather.weather_html}</div>
<div style="clear: both;"></div>
</div>
Please post the contents of your XML file and your PHP files so I can look at them.Sorry, but having trouble figuring this out.
<?php
class EWRporta_Block_Weather extends XenForo_Model
{
public function getModule()
{
$doPrintNWS = false;
chdir('/home4/thebooth/public_html/xx/weather/');
require_once '/home4/thebooth/public_html/xx/weather/advisories.php';
return $advisory_html
require_once '/home4/thebooth/public_html/xx/weather/advforecast2.php';
return $weather_html
chdir('/home4/thebooth/public_html/xx/');
}
}
?>
<?xml version="1.0" encoding="utf-8"?>
<module>
<module_name>Weather</module_name>
<module_cache>+10 minutes</module_cache>
<module_settings></module_settings>
<module_template><![CDATA[
<style>
.advisoryBoxnoactive {
color: black;
font-size: 12px;
text-align: center;
background-color: white;
margin: 0 0 0 0;
padding: .5em 0em .5em 0em;
border: 1px dashed rgb(34,70,79);
}
.advisoryBox {
color: black;
font-size: 12px;
text-align: center;
background-color: #FFFF85;
margin: 0 0 0 0;
padding: .5em 0em .5em 0em;
border: 0px dashed rgb(34,70,79);
}
.watchBox {
color: black;
font-size: 12px;
text-align: center;
background-color: #B3F7FF;
margin: 0 0 0 0;
padding: .5em 0em .5em 0em;
border: 0px dashed rgb(34,70,79);
}
.warningBox {
color: white;
font-size: 13px;
text-align: center;
background-color: #E28080;
margin: 0 0 0 0;
padding: .5em 0em .5em 0em;
border: 0px dashed rgb(255,255,255);
}
.warningBox a {
color: white;
}
.tornadowarningBox {
color: white;
font-size: 13px;
text-align: center;
background-color: #CC0000;
margin: 0 0 0 0;
padding: .5em 0em .5em 0em;
border: 1px dashed rgb(255,255,255);
}
.tornadowarningBox a {
color: white;
}
</style>
<div class="sectionMain">
<div class="subHeading"><h3>Current Weather</h3></div>
<div class="primaryContent">{$Weather.advisory_html}</div>
<div class="secondaryContent">{$Weather.weather_html}</div>
<div style="clear: both;"></div>
</div>
]]></module_template>
</module>
We use essential cookies to make this site work, and optional cookies to enhance your experience.