yavuz
Well-known member
Still no problems for me.
I will offer to take a look if you are comfortable giving me a URL and admin login.
I'll wait a bit until there is enough conversations for a second page. Will send you a P.C when it does.
Still no problems for me.
I will offer to take a look if you are comfortable giving me a URL and admin login.
<?php
/**
* AddonChat Navigation Class -
*
* @category AddonChat
* @package AddonChat_Public_Navigation
* @copyright Copyright (c) <COPYRIGHT>
* @license <LICENSE REFERENCE>
* @version $Id: Navigation.php 2011.12.30.1432$
*/
class AddonChat_Public_Navigation {
public static function navtab(array &$extraTabs, $selectedTabId) {
$optionsModel = XenForo_Model::create('AddonChat_Model_Options');
$options = $optionsModel->getAddonChatOptions();
$visitor = XenForo_Visitor::getInstance();
if( !$optionsModel->isValidAccount() ) {
return;
}
//if AddonChat is enabled and the tab is enabled then display tab
if( $optionsModel->isChatEnabled() && $optionsModel->isChatTabEnabled() ) {
$title = new XenForo_Phrase('AddonChat_Tab');
$title = $title . " " . $optionsModel->getUserCount();
// If embedded chat is enabled then allow for a tab click to launch
// the embedded chat; otherwise, disabled clicking of the tab directly
// and allow for the possibility of clicking a sub-item for the popup
// chat (handled in the template).
$href = "";
if( $optionsModel->isEmbeddedChatEnabled() ) {
[COLOR=#ff0000] $href = XenForo_Link::buildPublicLink('AddonChat/Embed'); [/COLOR]
}
$extraTabs['AddonChat'] = array(
'title' => $title,
'href' => $href,
'selected' => ($selectedTabId == 'AddonChat'),
'linksTemplate' => 'AddonChat_Tab_Links',
'options' => $options
);
}
}
}
Hey man, I am having a problem, if I change the index to forums, I can access the forum index like domain.com/forums/ but can't access the thread listing which is domain.com/forums/myforum.2/ its being redirected to domain.com/forums/
Is it possible to make this work with routes that have a "/" in them?
AddonChat provides a page at domain.com/AddonChat/Embed, would like to make it /chat
Here's the relevant Navigation.php code highlighted in red; I tried changing $href = XenForo_Link::buildPublicLink('AddonChat/Embed'); manually, but that didn't seem to work:
You should be able to change "AddonChat" with this addon, but not "Embed". The route is the first part only.
If you have Adobe Dreamweaver, just do a quick search in the 'upload' folder for 'actionEmbed'Yeah, I was able to change AddonChat to chat, but chat/Embed just looks awkward to me.
It's probably something I need to dig through the chat addon code for, maybe I can come up with an alternative.
Thanks man!
If you have Adobe Dreamweaver, just do a quick search in the 'upload' folder for 'actionEmbed'
This add-on is great. But I do want to know if we can replace a route with nothing. XenPorta uses this route for categories:
domain.com/articles/category
Is this somehow possible to change it to:
domain.com/category
?
no... because in domain.com/articles/category, 'articles' is the route and 'category' is an actionThis add-on is great. But I do want to know if we can replace a route with nothing. XenPorta uses this route for categories:
domain.com/articles/category
Is this somehow possible to change it to:
domain.com/category
?
I think I have found a bug with this add-on. When you change your index page to forum (index -> forum), links of categories are ignored.
Example:
Original Link: domain.com/#category.3
Link after changed index to forum: domain.com/#category.3
But the link should be this: domain.com/forum/#category.3
XenPorta doesn't have this bug if you set your forum to /forum, so the issue must be in this add-on. Can you fix this please in the next release?
Can you please tell me how to do that? I tried a htaccess rewriting rule,but it didn't work.no... because in domain.com/articles/category, 'articles' is the route and 'category' is an action
and you can't change an action to a route... all you can do is redirect domain.com/articles/category to domain.com/category
and of-course you have to manually create a route named 'category'
using a .htaccess file wont do the trick because the links are already dynamic: created by the only index.php in the root directory...Can you please tell me how to do that? I tried a htaccess rewriting rule,but it didn't work.
In XF's case /community/index.php would not redirect to /community/
I do have that enabled.It should if you have friendly URLs enabled:
Admin CP -> Home -> Options -> Search Engine Optimisation -> Use Full Friendly URLs
(as well as the .htaccess file being in place)
I do have that enabled.
After some more digging, it appears to be a conflict between XenPorta and this mod. If I disable either mod it redirects as it should. Any suggestions?
BTW I do have the "Set as Index Controller" option unchecked.
public function actionIndex()
{
$this->canonicalizeRequestUrl(
XenForo_Link::buildPublicLink('portal')
);
$layoutId = $this->_input->filterSingle('layout_id', XenForo_Input::STRING);
$layoutId = $layoutId ? $layoutId : 'portal';
$options = XenForo_Application::get('options');
if ($options->EWRporta_stylechoice['force'] && $options->EWRporta_stylechoice['style'])
{
$this->setViewStateChange('styleId', $options->EWRporta_stylechoice['style']);
}
$viewParams = array(
'cookie' => $layoutId == 'portal' ? $this->perms['custom'] : false,
'layout1' => $layoutId,
'page' => max(1, $this->_input->filterSingle('page', XenForo_Input::UINT)),
);
return $this->responseView('EWRporta_ViewPublic_Portal', 'EWRporta_Portal', $viewParams);
}
Thanks, that fixed the / (portal) problem, however the /forums/index.php still doesn't redirect to /forums/the above code fixes that.
We use essential cookies to make this site work, and optional cookies to enhance your experience.