• 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.
NVM! I found it.

If you look in the RecentNews.php (library/EWRporta/block/RecentNews.php) you can see where promote_date is added into the array $news.

So basically you can tweak the XML in RecentNews.xml and reimport it or you can simply modify the EWRporta_Block_RecentNews template to make the following change:

Find:
Code:
                <div style="float: right; white-space: nowrap;">
                    <a href="{xen:link threads, $news}"><xen:datetime time="$news.post_date" /></a>
                </div>

Near the top of the foreach loop and change it to:
Code:
  <div style="float: right; white-space: nowrap;">
                    <a href="{xen:link threads, $news}"><xen:datetime time="$news.promote_date" /></a>
                </div>
All you are doing is changing $news.post_date to $news.promote_date

QED. Once you dump the module cache (O link in the module admin page) and bring it back up again, you should see the time/date that the thread was promoted, INSTEAD of the time/date that the thread was originally created by the OP. :)

Just remember that you may need to remake that change anytime you re-import updated versions of the RecentNews module.
 
I was wondering if we can have those sideboxes on left & right sides of the portal too & rest contents in middle as it is
tongue.png
if it does i can go live with my project as soon as possible .
 
Jaxel, would it be too much asked to somehow also get a left version of the sidebar? I.e. similar to what vBAdvanced used to offer?
 
There already is a left version of the sidebar... its just in the content box... unless you use the new breakout option.
 
[8wayRun.Com] XenPorta (Portal) v1.2.6 CHANGELOG
  • Both [prbreak] and [prebreak] will now act as preview break functions with the Recent News block.
  • XenAtendo Today's Birthdays block has been added; lists all birthdays over a two day period.
  • XenMedio, XenCarta and XenAtendo blocks will now check to see if related add-ons are installed.
  • Option in XenAtendo's Events Upcoming block has been added to toggle the displaying of venues.
  • Recent Status Updates block now has a submission form where users can update their status.
  • DataWriter listener has been added for status updates; it will empty the cache when updated.
  • AdminCP Option has been added to completely break XenPorta out of the content container.
  • The copyright footer will now collapse into the Recent News page-nav if breakout is enabled.
  • All modules have been updated and stylized to meet the new look of the breakout for XenPorta.
This was a HUGE update... surely its worth a few donations!

How to style this mod for Erik's Flexile theme...
  1. Apply the fix located in this post: (until Erik puts the fix in the Flexile base)
    http://xenforo.com/community/threads/flexile.7164/page-18#post-159100
  2. Add the following to your EXTRA.css
Code:
/* FLEXILE > PORTAL > GENERAL SETTINGS */
    .EWRporta_Portal .centerShift { margin-left: {xen:calc '@sidebar.width + 15'}px !important; }
    .EWRporta_Portal .section:first-child { margin: 0px auto 15px !important; }
    .EWRporta_Portal .section:last-child { margin: 15px auto 0px !important; }

/* FLEXILE > PORTAL > RECENT NEWS SETTINGS */
    .EWRporta_Portal .recentNews.sectionMain
    {
        background-color: transparent;
        border: 0px;
        border-radius: 0px;
        box-shadow: none;
        -khtml-box-shadow: none;
        padding: 0px;
    }
    .EWRporta_Portal .recentNews .sectionFooter
    {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        margin: 15px -15px -16px !important;
    }

/* FLEXILE > PORTAL > RECENT THREADS SETTINGS */
    .EWRporta_Portal #recentThreads.sectionMain { padding: 0px 0px 10px; }
    .EWRporta_Portal #recentThreads .sectionHeaders
    {
        border: 0px;
        {xen:property sidebarBlockHeading}
        padding-left: 0px;
        padding-right: 0px;
        margin: 0px;
    }
    .EWRporta_Portal #recentThreads .sectionHeaders a
    {
        {xen:property sidebarBlockHeading.font}
    }
    .EWRporta_Portal #recentThreads .sectionHeaders a span { padding: 0px 10px; }
    .EWRporta_Portal #recentThreads .sectionHeaders .lastPost { width: 160px; }
    .EWRporta_Portal #recentThreads ol.discussionListItems { margin: 0px 10px; }
 
Style wise the new version looks much much nicer and cleaner then previous versions, well done Jaxel!
 
Status
Not open for further replies.
Top Bottom