Show us your XF

Status
Not open for further replies.
Uhm, no!
It takes one hour to do it yourself, and if i share it i will be assailed by support questions. Already tried, didn't liked.

However you can copy the html of the website, and than edit something called node_forum_level_2 if i remember correctly.
 
Uhm, ok :D

node_forum_level_2:


Code:
<xen:require css="node_list.css" />
<xen:require css="node_forum.css" />
<style type="text/css">
.grigioHref:hover {
color: #969696;
}
</style>

<!--
<li class="node forum level_{$level} {xen:if '{$level} == 1 AND !{$renderedChildren}', 'groupNoChildren'} home_cat">
-->
<li class="node category level_1 home_cat">


				<div style="height: 70px;" class="catContainer">

					<a href="{xen:link forums, $forum}" class="icona icona_size">
<div class="icona_size icona_bit" id="icona_id_{$forum.node_id}"></div>
					</a>

					<div style="width: 333px;" class="titolo">
						<a href="{xen:link forums, $forum}">{$forum.title}</a>
						<div class="descrizione">
							{xen:raw $forum.description}
						</div>
					</div>

					<div class="ultimeCont">


					<div style="width: 111px; float: right; color: #969696; display: none; font-size: 11px;" class="home_data">
<xen:foreach loop="{$forum.lasts}" value="$bit">
<a  class="grigioHref" href="http://techforum.it/posts/{xen:raw $bit.last_post_id}" rel="nofollow"><xen:datetime time="$bit.last_post_date" class="muted" title="Vai all'ultimo messaggio"/></a> <br />
</xen:foreach>
					</div>



					<div style="width: 200px; float: right;" class="ultime">
<xen:foreach loop="{$forum.lasts}" value="$bit">
<a title="Vai al primo messaggio non letto" href="http://techforum.it/{xen:raw $bit.hash}<xen:if is="{$visitor.user_id}">/unread</xen:if>">{xen:helper wordTrim, $bit.title, 37}</a> <br />
</xen:foreach>
					</div>

					<div class="" style="
					padding-top:27px;
					float: right;
					text-align:left;
					width:27px;" class="rss">
						<a href="{xen:link forums/rss, $forum}" style="opacity: 1;" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
					</div>

					</div>


				</div>



<!--

	<xen:if is="{$level} == 1"><div class="categoryStrip subHeading"></div></xen:if>

	<div class="nodeInfo forumNodeInfo{xen:if '{$forum.hasNew} OR !{$visitor.user_id}', ' unread'}">

		<span class="nodeIcon" title="{xen:if '{$forum.hasNew} OR !{$visitor.user_id}', '{xen:phrase unread_messages}', ''}"></span>

		<div class="nodeText">
			<h3 class="nodeTitle"><a href="{xen:link forums, $forum}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-{$forum.node_id}'}">{$forum.title}</a></h3>

			<xen:if is="{$forum.description} AND @nodeListDescriptions">
				<blockquote class="nodeDescription baseHtml" id="nodeDescription-{$forum.node_id}">{xen:raw $forum.description}</blockquote>
			</xen:if>

			<div class="nodeStats pairsInline">
				<dl>
					<dt>{xen:phrase discussions}:</dt> <dd>{xen:number $forum.discussion_count}</dd>
					<dt>{xen:phrase messages}:</dt> <dd>{xen:number $forum.message_count}</dd>
				</dl>
			</div>
		</div>

		<div class="nodeLastPost secondaryContent">
			<xen:if is="{$forum.lastPost.date}">
				{xen:phrase latest}: <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{xen:helper wordTrim, $forum.lastPost.title, 30}</a>
				<span class="lastThreadMeta"><a href="{xen:link members, $forum.lastPost}" class="username">{$forum.lastPost.username}</a>, <xen:datetime time="$forum.lastPost.date" class="muted" /></span>
			<xen:else />
				<span class="noMessages muted">({xen:phrase contains_no_messages})</span>
			</xen:if>
		</div>

		<div class="nodeControls">
			<a href="{xen:link forums/rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
		</div>

	</div>
-->

</li>

node_list:
Code:
<xen:require css="node_list.css" />


<style>
.catContainer .icona, .catContainer .titolo {
	float: left;
}

.catContainer .titolo {
	color: #73a230;
	text-decoration: none;
	/*font-weight: bold;*/
	font-size: 24px;
}

.catContainer .titolo .descrizione {
	color: #969696;
	font-size: 11px;
	font-weight: normal;
}

.catContainer .ultime {
	color: #628e24;
	font-size: 11px;
	line-height:1.23;
}

.ultimeCont {
	opacity: 0.40;
}

.home_cat {
	border-bottom: 1px solid #D7EDFC;
	margin-bottom: 4px !important;
	padding-bottom: 4px;
	margin-top: 4px;
	padding-top: 0px;
}

.icona_size {
width: 83px;
height: 70px;
}



#icona_id_39 {
background-position: -6px -12px;
}

#icona_id_28 {
background-position: -6px -12px;
}


#icona_id_40 {
background-position: -10px -96px;
}

#icona_id_41 {
background-position: -13px -188px;
}

#icona_id_42 {
background-position: -6px -280px;
}

#icona_id_43 {
background-position: -11px -448px;
}

#icona_id_31 {
background-position: -2px -638px;
}

#icona_id_33 {
background-position: -9px -544px;
}

#icona_id_19 {
background-position: -3px -745px;
}

