• 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.
If the promoted thread doesn't have an image, the poster's avatar is used but if there is an image in the promoted post, that image is used in place of the avatar.

It works as designed :)

How do I change this so that there is NO avatar displayed, and the image is displayed in full?


You can make the following changes in the RecentNews.php file and EWRblock_RecentNews template


In order to remove avatar block remove following code from EWRblock_RecentNews template:

Code:
<xen:if is="{$news.promote_icon} != 'disabled'">
                <xen:if hascontent="true">
                    <div class="messageUserBlock">
                        <div class="avatarHolder">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('data/media/{$news.medio.media_id}.jpg') no-repeat;">
                                    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="js/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" style="max-height: 150px; max-width: 150px;" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </div>
                    </div>
                </xen:if>
                </xen:if>

In RecentNews.php comment out red part of code :

public function getAttach(&$post)
{
if (!empty($post['attachments'][$post['promote_data']]))
{
if ($post['attachments'][$post['promote_data']]['thumbnailUrl'])
{
$post['message'] = str_ireplace('', '', $post['message']);
$post['message'] = str_ireplace('', '', $post['message']);
return $post['attachments'][$post['promote_data']];
}
}

return false;
}



and

public function getImage(&$post)
{
$post['message'] = str_ireplace('
', '', $post['message']);

return $post['promote_data'];
}
 
My forums are installed on /forum/

How do I get the portal to load on /index.php? When they click forums, I want them to be redirected to /forum/

Also how do I get recent news displayed, when installed, it just shows blank page.
 
is there an option to create a new layout and not associate it with forums or threads and apply it to an addon (such as ispy) via an added hook in the addon template?
it would be great if i could create a layout and add it to any template i desired.
or, can i amend this hook somehow to pull the global layout into ispy?
<xen:hook name="forum_view_pagenav_after" params="{xen:array 'forum={$forum}'}" />
 
It works as designed :)




You can make the following changes in the RecentNews.php file and EWRblock_RecentNews template


In order to remove avatar block remove following code from EWRblock_RecentNews template:

Code:
<xen:if is="{$news.promote_icon} != 'disabled'">
                <xen:if hascontent="true">
                    <div class="messageUserBlock">
                        <div class="avatarHolder">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('data/media/{$news.medio.media_id}.jpg') no-repeat;">
                                    <a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="js/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" style="max-height: 150px; max-width: 150px;" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </div>
                    </div>
                </xen:if>
                </xen:if>

In RecentNews.php comment out red part of code :

public function getAttach(&$post)
{
if (!empty($post['attachments'][$post['promote_data']]))
{
if ($post['attachments'][$post['promote_data']]['thumbnailUrl'])
{
$post['message'] = str_ireplace('', '', $post['message']);
$post['message'] = str_ireplace('', '', $post['message']);
return $post['attachments'][$post['promote_data']];
}
}

return false;
}



and

public function getImage(&$post)
{
$post['message'] = str_ireplace('
', '', $post['message']);

return $post['promote_data'];
}


Thanks. I tried that, but all it did was remove the thumbnail on the right. The image in the post is not getting displayed below the title.
 
How do I edit the color of the date container in the recentnews block so that it matches my theme color better?
 

Attachments

  • Picture 5.webp
    Picture 5.webp
    2 KB · Views: 12
I added this to my extra.css
Code:
.recentSlider .ui-tabs-nav-item .image { display: none; }
.recentSlider .ui-tabs-nav-item .title { margin-right: 0px !important; }
Hi Jaxel..
  1. this guide does take the thumbnails out but still leaves a space..
  2. and there is this extension of the line from the slider
How can i fix this? Plz help
 

Attachments

  • Recent Slider.webp
    Recent Slider.webp
    13.1 KB · Views: 17
Little help please. I can't uninstall ver 1.4.4. Getting this error:

Mysqli prepare error: Table 'teem7_xf.EWRporta_blocks' doesn't exist
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 218
  5. XenForo_Model->fetchAllKeyed() in EWRporta/Model/Blocks.php at line 7
  6. EWRporta_Model_Blocks->getAllBlocks() in EWRporta/Install.php at line 161
  7. EWRporta_Install->_uninstall_0() in EWRporta/Install.php at line 156
  8. EWRporta_Install::uninstallCode() in XenForo/DataWriter/AddOn.php at line 193
  9. XenForo_DataWriter_AddOn->_postDelete() in XenForo/DataWriter.php at line 1738
  10. XenForo_DataWriter->delete() in XenForo/ControllerAdmin/AddOn.php at line 116
  11. XenForo_ControllerAdmin_AddOn->actionDelete() in XenForo/FrontController.php at line 310
  12. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  13. XenForo_FrontController->run() in /home/teem7/public_html/admin.php at line 13
If this is not fixable, I would appreciate if anybody can give me a copy of version 1.4.4. Thanks.
 
Can anyone explain me about Article view ?
1. I want article view for only one section, say News & Announcement. So I checked Article (article > portal). And created a new layout with ID of News & Announcement section. Is that correct ? So when I promote threads from other sections, I don't want them to appear as article.
2. Secondly when I click on Articles slider is appearing on bottom of the page. Pretty weird. Can anyone tell me how to fix this ?
Thank you :D
 
1. Articleview is always for all threads, including the promoted ones :( (thats the reason why i have deactivated this)

2. i dont understand what you mean. you can place the slider block like all other blocks.
 
hello, im having issue with xenporta app and i cant uninstall it in xenforo admin cp. how can i delete an app manually?
Delete all xenporta files in the server and in phpAdmin, drop all EWRPorta tables. Don't forget to drop the xenporta table from xf_addon.
 
Hi all,
with 1.5.1 I am having trouble uninstalling blocks.

I did write a block, then I went ahead and uninstalled it. The trouble is that phrases and templates did remain in Xenforo's DB. I am not able anymore to re-install said template, unless I go inside the DB and start tinkering with it (something I am not too much a fan off).

Any idea of what might have gone wrong?
 
Hi all,
with 1.5.1 I am having trouble uninstalling blocks.

I did write a block, then I went ahead and uninstalled it. The trouble is that phrases and templates did remain in Xenforo's DB. I am not able anymore to re-install said template, unless I go inside the DB and start tinkering with it (something I am not too much a fan off).

Any idea of what might have gone wrong?
No need for db hacks.
Templates aren't deleted upon block uninstall. Revert the template and it will vanish.
 
Status
Not open for further replies.
Top Bottom