Discuz!教程之如果修改或删除回复别人的回帖的时候显示的引用信息

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/lih062624/article/details/77299797


如图所示,我们在Discuz!搭建的网站上回复别人的回帖的时候,会自动生成一个引用信息,显示在自己的回复内容上方,很多站长希望修改或删除此处的引用,那么如果处理呢,本文就介绍一下如果修改和删除引用内容:

1.打开文件:\source\language\forum\lang_misc.php

2.搜索:post_reply_quote

3.可以修改或删除右侧对应的文字内容


展开阅读全文

显示删除回复显示所有回复显示星级回复显示得分回复 com.microsoft.sqlserver.jdbc.SQLServerException: 索引 1

01-03

各位大侠 帮帮忙吧 实在不知哪出错了 rncom.microsoft.sqlserver.jdbc.SQLServerException: 索引 1 超出范围。 rnat com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source) rnat com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setterGetParam(Unknown Source) rnat com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setString(Unknown Source) rnat cn.com.chengang.swt.Book$10.delt(Book.java:391) rnat cn.com.chengang.swt.Book$10.widgetSelected(Book.java:372) rnat org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) rnat org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) rnat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) rnat org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) rnat org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) rnat cn.com.chengang.swt.Book.main(Book.java:461) rn索引 1 超出范围。 rnrn我的程序:rn// 加载JDBC驱动 rnString dbURL = "jdbc:sqlserver://localhost:1433; DatabaseName=library"; rn// 连接服务器和数据库library rnString userName = "sa"; //默认用户名 rnString userPwd = "123"; //密码 rnConnection dbConn = null; rnPreparedStatement stmt=null; rnString BookNOTexts=BookNOText.getText().trim(); rnrntry rn Class.forName(driverName); rn dbConn = DriverManager.getConnection(dbURL, userName, userPwd); rn stmt=dbConn.prepareStatement("delete from Book where BookNO=?"); rn stmt.setString(1,BookNOTexts); rn stmt.executeUpdate(); rn int res=stmt.executeUpdate(); rn catch (ClassNotFoundException a) rnSystem.out.println(a.getMessage()); rn catch (SQLException edd) rnedd.printStackTrace(); rnSystem.out.println(edd.getMessage()); rn finally rntry rnstmt.close(); rndbConn.close(); rn catch (SQLException a) rn// e.printStackTrace(); rn rn rn 论坛

收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 天气预报,java.lang.NullPointerException

09-04

有个在天气预报的问题,老是出错,要求只要在模拟器里面显示网上时时更新的预报图片即可。 rn[code=Java]rnimport java.io.*;rnimport java.util.*;rnimport javax.microedition.io.*;rnimport javax.microedition.midlet.*;rnimport javax.microedition.lcdui.*;rnrnpublic class Weather extends MIDlet implements CommandListener, Runnable rnrn private Display mDisplay;rn private Command mExitCommand;rn private Command mForecastCommand;rn private Command mWeatherCommand;rn private Image mImage1;rn private Image mImage2;rn private String mUrl1;rn private String mUrl2;rn mUrl1 = "http://www.weatherzone.com.au/wzservlet/wzwoys/button?postcode=2615&locality=FLOREY&type=0"; //weather imagern mUrl2 = "http://www.weatherzone.com.au/wzservlet/wzwoys/button?postcode=2615&locality=FLOREY&type=1"; //forecast imagernrn private Form mForm;rnrn public Weather() rn mForm = new Form("Weather");rn mImage1 = loadImage(mUrl1);rn mImage2 = loadImage(mUrl2);rnrn mExitCommand = new Command("Exit", Command.EXIT, 0);rn mWeatherCommand = new Command("Weather", Command.SCREEN, 0);rn mForecastCommand = new Command("Forecast", Command.SCREEN, 0);rn mForm.addCommand(mExitCommand);rn mFrom.addCommand(mWeatherCommand);rn mForm.addCommand(mForecastCommand);rnrn mForm.setCommandListener(this);rn rnrn public void startApp() rn mDisplay = Display.getDisplay(this);rn mForm.append(mImage1);rn mForm.append(mImage2);rn mDisplay.setCurrent(mForm);rn rnrn public void pauseApp() rnrn public void destroyApp(boolean unconditional) rnrn public void commandAction(Command c, Displayable s) rn if (c == mExitCommand) rn destroyApp(false);rn notifyDestroyed();rn rnrn if (c == mWeatherCommand)rn rn Alert mAlert = new Alert("Alert", "Weather clicked", mImage1, AlertType.INFO);rn mAlert.setTimeout(2000);rn mAlert.setImage(mImage1);rn mDisplay.setCurrent(mAlert, mForm);rn rnrn if (c == mForecastCommand) rn Alert mAlert = new Alert("Alert", "Forecast clicked", mImage2, AlertType.INFO);rn mAlert.setTimeout(2000);rn mAlert.setImage(mImage2);rn mDisplay.setCurrent(mAlert, mForm);rn rn rnrn public void run() rnrn private Image loadImage(URL url) rn Image image = null;rn try rn image = Image.createImage(url);rn rn catch (IOException ioe) rn System.out.println(ioe);rn rn return image;rn rnrnrn[/code]rnrn这是错误提示。。请问该怎么改? rnjava.io.IOException rnjava.io.IOException rnstartApp threw an Exception rnjava.lang.NullPointerException rnjava.lang.NullPointerException rnat javax.microedition.lcdui.Form.append(+11) rnat Weather.startApp(+19) rnat javax.microedition.midlet.MIDletProxy.startApp(+7) rnat com.sun.midp.midlet.Scheduler.schedule(+270) rnat com.sun.midp.main.Main.runLocalClass(+28) rnat com.sun.midp.main.Main.main(+116) 论坛

显示删除回复显示所有回复显示星级回复显示得分回复 卡在BufferederInputStream.read()和HttpURLConnection.getI

03-26

各位高手大家好!rn 请问下在用java HttpURLConection类post数据时刚开时能够顺利完成但是如果联系多次进行就被卡在getInputStream()处无法运行下去,不知道大家在运用时有没有碰到,希望大侠指点。rn StringBuffer result = new StringBuffer();rn URL httpurl=null;rn HttpURLConnection httpConn=null;rn try rn httpurl = new URL(url);rn httpConn = (HttpURLConnection) httpurl.openConnection();rn httpConn.setRequestMethod("POST");rn //httpConn.setReadTimeout(5000);rn httpConn.setConnectTimeout(30000);rn httpConn.setUseCaches(false);rnrn httpConn.setDoOutput(true);rn httpConn.setDoInput(true);rn httpConn.connect(); rn OutputStreamWriter outw = new OutputStreamWriter(httpConn.getOutputStream(), "utf-8");rn outw.write("line=" + line + "");rn outw.flush();rn outw.close();rn //InputStreamReader re=new InputStreamReader(httpConn.getInputStream(),"utf-8");rn /*运行到下面这条语句就不卡主了无法继续运行,如果设置读取时间,当读取时间到时会发生异常,但下次还是会被卡住*/rn BufferedReader ins = new BufferedReader(new InputStreamReader(httpConn.getInputStream(), "utf-8"));rn // BufferedReader ins = new BufferedReader(re);rnrn String lines;rn while ((lines = ins.readLine()) != null) rn result.append(lines);rn rn ins.close();rn httpConn.connect();rn 论坛

没有更多推荐了,返回首页