“编织梦想”插件开发实例

  • A+
所属分类:随便撸

\\N

今天,一个简单的dedecms用户消息插件,这是首先共享,并可能会发送一篇博客文章,以总结各种梦想插件的制作方法和原则。

插件开发步骤:1、制作程序文件并构建所需的表2,使用模块生成向导生成插件XML 3,安装并使用。2.

下面是我的简单用户消息插件的示例,如下所示:

一.有待实现的职能

这个例子的功能非常简单,只是为了演示插件制作的原理,我们可以编写代码来实现其他各种功能,在我们理解了这个原理之后。

前台页面:用户可以提交信息。

背景管理页面:

第二,编制程序文档和建立数据库中使用的表格。这个小插件使用四个文件和一个表,如下所示:

1.前台表格页\\“/mymessage.htm”。此页面可以放在前台的任何位置,也可以在模板文件夹中使用。在这个例子中,我把它放在网站的根目录中。

[HTML] View clear text copy

1.“http:/www.w3.org/tr/xhtml 1/dtd/xhtml 1”>;

(二);htmlxmins.htp:/www.org/1999/xtml;

3. Head & gt;

4.<;metahttp-equiv=“Content-Type”content=“text/html;charset=utf-8”/>;

5.在线消息插件<;/title>;

6.<;scripttype=“text/javascript”>;

7. Function check () {

8.if(document.myFormT.itle.value=“){

9.警报(\\“邮件标题不能为空!\\”)(B);

10.回顾学;

11.}elseif(document.myForm.content.value==“”){

12.警报(\\“消息内容不能为空!\\”)(B);

13.回顾学;

14.}elseif(document.myForm.validate.value==“”){

15.警报(\\“验证代码不能为空!\\”)(B);

16.回顾学;

17.}

18. Regression;

19.}

20.<;/script>;

21.<;/head>;

22.

23. Body & gt;

24.<;formname=“myForm”method=“post”action=“/plus/mymessage.php”onsubmit=“returncheck();”>;

25.<;inputtype=‘hidden’name=‘dopost’value=‘save’/>;

二十六个。电文标题:

27.<;inputtype=“text”name=“title”value=“”/>;

页:1

二十九。信息内容:

30.<;textareaname=“content”cols=“60”rows=“8”>;<;/textarea>;

页:1

三十二。核查代码:

33.<;inputname=“validate”type=“text”id=“vdcode2”size=“10”class=“ipt-txt”style=“text-transform:uppercase;”>;

34.光标:指针imgsrc/包容性ddgck.php样式=\\“游标:指针\\”onclick=\\“this.src=https:/blog.csdn.net/A11085013/文章/Details/this/Details/this.src+‘\\’title=\\”单击我的替换图片\\“alt=\\”单击我替换图片\\“/>;<;br/>;>;

35.<;inputtype=“subbtn”值=“提交”/>;

36.<;/form>;

37.<;/Body>;

thirty-eight。 And HTML;

2.保存消息文件\\“/plus/mymessage.php\\”

[PHP] View clear text replication

1.发展中国家;

2.需用一次(diname(_File_)。“/https:/blog.csdn.net/A11085013/post/include/Common.inc.php”);

3. If (empty ($DODOST) $DODOST=';

4.

5. If ($DODOST= savings)

6.{

7.$Valid=isset ($confirms the validity of) strtolower ($):';

8.$svali=GetCkVdValue();

9.(美元有效=“有效”!)=美元

10.{

11.显示Msg(“不正确的验证代码!”、“-1”);

twelve。 Export ();

13.

14.$title=htmlSpecialchars($title);

15.$content=htmlSpecialchars($content);

16.$query=“INSERTINTO`#@__plus_mymsg`(`title`,‘content`)值(‘$title’,‘$Content’)“;

17.$dsql->;ExecuteNoneQuery($query);

18.showMsg(‘MessageSuccess’,‘/mymessage.htm’);/在这里,我保存东西并直接编写绝对路径,这在实践中不应该是这样的。

19.}

20.

3.背景管理消息页\\“/后台管理文件夹/模板/myMessage_main.htm\\”

[html]view<;b>;(点击http://www.jingrishuadian.com每日精品短片内容搞笑网络名人视频)<;b>;b>;

1.“http:/www.w3.org/tr/xhtml 1/dtd/xhtml 1”>;

(二);htmlxmins.htp:/www.org/1999/xtml;

3. Head & gt;

4.<;metahttp-equiv=“Content-Type”content=“text/html;charset=utf-8”/>;

5.消息管理<;/title>;

6.<;linkhref=“css/base.css”rel=“stylesheet”type=‘text/css’>;

7.<;scriptlanguage=‘javascript’>;

8.FunctionSel(Stype)

9.{

10.for(vari=0;i<;document.getElementsByName(‘aids’).length;i++)

11.{

12.if(stype==‘all’)document.getElementsByName(‘aids’)[i].checked=true;

13.elsedocument.getElementsByName(‘aids’)[i].checked=false;

14.}

15.}

16. Function check Submit ()

17.{

18.Vastr‘;

19.for(vari=0;i<;document.getElementsByName(‘aids’).length;i++)

20.{

21.if (Documentif) element byte name (\"AIDS\") I

22.if(str==‘’)str+=document.getElementsByName(‘aids’)[i].value;

23或str+=‘,’+document.getElementsByName(‘aids’)[i].value;

24.}

25.}

26.如果(Mr=+)

27.{

28.警醒(‘你什么都没选!’)(B);

29.回顾学;

30.}

thirty-one。 Others

32.{

33.location=“mymessage_main.phpaids=”+str+“dopost=delall”;

34.}

35.

thirty-six。 Script & gt;

37.<;/head>;

38.

39.<;bodybackground=‘images/allbg.gif’leftmargin=‘8’topmargin=‘8’>;

40.<;tableWidth</span>;=“98%”border=“0”align=“center”cellpadding=“3”cellspacing=“1”bgcolor=“#D6D6D6”>;

41<tr

42.<;tdHeight</span>;=“28”background=“images/tbg.gif”colspan=“4”style=“padding-left:10px;”>;<;divstyle=“float:left”>;留言管理

pour / infuse / annotate / record

44.信托

45.<;tdHeight</span>;=“30”align=“center”bgcolor=“#F9FCEF”colspan=“4”>;<;formaction=“mymessage_main.php”name=“form1”method=“get”>;

46.<;tableborder=“0”cellspacing=“0”cellpadding=“3”>;

47.<tr

48.关键字<;/td>;

49.

<;inputname=“keyword”type=“text”id=“keyword”size=“12”style=“width:250px”value=“<;phpecho$keyword;>;”/>;

50.

<;inputname=“imageField”class=“np”type=“image”src=“images/button_search.gif”Width</span>;=“60”Height</span>;=“22”border=“0”/>;

Economic and Social Council

Page: 1

53.<;/form>;

pour / infuse / annotate / record

55.<;formname=‘form1’method=‘post’action=‘mymessage_main.php’onSubmit=‘returncheckSubmit();’>;

56.<;inputtype=‘hidden’name=‘dopost’value=‘delall’/>;

57.<;inputtype=‘hidden’name=‘allid’value=‘’/>;

58.<;tralign=“center”bgcolor=“#FBFCE2”Height</span>;=“26”>;

59.TdWidth<;/span>;=\\“40”>;select>;/td>;

60.TdWidth<;/span>;=\\“100\\”>;消息标题<;/td>;

61.TdWidth<;/span>;=\\“Message<;/TD>;

62.TdWidth<;/span>;=\\“100\\”管理<;/TD>;

Economic and Social Council

64.Dede:数据列表

65.<;tralign=“center”bgcolor=“#FFFFFF”Height</span>;=“26”onMouseMove=“javascript:this.bgColor=‘#FCFDEE’;”

66.onMouseOut=“javascript:this.bgColor=‘#FFFFFF’;”>;

67.

<;inputtype=‘checkbox’name=‘aids’value=‘{dede:field.id/}’class=‘np’>;

68.

<;ahref=“{dede:field.title/}”target=‘_blank’>;{dede:field.titlefunction=‘htmlspecialchars(@me)’/}

69.

<;ahref=“{dede:field.content/}”target=‘_blank’>;{dede:field.contentfunction=‘htmlspecialchars(@me)’/}

70.

<;ahref=‘mymessage_main.phpid={dede:field.id/}dopost=delete’>;[删除]

pour / infuse / annotate / record

72.{/Dede:dataList}

73.<;/form>;

74.<;trbgcolor=“#ffffff”Height</span>;=“28”>;

75.<;tdcolspan=“4”>; <;ahref=‘#’onclick=‘Sel(“all”)’class=‘npcoolbg’>;[全选取消批量删除

pour / infuse / annotate / record

77.<;tralign=“center”bgcolor=“#F9FCEF”Height</span>;=“28”>;

78.<;tdcolspan=“4”>;{dede:pagelistlistsize=6/}

Issued by the Department for General Assembly and Conference Management

Page: 1

81.<;/Body>;

82nd plenary meeting;

4.后台管理消息PHP文件\\“/后台管理文件夹/myMessage_main.php\\”

[PHP] View clear text replication

1.发展中国家;

two。 You need to use (diname (_ File_ once).'/ config.php');

3.require_once(DEDEINC.‘/datalistcp.class.php’);

4.CheckPurview(‘plus_user消息插件’);

5.

6. If (empty ($dorost) $dorost= \";

7. If (isset (dollars are aligned)

8.{

9. Hearing aid = explosion (', $allid);)

10. If (count ($AID) = 1)

11.{

12.$id=$ADS[0];

13, DODOST = \"delete\";

14.}

15.}

16. If ($DODOST= \"delete\")

17.{

页:1

19.$dsql->;ExecuteNoneQuery(“DELETEFROM`#@__plus_mymsg`WHEREid=‘$id’”);

20.ShowMsg(\\“成功删除消息!\\”,\\“myMessage_main.php\\”);

21. Export ();

22.LASERICIF($DODOST=Εdelall388)

23.{

24. AIDS = explosion (', $auxiliaries);

25. If (ISSET ($AID) is an array ($AID)

Here is 26. {

twenty-seven。 Advance ($aidsas$aid)

28.{

29美元-AID-PREG-SIMEG-TAIG(“交易协议”0-9-9“AID”);

30.$dsql->;运行

31.}

32.ShowMsg(\\“成功删除指定的消息!\\”,\\“myMessage_main.php\\”);

thirty-three。 Export ();

34.}

thirty-five。 Others

Translated as: 36. {

37.ShowMsg(\\“您没有选择任何消息!\\”,\\“myMessage_main.php\\”);

thirty-eight。 Export ();

39.}

40.

forty-one。 If (empty ($keyword) $keyword =';

42. Sql = \"SELECT* FROM`# @ _ plus_ mymsg`where econcat (`title', 'content' is similar to'% $keyword%';

43.

44.DlistionalInternational Liscp();

45. Set the parameter ('keyword', $keyword); set the parameter ('keyword', $keyword);

46.$dlist->;SetTemplet(DEDEADMIN.‘/templets/mymessage_main.htm’);

47.$dlist;seturce($SQL);

48.$dlist->;display();

49.}

50.

5.在De_PLUS_mymsg创建

[SQL] View clear text copy

1.DROPTABTELEXLEM先生(俄罗斯联邦)的代谢性产品,即Tomptaxtains.comment.com;

2.CRETABLEDEDED_PLUS_mymsg‘(

3 Directidint(11)NOTNULL AUTO_

4.`Title‘varchar(100)NOTNULL,

5.NOTNULL text messages,

6.PRIMARYKEY(“id”)

(7) MyISAMDEANDEX- 8 of Type Company;

8.

二.模块生成向导

安装程序中的代码是:

[SQL] View clear text copy

1.DROPTABTELEXLEM先生(俄罗斯联邦)的代谢性产品,即Tomptaxtains.comment.com;

2.CRETABLEDEDED_PLUS_mymsg‘(

3 Directidint(11)NOTNULL AUTO_

4.`Title‘varchar(100)NOTNULL,

5.NOTNULL text messages,

6.PRIMARYKEY(“id”)

(7) MyISAMDEANDEX- 8 of Type Company;

8.

9.DeleteFrom`#@_plus`其中有“用户消息插件”;

10. Insert user'# @ _ plus' (`plusname`, 'menustring',' mainurl', 'writer', 'isShow',' filelist') value ('user message plug-in', 'lt;m:itemname=' user message' link = 'myMessage_main.php' rank =' plus_ user message', 'Target='main'/>','dustin',1,');

从程序中删除代码如下:

[SQL] View clear text copy

1.DROPTABTELEXLEM先生(俄罗斯联邦)的代谢性产品,即Tomptaxtains.comment.com;

2.

3.DeleteFrom`#@_plus`其中,用户消息插入;

3.步骤3,模块管理-安装

当安装完成后,您将能够使用它。

第四,安装新插件,可以直接上传XML文件.

5.该插件生成的XML模块包如下:

[HTML] View clear text copy

1. Module & gt;

two。 Support; establish;

3.name=用户消息插件

4. Group = Dastings

5. Time = 2014 / 11 / 20

6.电子邮件=Self_Control@163.com

= SYNC, corrected by the elderly to @ EERDER_MAN

8. Hash = c6ac1c9a29c2367b12dca0a9f8f3ba55

9. Index name

10.indexurl=

11.smber-0

twelve。 Automatic startup = 1

13.Autodel=1

14L=utf-8

15. Model = plus sign

16. Support;

17. System Archives & gt;

18. Menu & gt;

19.

20. & lt; / menu string & gt;

21.REACH;

22.PHAgc3R5bGU9J2xpbmUtaGVpZ2h0OjE1MCUnPjxwPui/meaYr+S4gOS4queUqOaIt+eVmeiogOWwj+aPkuS7tjwvcD48L3A+

23.最后案文;

24<;Setupsql 40号;

25.RFJPUCBUQUJMRSBJRiBFWElTVFMgYGRlZGVfcGx1c19teW1zZ2A7DQpDUkVBVEUgVEFCTEUgYGRlZGVfcGx1c19teW1zZ2AgKA0KICBgaWRgIGludCgxMSkgTk9UIE5VTEwgYXV0b19pbmNyZW1lbnQsDQogIGB0aXRsZWAgdmFyY2hhcigxMDApIE5PVCBOVUxMLA0KICBgY29udGVudGAgdGV4dCBOT1QgTlVMTCwNCiAgUFJJTUFSWSBLRVkgIChgaWRgKQ0KKSBUWVBFPU15SVNBTSBERUZBVUxUIENIQVJTRVQ9dXRmODsNCi8q6ZyA6KaB5pSv5oyBbXlzcWw0LjDor63ms5XvvIzmiYDku6Xkvb/nlKhUWVBFPU15SVNBTSovDQpEZWxldGUgRnJvbSBgI0BfX3BsdXNgIHdoZXJlIHBsdXNuYW1lIGxpa2UgJ+eUqOaIt+eVmeiogOaPkuS7tic7DQpJTlNFUlQgSU5UTyBgI0BfX3BsdXNgIChgcGx1c25hbWVgLCBgbWVudXN0cmluZ2AsIGBtYWludXJsYCwgYHdyaXRlcmAsIGBpc3Nob3dgLCBgZmlsZWxpc3RgKSBWQUxVRVMgKCfnlKjmiLfnlZnoqIDmj5Lku7YnLCAnPG06aXRlbSBuYW1lPScn55So5oi355WZ6KiAJycgbGluaz0nJ215bWVzc2FnZV9tYWluLnBocCcnIHJhbms9JydwbHVzX+eUqOaIt+eVmeiogCcnIHRhcmdldD0nJ21haW4nJyAvPicsICcnLCAnZHVzdGluJywgMSwgJycpOw==

26.<;/setupsql 40>;

27.delsql>;

28.RFJUKUKUKURURURURURURURURURURURURURURURUKURURURURUKURURURURUKURURURURUKURURURURURURUKURUKURURURUKURURURURURUKURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURURPRPMRU-MRMRMRSMRMRMRMRMRMRMrm-Mrsmarbr

29</Delsql&Co.;

thirty。 Setting & gt;

31.

32. & lt; / installation & gt;

thirty-three。 Uninstall & gt;

34.

thirty-five。 Uninstall & gt;

36<;Goldfilelist>;

37.https:/blog.csdn.net/A11085013/post/plus/mymessage.php

38.https:/blog.csdn.net/A11085013/post/dede/myMessage_main.php

39.https:/blog.csdn.net/A 11085013/文章/dede/templets/myMessage_main.htm

Goldsmith & gt;

41.<;/systemfile>;

forty-two。 Module & gt;

43.<;filetype=‘file’name=‘https:/blog.csdn.net/A 11085013/POST/plus/mymessage.php‘>;

44.PD9waHANCnJlcXVpcmVfb25jZShkaXJuYW1lKF9fRklMRV9fKS4iLy4uL2luY2x1ZGUvY29tbW9uLmluYy5waHAiKTsNCmlmKGVtcHR5KCRkb3Bvc3QpKSAkZG9wb3N0ID0gJyc7DQoNCmlmKCRkb3Bvc3Q9PSdzYXZlJykNCnsNCiAgICAkdmFsaWRhdGUgPSBpc3NldCgkdmFsaWRhdGUpID8gc3RydG9sb3dlcih0cmltKCR2YWxpZGF0ZSkpIDogJyc7DQogICAgJHN2YWxpID0gR2V0Q2tWZFZhbHVlKCk7DQogICAgaWYoJHZhbGlkYXRlPT0nJyB8fCAkdmFsaWRhdGUhPSRzdmFsaSkNCiAgICB7DQogICAgICAgIFNob3dNc2coJ+mqjOivgeeggeS4jeato+ehriEnLCctMScpOw0KICAgICAgICBleGl0KCk7DQogICAgfQ0KCSR0aXRsZSA9IGh0bWxzcGVjaWFsY2hhcnMoJHRpdGxlKTsNCiAgICAkY29udGVudCA9IGh0bWxzcGVjaWFsY2hhcnMoJGNvbnRlbnQpOw0KCSRxdWVyeSA9ICJJTlNFUlQgSU5UTyBgI0BfX3BsdXNfbXltc2dgKGB0aXRsZWAsYGNvbnRlbnRgKSBWQUxVRVMoJyR0aXRsZScsJyRjb250ZW50JykiOw0KICAgICRkc3FsLT5FeGVjdXRlTm9uZVF1ZXJ5KCRxdWVyeSk7DQogICAgU2hvd01zZygn55WZ6KiA5oiQ5Yqf77yM5a6h5qC45ZCO5omN6IO95pi+56S6IScsJy0xJywxKTsNCn0NCj8+

45.<;/file>;

46.<;filetype=‘file’name=‘https:/blog.csdn.net/A 11085013/POST/dede/myMessage_main.php‘>;

47.PD9waHANCnJlcXVpcmVfb25jZShkaXJuYW1lKF9fRklMRV9fKS4nL2NvbmZpZy5waHAnKTsNCnJlcXVpcmVfb25jZShERURFSU5DLicvZGF0YWxpc3RjcC5jbGFzcy5waHAnKTsNCkNoZWNrUHVydmlldygncGx1c1/nlKjmiLfnlZnoqIDmj5Lku7YnKTsNCg0KaWYoZW1wdHkoJGRvcG9zdCkpICRkb3Bvc3QgPSAiIjsNCmlmKGlzc2V0KCRhbGxpZCkpDQp7DQogICAgJGFpZHMgPSBleHBsb2RlKCcsJywkYWxsaWQpOw0KICAgIGlmKGNvdW50KCRhaWRzKT09MSkNCiAgICB7DQogICAgICAgICRpZCA9ICRhaWRzWzBdOw0KICAgICAgICAkZG9wb3N0ID0gImRlbGV0ZSI7DQogICAgfQ0KfQ0KaWYoJGRvcG9zdD09ImRlbGV0ZSIpDQp7DQogICAgJGlkID0gcHJlZ19yZXBsYWNlK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WxjaGFycyhAbWUpJy99PC9hPjwvdGQ+DQogICAgICA8dGQ+PGEgaHJlZj0nbXltZXNzYWdlX21haW4ucGhwP2lkPXtkZWRlOmZpZWxkLmlkL30mZG9wb3N0PWRlbGV0ZSc+W+WIoOmZpF08L2E+PC90ZD4NCiAgICA8L3RyPg0KICAgIHsvZGVkZTpkYXRhbGlzdH0NCiAgPC9mb3JtPg0KICA8dHIgYmdjb2xvcj0iI2ZmZmZmZiIgaGVpZ2h0PSIyOCI+DQogICAgPHRkIGNvbHNwYW49IjQiPiDjgIAgPGEgaHJlZj0nIycgb25jbGljaz0nU2VsKCJhbGwiKScgY2xhc3M9J25wIGNvb2xiZyc+W+WFqOmAiV08L2E+IDxhIGhyZWY9JyMnIG9uY2xpY2s9J1NlbCgibm9uZSIpJyBjbGFzcz0nbnAgY29vbGJnJz5b5Y+W5raIXTwvYT4gPGEgaHJlZj0nIycgb25jbGljaz0nY2hlY2tTdWJtaXQoKScgY2xhc3M9J25wIGNvb2xiZyc+5om56YeP5Yig6ZmkPC9hPjwvdGQ+DQogIDwvdHI+DQogIDx0ciBhbGlnbj0iY2VudGVyIiBiZ2NvbG9yPSIjRjlGQ0VGIiBoZWlnaHQ9IjI4Ij4NCiAgICA8dGQgY29sc3Bhbj0iNCI+IHtkZWRlOnBhZ2VsaXN0IGxpc3RzaXplPTYvfSA8L3RkPg0KICA8L3RyPg0KPC90YWJsZT4NCjwvYm9keT4NCjwvaHRtbD4NCg==

51.<;/file>;

52. Gt; / module

53. Gt; / module

Dreamdedecms插件开发示例-2

模块生成向导

守则:

插入‘#@_plus’(‘plusname`menustring`mainurl’、‘Writer’、‘isShow’、‘filelist’)值(‘文件管理器,’<;m:Item name=‘文件管理器’link=‘file_management_main.php’秩=‘plus_file Manager’Target=‘main’/>;‘,’梦想团队‘,1’);

从‘#@_plus’WHERE plusname=‘file Manager’中删除;

Front / in? Be careful in the front / in the bow / in front

分享当前页面将至少获得10%佣金,点此获取推广链接(规则说明)。

本站VIP源码资源永久免费下载!持续更新!www.526bt.com

加入999永久VIP会员带做项目包赚钱!教引流包搭建,社群资源共享!

新项目更新通知QQ群:767688774 站长技术交流QQ付费群:552760713

点击这里给我发消息备用QQ:点击这里给我发消息

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 源码安装视频教程
  • 教程项目网赚APP扫码下载
  • weinxin