內容 |
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
The one I mentioned earlier in this topic when you first asked about this.
|
|
|
What specific problem are you facing that prevents you from integrating it? I don't know Bootstrap, so can't help with the particulars of what needs to be done. But if you have gotten Bootstrap to run in some other Java web app, it shouldn't be hard to integrate it into JForum as well.
|
|
|
Yup, templates/${templateName}/js, templates/${templateName}/styles and templates/${templateName}/images are where you would put additional image, CSS and JS files. The value of "templateName" is generally "default".
|
|
|
You accidentally kept the "caps lock" key on - don't do that, it makes you come across as shouting (which I'm sure is not what you intended to do).
I'm not sure what Bootstrap integration entails, but there should be no difficulty including additional JS and CSS files. The header file (header.htm) already includes several CSS and JS files, at least one conditionally based on the value of some Java variable.
|
|
|
So the code for displaying the home page needs to look through all images that were uploaded in a particular forum, and then decide which one to display. I already mentioned which template is used for that page. The Java code is in the net.jforum.view.forum.ForumAction.list() method. Start by analyzing those two files so you understand how data is pulled together and displayed.
|
|
|
Suggestions for what? The base forum software can't do this, so you will have to develop it. Are you prepared to do that?
|
|
|
You might be better off embedding videos hosted elsewhere rather than hosting them yourself. Check the bb_config.xml file for how videos from Youtube, Vimeo and others are embedded via BB codes; maybe that would work for you as well?
There are no provisions for displaying content on the home page exclusively; you could add something like the public announcement on the home page template (which is called forum_list.htm), and make that configurable from the admin panel configurations page. Having users edit that information without making them admins would be a big change, though.
|
|
|
As long as whatever you want to add is text (or numbers or booleans, both of which are easily converted to and from text), like HTML, you can add it to the templates/default/admin/config_list.htm file. Other files that would need to be altered are the SystemGlobals.properties file (that's where the default values go) and the net.jforum.util.preferences.ConfigKeys class (where you define a Java constant that you will use to refer to the setting in your Java code). And of cause the Java classes and FreeMarker templates where you use them.
|
|
|
That's pretty much what you said before, but I'm unclear what you mean by it: What do you mean by "row"? Where would that "row" be displayed? Are you talking about HTML? Why do you think the admin panel config page would be a good place to do that? As I said, a lot more detail would help.
|
|
|
and i want to get this whole thing done from admin panel .......
What do you mean by that? Posts -assuming that's what you're talking, it's not clear to me- are not done from within the admin panel. Please provide more information about what you intend to do.
|
|
|
You're right, there is a bug in 2.4.1 that causes the values of registration captcha and post captcha to not being used correctly. I have just checked in a fix for that into the SVN repository. If you grab the latest source code and build the war file yourself using Maven, you will get the fix and everything else listed in https://sourceforge.net/p/jforum2/wiki2/NewFeaturesTrunk/ as well.
|
|
|
That's odd. Stop the web app, and inspect jforum-custom.conf for the value of the captcha.registration property and post it here. IN fact, post all "captcha.*" property values here.
|
|
|