[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
發表人 內容
chandumahesh.k@rsninfotech.com


註冊時間: 2016/9/23
文章: 32
離線
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


註冊時間: 2013/2/21
文章: 424
離線
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


註冊時間: 2016/9/23
文章: 32
離線
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


註冊時間: 2013/2/21
文章: 424
離線
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


註冊時間: 2016/9/23
文章: 32
離線
the 3 things should be added by the admin from control panel page
  • [Thumb - CHANGES.png]
 檔案名稱 CHANGES.png [Disk] 下載
 描述 沒有檔案註解存在
 檔案大小 57 Kbytes
 下載次數:  58762 次

udittmer


註冊時間: 2013/2/21
文章: 424
離線
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


註冊時間: 2016/9/23
文章: 32
離線
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


註冊時間: 2013/2/21
文章: 424
離線
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


註冊時間: 2016/9/23
文章: 32
離線
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


註冊時間: 2013/2/21
文章: 424
離線
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


註冊時間: 2016/9/23
文章: 32
離線
yes
udittmer


註冊時間: 2013/2/21
文章: 424
離線
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


註冊時間: 2016/9/23
文章: 32
離線
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


註冊時間: 2013/2/21
文章: 424
離線
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


註冊時間: 2016/9/23
文章: 32
離線
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
 
討論區首頁 » User Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer