[Logo] JForum - Powering Communities
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


New: JForum 2.6.0 has been released with many improvements, download it from here
admin panel RSS feed
Forum Index » User Forum
Author Message
udittmer


Joined: 2013/2/21
Messages: 240
Offline
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
[WWW]
chandumahesh.k@rsninfotech.com


Joined: 2016/9/23
Messages: 32
Offline
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


Joined: 2013/2/21
Messages: 240
Offline
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
[WWW]
chandumahesh.k@rsninfotech.com


Joined: 2016/9/23
Messages: 32
Offline
i haven't done anything yet give me suggestions on how to proceed further
udittmer


Joined: 2013/2/21
Messages: 240
Offline
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
[WWW]
chandumahesh.k@rsninfotech.com


Joined: 2016/9/23
Messages: 32
Offline
thank u
chandumahesh.k@rsninfotech.com


Joined: 2016/9/23
Messages: 32
Offline
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


Joined: 2016/9/23
Messages: 32
Offline
using the image location.its is in some encrypted format.jpg_/.png_
udittmer


Joined: 2013/2/21
Messages: 240
Offline
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
[WWW]
chandumahesh.k@rsninfotech.com


Joined: 2016/9/23
Messages: 32
Offline
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


Joined: 2013/2/21
Messages: 240
Offline
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
[WWW]
chandumahesh.k@rsninfotech.com


Joined: 2016/9/23
Messages: 32
Offline
The AttachmentCommon.getAttachments method is how you would get the data for a given post_id.








how to do this please help me
udittmer


Joined: 2013/2/21
Messages: 240
Offline
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
[WWW]
chandumahesh.k@rsninfotech.com


Joined: 2016/9/23
Messages: 32
Offline
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


Joined: 2013/2/21
Messages: 240
Offline
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
[WWW]
 
Forum Index » User Forum
Go to:   
Mobile view
Powered by JForum 2.6.0 © 2019 JForum Team • Maintained by Andowson Chang and Ulf Dittmer
Website Security Test