今天给各位分享discuz投票代码的知识,其中也会对投票网站搭建进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:
1、discuz的投票贴怎么提取到首页
后台自定义调用代码,在home页加入代码。
如果是discuz x1版本的话,直接在首页拖拽定义就行了
2、discuz的投票怎么调用到首页显示
安装过XPlus吗?
安装完 建投票 然后有 数据调用 复制代码的 discuz html 代码都有
Xplus的管理员需要单独设置
如果是帖子里自带的投票 只要推送文章到门户首页 或者查看源文件 复制代码
----------------------------------------------------------
有简单的方法为什么不用?
测试了一段代码 会出现未定义操作
body
dt class="xs2"测试/dt
dd
form method="post" autocomplete="off" action="forum.php"
input type="hidden" name="mod" value="misc"
input type="hidden" name="action" value="votepoll"
input type="hidden" name="fid" value="169" !版块ID
input type="hidden" name="tid" value="4212" !帖子ID
input type="hidden" name="pollsubmit" value="yes"
ul class="side_poll"li
label
input type="radio" name="pollanswers[]" id="option_0" class="pc" value="89" /
1 !选项
/label
/li
li
label
input type="radio" name="pollanswers[]" id="option_1" class="pc" value="90" /
2 !选项
/label
/li
li
label
input type="radio" name="pollanswers[]" id="option_2" class="pc" value="91" /
3 !选项
/label
/li/ul
p class="ptn pns"button type="submit" name="submit" id="submit" value="true" class="pn"a herf=";action=votepoll%fid=169tid=4214pollsubmit=yesquickforward=yes"em投票/em/a/button/p
/form
/dd
/dl/div/div/div
/body
(选项当中value 应该要看数据库那个vota那个表里该选项的值)
这个方法不行,你可以自己再研究下!如果需要其他方法 Q181417990
3、在discuz中,发起投票的代码写在哪个文件里面?
根目录
-
template
-
default
-
forumdisplay.htm
论坛板块文件如果你想自己添加发帖投票按钮链接,只需在a标签链接中输入下面的代码就行。forum.php?mod=postaction=newthreadfid=$_G
special=1
discuz投票代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于投票网站搭建、discuz投票代码的信息别忘了在本站进行查找喔。