Requirement:
XThreads
Last Edit: 7 October 2012
Other Version (Using One Forum Only):
Links Directory
Create one forum type = c (Category)
- Title: Link Directory
- Template Prefix: xtld_
- Hide Forum: Yes
Then create some forum type = f (Forum) under the category above. We will use it as Link Categories.
Each Forum settings:
- Title: ..... We will use this forum title as Link Categories title. e.g: MyBB Forum
- Description: We will use this forum description as Link Categories Description. e.g: All links related to MyBB Forum.
- Template Prefix: xtld_
- Settings Overrides:
Setting: Showthread Options -> Post Layout
Value: horizontal
- Allow Blank Post Message: Yes
- Un-check the reply ability for all user group.
- Set which user group can create a thread per forum basis. It means that we can set which user group can submit a link in which link category. If only admin can submit link in all categories, un-check the ability to create a thread for all user group except for Administrators user group.
- Set which user group can view our Link Directory.
Basically, all user group permissions use MyBB built in permissions. Per forum (in this case, per link category) basis.
Basically, we can use this forum structure (just for example, modify it as our needs):
Link Directory => Category forum type - as our Link Directory "index".
-- Search Engine => Forum type - as link category
-- MyBB Forum => Forum type - as link category
-- Entertainment => Forum type - as link category
-- News And Education => Forum type - as link category
Custom Thread Fields Setting:
- Textbox for Website URL:
Create a Custom Thread Fields with this settings:
- Title: Website URL
- Key: xtldwww
- Applicable Forums: 'select all forum under category Link Directory'
- 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 all forum above'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone (required)
- Display Order: 2
- Textbox for Redirect Delay:
I think we need to bump the clicker to show thread page first, so we can use {$thread['views']} variable, then, redirect the clicker to the website url.
Create a Custom Thread Fields with this settings:
- Title: Redirect Delay
- Key: xtldrd
- Applicable Forums: 'select all forum above'
- Input Field Type: Textbox
- Editable by / Required Field?: Not editable
- Display Order: 3
- Blank Replacement Value and Display Format:
This is our redirection delay time for Administrator and regular user (in seconds). In this example, we set the redirect time 21 seconds for Admin, so, we have enough time to click the edit button if we want to edit it. The redirect time for regular user is 2 seconds. After 2 seconds, they will be redirected to the Website URL. Modify it as our needs.
- Hide Input Field: Yes
- Textbox for Back:
We will create a back url to the forum id. This link can be viewed by Administrator only. I think we need this link because we will use the showthread template as redirection page. So, after we submit a link, we have a link to get us back to the thread list. I think it is better than hitting the browser Back button.
And, we will use this fields to add edit post link for each thread in our threadlist (viewable by Admin only).
Create a Custom Thread Fields with this settings:
- Title: Back
- Key: xtldback
- Applicable Forums: 'select all forum above'
- Input Field Type: Textbox
- Editable by / Required Field?: Not editable
- Display Order: 4
- Blank Replacement Value and Display Format:
- Hide Input Field: Yes
New templates in Global Template.
Admin CP -> Templates & Style -> Templates -> Global Templates:
- Template Name: xtld_editpost
- Template Name: xtld_forumbit_depth2_forum
- Template Name: xtld_forumdisplay_inlinemoderation_col
- Template Name: xtld_forumdisplay_nothreads
- Template Name: xtld_forumdisplay_subforums
- Template Name: xtld_forumdisplay_thread
- Template Name: xtld_forumdisplay_threadlist
- Template Name: xtld_newthread
- Template Name: xtld_postbit
- Template Name: xtld_showthread
- Template Name: xtld_forumdisplay_threads_sep
- Template Name: xtld_forumdisplay_sticky_sep
We still have moderation tools for each "Link" (thread), like unapproved, delete and edit.
Change Log:
#1 -
#2 -
#3 -
#4 -
#5
Screenshoots:
New Links Form:
Links Directory Categories
Links In Categories - Admin View:
Links In Categories - User View:
Redirect Page for Admin
Redirect Page for "regular" clicker.
Live Demo:
http://www.14.mynie.co.cc/forumdisplay.php?fid=46
http://www.7173mustangs.com/forum-link-directory
http://leetlink.com/Forum-Directory