乔姆拉!无法编辑模块 PHP 代码

发布于 2024-12-22 04:27:25 字数 915 浏览 6 评论 0原文

我对 Joomla 还很陌生!以及 PHP。 目前我正在开发 Joomla!使用 Joomla! 的网站版本 1.5.14。

我已经在我的网站上下载并安装了 VirtueMart 1.1.3,现在我想编辑 VirtueMart 模块的注册字段。

我转到 C:\xampp\htdocs\mysite\modules\mod_virtuemart 并打开 mod_virtuemart PHP 脚本。

我只看到注册部分的这些代码:

<?php endif; ?>
    <?php if( $mosConfig_allowUserRegistration == '1' ) : ?>
        <tr>
          <td colspan="2">
            <?php echo $VM_LANG->_('NO_ACCOUNT'); ?>
            <a href="<?php $sess->purl( SECUREURL.'index.php?option=com_virtuemart&amp;page=mysite.registration' ); ?>">
            <?php echo $VM_LANG->_('CREATE_ACCOUNT'); ?>
            </a>
          </td>
        </tr>
        <?php endif; ?>

但我找不到注册字段的几行代码(供用户键入)。 示例:电子邮件、公司名称、职位、名字、姓氏等...(及其旁边的文本框) 希望你明白我的意思。

现在我想添加更多的注册字段,例如“公司职位”等。 谁能具体告诉我在哪里可以找到这些代码以便我可以编辑它们?

I'm quite new to Joomla! as well as PHP.
Currently i'm developing a Joomla! site using Joomla! Version 1.5.14.

I have downloaded and installed VirtueMart 1.1.3 on my site and now i want to edit the registration fields for the VirtueMart Module.

I went to C:\xampp\htdocs\mysite\modules\mod_virtuemart and opened up the mod_virtuemart PHP script.

I only see these codes for the registration part:

<?php endif; ?>
    <?php if( $mosConfig_allowUserRegistration == '1' ) : ?>
        <tr>
          <td colspan="2">
            <?php echo $VM_LANG->_('NO_ACCOUNT'); ?>
            <a href="<?php $sess->purl( SECUREURL.'index.php?option=com_virtuemart&page=mysite.registration' ); ?>">
            <?php echo $VM_LANG->_('CREATE_ACCOUNT'); ?>
            </a>
          </td>
        </tr>
        <?php endif; ?>

But i'm unable to find the few lines of codes for the registration fields (For the user to key in).
Examples: Email, company name, title, first name, last name, etc... (with the text boxes beside them)
Hope you get what i mean.

Now i want to add in some more fields for registration, such as 'Position in company', etc..
Can anyone tell me specifically where to find those codes so that i can edit them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阳光①夏 2024-12-29 04:27:25

据我所知,您应该从管理面板执行此操作。 Joomla 为 virtualmart 用户注册提供自定义字段设置。

您也可以参考下面的链接。

http://virtuemart.net/documentation/User_Manual/User_Registration_Fields.html

我认为这对你有帮助。

如果您有什么新发现请告诉我。

谢谢。

As per my knowledge you should do it from admin panel. Joomla provide custom settings of fields for virtuemart user registration.

You also can refer below link for that.

http://virtuemart.net/documentation/User_Manual/User_Registration_Fields.html

I think this would be helpful to you.

Let me know if anything new you get.

Thanks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文