将“'Login to post Topic'”按钮更改为登录 link 按钮

Change ''Login to post Topic'' Button into Login link Button

我想知道如何将“'Login to post Topic'”GreyOut 按钮(通常不用作按钮 link)更改为“'Login to post Topic'”按钮link.

我的意思是,我希望当访客进入论坛时,他会看到“'Login to post Topic'”按钮 link,并且他将能够通过将他转发到 "login page" 来实际登录]:

http://example.com/index.php?app=core&module=global&section=login

现在,我进行了一些研究,发现:

外观 -> 搜索和替换 -> 搜索:

test="isGuestPostTopicTop:|: ! $this->memberData['member_id']"

找到这个(在同一个文件中两次):

<li class='disabled'><span><if test="isGuestPostTopicTop:|: ! $this->memberData['member_id']">
{$this->lang->words['forum_no_start_topic_guest']}<else />{$this->lang->words['forum_no_start_topic']}</if></span></li>

现在,我尝试了一些方法将灰色 "Button" 转换为登录 link,但我得到的只是:

<li class='disabled'><span><if test="isGuestPostTopic:|: ! $this->memberData['member_id']">
<a href='{parse url="core&module=global&section=login" base="publicWithApp"}' rel='nofollow' accesskey='s'>
{$this->lang->words['forum_no_start_topic_guest']}<else />{$this->lang->words['forum_no_start_topic']}</if></span></a></li>

但是当我以访客身份单击该按钮时,它会将我转到 none 现有页面:

http://example.com/index.php?app=forums&core&module=global&section=login

我如何让按钮 Link 转发到正确的登录页面?

我不确定你在编辑什么,但这似乎是你的问题:

<a href='{parse url="core&module=global&section=login" base="publicWithApp"}' rel='nofollow' accesskey='s'>

请注意基数是 publicWithApp,它可能会将 app=forums 附加到您的 link。尝试将其更改为 public 并将 url 部分更改为 app=core&module=global&section=login.