Requirement:
XThreads
Last Edit: 7 October 2012
We will use one forum only for our Link Directory.
First, create a forum with these settings:
- Template Prefix:
- Language File Prefix: xtldir_
- Settings Overrides:
Setting: Showthread Options -> Post Layout
Value: horizontal
- Allow Blank Post Message: Yes
- Override Threads Per Page: 10
We need this for displaying a very simple 10 most links, like 10 most viewed, 10 most Comments and etc. If we use 20 Threads Per Page here, it will displaying 20 most links. So, how many most links should be displayed depends on this settings.
Then, create custom thread fields:
- Textbox for Website URL:
Create a Custom Thread Fields with this settings:
- Title: Website URL
- Key: xtldwww
- Applicable Forums: 'select the Link Directory forum'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone (required)
- Text Mask Filter: URL (HTTP/S)
- Textbox for Site Description:
Create a Custom Thread Fields with this settings:
- Title: Site Description
- Key: xtlddesc
- Applicable Forums: 'select the Link Directory forum'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone (required)
- Display Order: 2
- Listbox for Links Category:
Create a Custom Thread Fields with this settings:
- Title: Link Category
- Key: xtldcat
- Applicable Forums: 'select the Link Directory forum'
- Input Field Type: Listbox
- Field Input Height: 1
- Values List:
Modify it as our needs.
- Editable by / Required Field?: Everyone (required)
- Display Order: 3
- Allow Filtering: Yes
New templates in Global Template.
Admin CP -> Templates & Style -> Templates -> Global Templates:
- xtldirgo_showthread
- xtldirmost_forumdisplay_threadlist
- xtldir_editpost_first
- xtldir_forumdisplay_inlinemoderation_col
- xtldir_forumdisplay_thread
- xtldir_forumdisplay_threadlist
- xtldir_forumdisplay_threadlist_rating
- xtldir_newthread
- xtldir_postbit
- xtldir_postbit_first
- xtldir_postbit_first_posturl
- xtldir_showthread
- xtldir_showthread_noreplies
- xtldir_showthread_ratethread
Additional Info:
This version uses language variable. So, we need to upload the language files (attached) to our
inc/languages/english folder, or to our languages folder.
The "standard" Link Directory example application above doesn't use a link thumbnail. If we want to use a link thumbnail, we need a link thumbnail service.
In this example, we will use thumbshot link thumbnail service. It is a free link thumbnail service.
Because the link thumbnail service is a third party site, so, please follow this procedure:
1. Register to thumbshots.com
2. After registered, we will be provided two type of links.
3. Put the second link in our
footer template. Just after the MyBB Copyright codes.
4. Then, replace
xtldir_forumdisplay_thread and
xtldir_showthread templates with these templates:
- xtldir_forumdisplay_thread
- xtldir_showthread
Screenshots:
Threadlist:
This is our Link Directory. We have two links for each link. The Thread Subject will lead us to the showthread page. Here our users can comments and discuss the site, like a usual thread. And the Go link will lead us to the redirect page.
Showthread:
Redirect:
Live Demo:
http://www.14.mynie.co.cc/forumdisplay.php?fid=46