• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[8wayRun.Com] XenPorta (Portal)

Status
Not open for further replies.
I like the fact that regular threads can be shown in the RecentSlider but I don't like the fact that the slide.jpg attachment shows up. To prevent this from happening, it is hidden from view when 'Article (article > portal)' is ticked in XenPorta options. Unfortunately, I don't like how basic the replies look when viewing a portal article. It also puts everything on your portal page, underneath your article thread, which is pretty annoying.

So I excluded attachments from being shown to everyone but administrators inside the designated slider forum. Not really experienced enough to figure out another way.

Code:
<xen:if is="{$forum.node_id} == 30">
<xen:if is="{$visitor.is_admin}">
<xen:require css="attached_files.css" />
<div class="attachedFiles">
    <h4 class="attachedFilesHeader">{xen:phrase attached_files}:</h4>
    <ul class="attachmentList SquareThumbs"
        data-thumb-height="{xen:calc '{$xenOptions.attachmentThumbnailDimensions} / 2'}"
        data-thumb-selector="div.thumbnail > a">
        <xen:foreach loop="$post.attachments" value="$attachment">
            <li class="attachment{xen:if {$attachment.thumbnailUrl}, ' image'}" title="{$attachment.filename}">
                <div class="boxModelFixer primaryContent">
                   
                    <div class="thumbnail">
                        <xen:if is="{$attachment.thumbnailUrl} AND {$canViewAttachments}">
                            <a href="{xen:link attachments, $attachment}" target="_blank" class="LbTrigger"
                                data-href="{xen:link misc/lightbox}"><img
                                src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" class="LbImage" /></a>
                        <xen:elseif is="{$attachment.thumbnailUrl}" />
                            <a href="{xen:link attachments, $attachment}" target="_blank"><img
                                src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" /></a>
                        <xen:else />
                            <a href="{xen:link attachments, $attachment}" target="_blank" class="genericAttachment"></a>
                        </xen:if>
                    </div>
                   
                    <div class="attachmentInfo pairsJustified">
                        <h6 class="filename"><a href="{xen:link attachments, $attachment}" target="_blank">{$attachment.filename}</a></h6>
                        <dl><dt>{xen:phrase file_size}:</dt> <dd>{xen:number $attachment.file_size, size}</dd></dl>
                        <dl><dt>{xen:phrase views}:</dt> <dd>{xen:number $attachment.view_count}</dd></dl>
                    </div>
                </div>
            </li>
        </xen:foreach>
    </ul>
</div>
 
<xen:comment><xen:require css="xenforo.css" /></xen:comment>
</xen:if>
<xen:else />
<xen:require css="attached_files.css" />
<div class="attachedFiles">
    <h4 class="attachedFilesHeader">{xen:phrase attached_files}:</h4>
    <ul class="attachmentList SquareThumbs"
        data-thumb-height="{xen:calc '{$xenOptions.attachmentThumbnailDimensions} / 2'}"
        data-thumb-selector="div.thumbnail > a">
        <xen:foreach loop="$post.attachments" value="$attachment">
            <li class="attachment{xen:if {$attachment.thumbnailUrl}, ' image'}" title="{$attachment.filename}">
                <div class="boxModelFixer primaryContent">
                   
                    <div class="thumbnail">
                        <xen:if is="{$attachment.thumbnailUrl} AND {$canViewAttachments}">
                            <a href="{xen:link attachments, $attachment}" target="_blank" class="LbTrigger"
                                data-href="{xen:link misc/lightbox}"><img
                                src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" class="LbImage" /></a>
                        <xen:elseif is="{$attachment.thumbnailUrl}" />
                            <a href="{xen:link attachments, $attachment}" target="_blank"><img
                                src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" /></a>
                        <xen:else />
                            <a href="{xen:link attachments, $attachment}" target="_blank" class="genericAttachment"></a>
                        </xen:if>
                    </div>
                   
                    <div class="attachmentInfo pairsJustified">
                        <h6 class="filename"><a href="{xen:link attachments, $attachment}" target="_blank">{$attachment.filename}</a></h6>
                        <dl><dt>{xen:phrase file_size}:</dt> <dd>{xen:number $attachment.file_size, size}</dd></dl>
                        <dl><dt>{xen:phrase views}:</dt> <dd>{xen:number $attachment.view_count}</dd></dl>
                    </div>
                </div>
            </li>
        </xen:foreach>
    </ul>
</div>
 
<xen:comment><xen:require css="xenforo.css" /></xen:comment></xen:if>
 
I've managed to get the recent news to display on the portal page, but I would like it on my XF forum home page to display above the list of forums. I woudl have thought this was index, but it doesn't seem to want to show.

I can get the history navigation numbers to show but nothing else. I've emptied the cache. Any pointers please?
 
I have to say there is important info in this thread. Is it going to be deleted or what ? I know most of the support is per user ?
 
I've managed to get the recent news to display on the portal page, but I would like it on my XF forum home page to display above the list of forums. I would have thought this was index, but it doesn't seem to want to show.

I can get the history navigation numbers to show but nothing else. I've emptied the cache. Any pointers please?

I imagine I need to globalise a hook in a similar way to
At the absolute bottom of "thread_view"
<xen:hook name="thread_view_share_after" params="{xen:array 'thread={$thread}'}" />

At the absolute bottom of "forum_view"
<xen:hook name="forum_view_pagenav_after" params="{xen:array 'forum={$forum}'}" />

But I need to know which hook and which template I need to edit.
 
I'm not sure if this is a XenPorta issue or me but I'm having an issue with th 'slide.jpg' attachment.

If I start a thread, attach the file, promote it, it shows up, brill.

If I then edit the OP of the thread and change the image to a different slide.jpg I now get a black space in the accordian.

Any ideas? Thanks.

EDIT: Nevermind, slide has now randomly appeared again whilst working on something else. Maybe it was a caching issue.
 
Alright, really stupid question time.

Can someone remind me how to administrate the portal so that I can edit modules? I can't remember how to access them for the life of me. I can't remember the link to administrate them at all.
 
Status
Not open for further replies.
Top Bottom