[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

admin panel RSS feed
討論區首頁 » User Forum
發表人 內容
udittmer


註冊時間: 2013/2/21
文章: 422
離線
I'm not sure what you're asking; please be more elaborate. Also mention what you have looked at and/or have tried so far, and where you're stuck making progress.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
the admin will moderate a group where users will post there pictures .he will approve one of the pictures and he should display the picture on the homescreen
udittmer


註冊時間: 2013/2/21
文章: 422
離線
I don't understand what the connection of that statement to your previous question is. Again:
Also mention what you have looked at and/or have tried so far, and where you're stuck making progress.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
i haven't done anything yet give me suggestions on how to proceed further
udittmer


註冊時間: 2013/2/21
文章: 422
離線
That posts seems to be missing a "please" (and I'll continue to ignore the absence of any trace of a "thanks" in your posts).

I already pointed you to the home page template file, and the Java class and method that would definitely be involved - check my posts from 10/14 and 10/18. There is no substitute for understanding the code, so I suggest you start reading through it so you get a feeling for how JForum works internally.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
thank u
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
i uploaded a image in a forum can i display it on home screen as "picture of the month" suggestions please
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
using the image location.its is in some encrypted format.jpg_/.png_
udittmer


註冊時間: 2013/2/21
文章: 422
離線
The Java method I mentioned before is responsible for pulling together all the data to be used for the home page. That's where you would need to add all information needed for the image. The AttachmentCommon.getAttachments method is how you would get the data for a given post_id.

The jforum_attach and jforum_attach_desc tables have all the data to get at the required attachment (especially the file name that becomes part of the URL) for a given post_id, in case you need to access it directly.

A good start might be to attach a picture with a post, noting its post_id, and adding code to the home page that displays the picture attached to that particular post.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
udittmer wrote:The Java method I mentioned before is responsible for pulling together all the data to be used for the home page. That's where you would need to add all information needed for the image. The AttachmentCommon.getAttachments method is how you would get the data for a given post_id

how to do this


i used the default "test forum" where images are posted as an admin i will delete the images posted by the user only one image will be left in the forum i want to display that image on the home page suggestions please
udittmer


註冊時間: 2013/2/21
文章: 422
離線
Open-ended questions like "suggestion please" make it hard to help you. What code, exactly, have you changed yet, and what, exactly, is preventing you from progressing? I pointed you several times to the Java code and the template where changes will have to be made. You should have an understanding by now of how JForum accesses DB data internally, how it passes data to the web page template, and of the FreeMarker template language. If not, start by making simpler changes until you do. As I said, there really is no substitute for digging in and getting to know the code base.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
The AttachmentCommon.getAttachments method is how you would get the data for a given post_id.








how to do this please help me
udittmer


註冊時間: 2013/2/21
文章: 422
離線
I won't respond to questions of "how to do this" unless I see evidence that you actually tried to understand what is going on, and how to make it work for you. There are some questions one might have when trying to use the AttachmentCommon.getAttachments method (not many, actually, since both its parameters, its result, and its operation, are all straightforward), but since you didn't ask any particular question, and I'm not willing to spoon-feed you everything, I can only suggest -once again- that you study the code, and once you've made some simple changes and didn't get those to work, come back here with specific questions about the changes you made.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
Please help me I have added the img tag where source is posts/downloadAttach/attachmentId then the image shown up in the home page which mean i need the attachment id, where to add getattachment method in forumAction class and how to access the get attachment method from the home page. Suggest me one thing is there any possiblity where admin will moderate the "test category" where users will post images and he will allow only one post in that category and that image should be shown up on the home screen
udittmer


註冊時間: 2013/2/21
文章: 422
離線
I'm not sure what you mean by "where to add" and "How to access" that method - I told you about a month ago which Java code is responsible for the home page; that's where you need to do that. You can also post the code you have changed -just the relevant parts- here if you're struggling with something in particular.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
 
討論區首頁 » User Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer