for ads you dont need a addon. just use the ad templates.Will try that, thanks for replying
btw which add on you are using to display ads on your site ? the one that appearing on sidebar
you have to create new layouts: index and thread-forum, maybe article^Thanks for replying
I thought ad templates only on forum page, not on xenporta... Will try that.
So where is the side bar template of xenporta ?
<div class="messageText ugc baseHtml">
<div class="secondaryContent">
<h3>test</h3>
<xen:foreach loop="$ImgBlock" value="$sampledata">
<div>
{$sampledata}
</div>
</xen:foreach>
</div>
</div>
<?php
class EWRporta_Block_ImgBlock extends XenForo_Model
{
public function getModule()
{
$sampledata = 'i am in php';
$sampledata = array(
'sample' => $sampledata
);
return $sampledata;
}
}
<?php
class EWRporta_Block_ImgBlock extends XenForo_Model
{
public function getModule()
{
$sampledata[] = 'i am in php';
return $sampledata;
}
}
<?php
function getRandomFromArray($ar) {
mt_srand( (double)microtime() * 1000000 );
$num = array_rand($ar);
return $ar[$num];
}
function getImagesFromDir($path) {
$images = array();
if ( $img_dir = @opendir($path) ) {
while ( false !== ($img_file = readdir($img_dir)) ) {
// checks for gif, jpg, png
if ( preg_match("/(\.gif|\.jpg|\.png)$/", $img_file) ) {
$images[] = $img_file;
}
}
closedir($img_dir);
}
return $images;
}
$root = '';
// If images not in sub directory of current directory specify root
//$root = $_SERVER['DOCUMENT_ROOT'];
$path = 'images/';
// Obtain list of images from directory
$imgList = getImagesFromDir($root . $path);
$img = getRandomFromArray($imgList);
?>
<img src="<?php echo $path . $img ?>" style="border:1px solid #83b2e4; border-radius:5px; padding:3px; margin:-8px 0px 0px -3px;" width="230" height="230" />
Ha. Funny that someone just posted this. I just tried changing the .twtr-tweet a{ color code to the custom color of my choice in EXTRA.css and I'm not able to overwrite the current color because it also has !important in front of it. Anyone who can help me out with this? Thanks.In need of a widget that displays this:
https://twitter.com/about/resources/widgets/widget_profile
The build in twitter widget...I can only assume not a lot of thought was put into it, lol.
Either way...I had a working widget that did this for the old xenporta (custom). It was easy to make....but the block creator that is built in now..it's utterly useless. Why change what isn't broken?
Or if somebody could convert/tell me how to convert the attached 1.4.x widget?
We am trying to deploy following php code into module, can you tell us how ?
I dont think thats the one you wanted?? The one on dodgeboard is http://xenforo.com/community/threads/8wayrun-com-xenporta-module-add-ons.7611/#post-121787Found the answer for above : http://xenforo.com/community/threads/xenquotation.16054/
Thanks to Saeed !
I imagine you need to also change all references within the file to 2 as well.
Try to re-import the XML files from folder, library/EWRPorta/XML_Addons.
We use essential cookies to make this site work, and optional cookies to enhance your experience.