[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 


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

admin panel RSS feed
Forum Index » User Forum
Author Message
chandumahesh.k@rsninfotech.com


Joined: 2016/9/23
Messages: 32
Offline
i want to add an image ,testimonal and a video in a single row .....and i want to get this whole thing done from admin panel .......
udittmer


Joined: 2013/2/21
Messages: 426
Online
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.

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


Joined: 2016/9/23
Messages: 32
Offline
after the ForumIndex i want to include a image ,a testimonal and a youtube video all of them in a single row and these should be added by the admin from configurations
udittmer


Joined: 2013/2/21
Messages: 426
Online
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.

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


Joined: 2016/9/23
Messages: 32
Offline
the 3 things should be added by the admin from control panel page
  • [Thumb - CHANGES.png]
 Filename CHANGES.png [Disk] Download
 Description No description given
 Filesize 57 Kbytes
 Downloaded:  65546 time(s)

udittmer


Joined: 2013/2/21
Messages: 426
Online
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.

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


Joined: 2016/9/23
Messages: 32
Offline
i want to display a video in the homepage i want to give some admin rights to user also allowing them to upload the video which will be displayed on the home page suggestions please
udittmer


Joined: 2013/2/21
Messages: 426
Online
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.

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


Joined: 2016/9/23
Messages: 32
Offline
i want moderate a group where user will post pictures ...i want to display one of the picture as picture of the month on the home screen suggestions please
udittmer


Joined: 2013/2/21
Messages: 426
Online
Suggestions for what? The base forum software can't do this, so you will have to develop it. Are you prepared to do that?

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


Joined: 2016/9/23
Messages: 32
Offline
yes
udittmer


Joined: 2013/2/21
Messages: 426
Online
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.

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


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



what is the template
udittmer


Joined: 2013/2/21
Messages: 426
Online
The one I mentioned earlier in this topic when you first asked about this.

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


Joined: 2016/9/23
Messages: 32
Offline
chandumahesh.k@rsninfotech.com wrote:
udittmer wrote: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..



mention which two files to analyze
 
Forum Index » User Forum
Go to:   
Mobile view
Powered by JForum 2.8.3 © 2024 JForum Team • Maintained by Andowson Chang and Ulf Dittmer