#icona_id_35 {
background-position: -12px -357px;
}

#icona_id_37 {
background-position: -8px -828px;
}



.icona_bit {
background-image: url('http://techforum.it/styles/default/iconeForum.jpg');
}

<!--[if lte IE 7]>
.home_cat {
	padding-bottom: 0px !important;
}
<![endif]-->




</style>

<script>

function showHideData() {
	if($("#forums").width() > 755)
	{
		$(".home_data").each(function() {
			$(this).show();
		});
	}
	else
	{
		$(".home_data").each(function() {
			$(this).hide();
		});
	}
	if($("#forums").width() > 645)
	{
		$(".ultime").each(function() {
			$(this).show();
		});
	}
	else
	{
		$(".ultime").each(function() {
			$(this).hide();
		});
	}
}

$(document).ready(function() {
	showHideData();
	if ($.browser.webkit) {
	    $(".home_cat").each(function() {
			  $(this).css('padding-bottom', '0px');
			});
	 }
});

$(window).resize(function() {
	showHideData();
});

$(document).ready(function() {
	$(".home_cat").each(function() {
		$(".home_cat").mouseover(function() {
		  $(this).find(".ultimeCont").css('opacity', '1');
		}).mouseout(function(){
		  $(this).find(".ultimeCont").css('opacity', '0.4');
		});
	});
	$(".ultimeCont").each(function() {
		  $(this).css('opacity', '0.4');
	});
});




</script>


<xen:if hascontent="true">
<fieldset>
	<ol class="nodeList sectionMain" id="forums" style="padding-top: 2px;">
	<xen:contentcheck>
		<xen:foreach loop="$renderedNodes" value="$node">{xen:raw $node}</xen:foreach>
	</xen:contentcheck>
	</ol>
</fieldset>
</xen:if>

<xen:edithint template="node_forum.css" />
<xen:edithint template="node_forum_level_1" />

library/XenForo/ControllerPublic/Index.php
Code:
<?php

class XenForo_ControllerPublic_Index extends XenForo_ControllerPublic_Abstract
{
	public function actionIndex()
	{
		$this->canonicalizeRequestUrl(
			XenForo_Link::buildPublicLink('index')
		);

		$boardTotals = $this->getModelFromCache('XenForo_Model_DataRegistry')->get('boardTotals');
		if (!$boardTotals)
		{
			$boardTotals = $this->getModelFromCache('XenForo_Model_Counters')->rebuildBoardTotalsCounter();
		}

		$visitor = XenForo_Visitor::getInstance();

		$sessionModel = $this->getModelFromCache('XenForo_Model_Session');

		$onlineUsers = $sessionModel->getSessionActivityQuickList(
			$visitor->toArray(),
			array('cutOff' => array('>', $sessionModel->getOnlineStatusTimeout())),
			($visitor['user_id'] ? $visitor->toArray() : null)
		);
		$nodeList = $this->_getNodeModel()->getNodeDataForListDisplay(false, 0);
		$nodeListCustom = array();
		$nodeListCustom = $nodeList;
		$db = XenForo_Application::get('db');
		//die(serialize(array('icona' => 'ICONA', 'colore' => 'COLORE', 'descrizione' => 'DESCRIZIONE')));
		foreach($nodeList['nodesGrouped'][0] AS $key => $bit)
		{
			$nodeListCustom['nodesGrouped'][0][$key] = $nodeList['nodesGrouped'][0][$key]; 			
			//$data = unserialize($bit['description']);
			//$data = explode('|', $bit['description']);
			//$nodeListCustom['nodesGrouped'][0][$key]['descrizione'] = $data[2];
			//$nodeListCustom['nodesGrouped'][0][$key]['colore'] = $data[1];
			//$nodeListCustom['nodesGrouped'][0][$key]['icona'] = $data[0];
			$q = $db->fetchAll("SELECT title, hash, last_post_username, last_post_user_id, last_post_id, last_post_date FROM xf_thread WHERE node_id = ? ORDER BY last_post_date DESC LIMIT 5", $bit['node_id']);
			$nodeListCustom['nodesGrouped'][0][$key]['lasts'] = $q;
		}
		//print_r($nodeListCustom);
		$viewParams = array(
			'nodeList' => $nodeListCustom,
			'onlineUsers' => $onlineUsers,
			'boardTotals' => $boardTotals
		);

		return $this->responseView('XenForo_ViewPublic_Forum_List', 'forum_list', $viewParams);
	}

	/**
	 * Session activity details.
	 * @see XenForo_Controller::getSessionActivityDetailsForList()
	 */
	public static function getSessionActivityDetailsForList(array $activities)
	{
		return new XenForo_Phrase('viewing_forum_list');
	}

	/**
	 * @return XenForo_Model_Node
	 */
	protected function _getNodeModel()
	{
		return $this->getModelFromCache('XenForo_Model_Node');
	}
}
 
So this mean that whenever an update is installed, the core file needs to be edited?
That was why I left phpBB2.
But thanks for sharing. Pretty cool to see what is possible.
 
Doing some fast edit to some files it's the fastest way. Maybe there are others, and maybe someone can come out with a mod ;)
 
Just overwrite the admincp image in /styles/default/xenforo (XenForo.png)

Do you know what the template is for that? I had to change the image size cause their ratio didnt work I need to change the demnsions : 300px × 150px (scaled to 400px × 200px)
 
Status
Not open for further replies.
Back
Top Bottom