将“登录以发布主题”按钮更改为登录链接按钮

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

本文关键字:按钮 登录 链接 布主题      更新时间:2023-09-26

我想知道如何将"登录以发布主题"灰色按钮(通常不充当按钮链接)更改为"登录以发布主题"按钮链接

我的意思是,我希望当访客进入论坛时,他会看到"登录以发布主题"按钮链接,并且他将能够通过将他转发到"登录页面"来实际登录:

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>

现在,我尝试了一些将灰色的"按钮"转换为登录链接的方法,但我得到的只是这个:

<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>

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

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

我如何实际使该按钮链接转发到正确的登录页面?

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

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

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