简体   繁体   English

修改PHP代码SocialEngine

[英]Modify PHP code SocialEngine

Good evening, I tried searching for answers but have not found anything on the site: How can I change the code (PHP, HTML, CSS) in SocialEngine? 晚上好,我尝试搜索答案,但未在网站上找到任何东西:如何在SocialEngine中更改代码(PHP,HTML,CSS)? That is: I have purchased a license on behalf of a company, but can not find, for example, the home page to change (www.mysite.com/MEMBERS/HOME/) Thanks so much. 即:我代表一家公司购买了许可证,但是找不到例如要更改的主页(www.mysite.com/MEMBERS/HOME/),非常感谢。

All pages are handled via "widgets" in the admin panel. 所有页面均通过管理面板中的“小部件”进行处理。 Under admin panel, go to Layout Menu>Layout Then select the page you wish to edit. 在管理面板下,转到布局菜单>布局,然后选择要编辑的页面。

Perhaps you can run this page through google translate to have it converted to your native language? 也许您可以通过Google翻译运行此页面,以将其转换为您的母语?

http://support.socialengine.com/php/customer/portal/articles/1641082-admin-panel---layout->-layout-editor http://support.socialengine.com/php/customer/portal/articles/1641082-admin-panel---layout->-layout-editor

Which page you want change and here all page acts as widget. 您要更改的页面,这里所有页面都充当小部件。 If you want change home page means go to theme module and find view section here home page code is available. 如果要更改主页,则意味着转到主题模块并在此处找到视图部分,可以使用主页代码。

in the file manger follow the route: application->module->activity 在文件管理器中,遵循以下路线:application-> module-> activity

here you can see the model,view and controllers for that module. 在这里,您可以看到该模块的模型,视图和控制器。 if you want to edit the HTML then go the views->scripts folder and search the _activityText.tpl file. 如果要编辑HTML,则转到views- > scripts文件夹并搜索_activityText.tpl文件。 if you want to change in the css then you can change it directly from the admin panel ->layout editor->theme.css. 如果要更改CSS,则可以直接从管理面板->布局编辑器-> theme.css进行更改。 if you want to change the php code then you can find it in both views,controlles and model folder. 如果您想更改php代码,则可以在视图,控件和模型文件夹中找到它。 search your file according to your need. 根据需要搜索文件。

You can create custom widgets by creating a new one plugin in the admin panel. 您可以通过在管理面板中创建一个新的插件来创建自定义窗口小部件。 Then upload your newly created widget. 然后上传您新创建的小部件。 Navigate to: 导航:

application >> widgets >> "NameOfWidget" . 应用程序>>小部件>>“ NameOfWidget”

Open index.tpl and controller.php . 打开index.tplcontroller.php

In the index file, you can run traditional HTML code render custom HTML as a widget. 在索引文件中,您可以运行传统的HTML代码将自定义HTML渲染为小部件。 If you want to add logic and PHP to that html, add it using controller.php. 如果要向该html添加逻辑和PHP,请使用controller.php将其添加。

If you want to change the whole theme/look, see at Vipin Chahal's reply. 如果要更改整个主题/外观,请参阅Vipin Chahal的回复。 Cheers! 干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM