Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 XThreads "Forum of the Month"
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #1
XThreads "Forum of the Month"
Hello guys,
I have one idea to create somethings with XThreads but I don't have the ability to do it :/ I'm new to XThreads (yet) could someone help me code the FOTM (Forum of the Month) page?

The template would include: (Image #1)
- Site URL;
- Member's Forum Username;
- Member's Forum Avatar;
- Member's Forum Usertitle;
- Site Description;
- Site Image/Banner.

Other:
- Reply button to only admin or the thread poster.
- The vote FORUM NAME would add +1 to the thread.


POST:Image #1 (sorry for the paint image :/ my forum is current offline due to host update :/)
[Image: semttulolc.png]

MAKING THE POST:
[Image: 56698829.png]

[Image: 468x602b.png]
(This post was last modified: 11-17-2010 09:57 AM by Skiilz.)
11-17-2010 09:32 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: XThreads "Forum of the Month"
How layout do you want for the threadlist?

(This post was last modified: 11-17-2010 12:00 PM by RateU.)
11-17-2010 11:51 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #3
RE: XThreads "Forum of the Month"
It can be the normal layout. Then the user clicks to see the thread and the image #1 would be the layout.

[Image: 468x602b.png]
11-17-2010 09:53 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: XThreads "Forum of the Month"
(11-17-2010 09:32 AM)Skiilz Wrote:  - Site URL
- Site Image/Banner.
Based on the image #2, I think you already have those fields.

(11-17-2010 09:32 AM)Skiilz Wrote:  - The vote FORUM NAME would add +1 to the thread.
I think you can use MyBB rating system for this.

(11-17-2010 09:32 AM)Skiilz Wrote:  - Reply button to only admin or the thread poster.
If you only want to hide the button for other user, you can use Template Conditional for this. But if you want it as a reply permission (only Admin and the thread owner can reply to a thread), I think you need a plugin for this.

(11-17-2010 09:32 AM)Skiilz Wrote:  - Member's Forum Username;
- Member's Forum Avatar;
- Member's Forum Usertitle;
I think the easiest way is use postbit_classic template (based on image #1).

Edit the forum where you want this system will be applied. Set the Template Prefix (under XThreads Options in Edit Forum page) for the forum.
Example:

Code:
xtfotm_

You can set the Show first post on every showthread page setting to Yes if you want the first post will be displayed in each page (if later there is a multi page in the thread).

Then create new template in Global Templates. Name it as xtfotm_postbit_first_classic. Copy paste the entire postbit_classic template code to the new template. Then, edit it (the new template). Create the block you wanted as image #1 first. Later, we will put the XThreads variables in the template, and set some "miscellaneous" settings.


11-18-2010 05:11 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #5
RE: XThreads "Forum of the Month"
(11-18-2010 05:11 AM)RateU Wrote:  Based on the image #2, I think you already have those fields.
Yes. I already have the fields.

(11-18-2010 05:11 AM)RateU Wrote:  I think you can use MyBB rating system for this.
How can I implement this system do rate the post?

(11-18-2010 05:11 AM)RateU Wrote:  If you only want to hide the button for other user, you can use Template Conditional for this. But if you want it as a reply permission (only Admin and the thread owner can reply to a thread), I think you need a plugin for this.
No. I will just hide the button for non-admin and non-thread author.

(11-18-2010 05:11 AM)RateU Wrote:  I think the easiest way is use postbit_classic template (based on image #1).

Edit the forum where you want this system will be applied. Set the Template Prefix (under XThreads Options in Edit Forum page) for the forum.
Example:

Code:
xtfotm_

You can set the Show first post on every showthread page setting to Yes if you want the first post will be displayed in each page (if later there is a multi page in the thread).

Then create new template in Global Templates. Name it as xtfotm_postbit_first_classic. Copy paste the entire postbit_classic template code to the new template. Then, edit it (the new template). Create the block you wanted as image #1 first. Later, we will put the XThreads variables in the template, and set some "miscellaneous" settings.


My prefix: contestscompetitions_
Global Templates: contestscompetitions_postbit_first and contestscompetitions_postbit_first_classic
I set the template but nothing happens... Nothing changes when I post it. :/

[Image: 468x602b.png]
(This post was last modified: 11-18-2010 07:47 AM by Skiilz.)
11-18-2010 07:28 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: XThreads "Forum of the Month"
(11-18-2010 07:28 AM)Skiilz Wrote:  I set the template but nothing happens... Nothing changes when I post it. :/

That's why I told you this:

(11-18-2010 05:11 AM)RateU Wrote:  Later, we will put the XThreads variables in the template, and set some "miscellaneous" settings.

Now, what's the key for each your custom thread fields for this application?

11-19-2010 01:56 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #7
RE: XThreads "Forum of the Month"
But.. I copy&paste the original template and just remove one of the settings but nothing is removed from the template... I edit the template but nothing changes...
Forum prefix: contestscompetitions_
Forum templates: postbit_first - contestscompetitions_postbit_first and postbt_first_classic - contestscompetitions_postbit_first_classic
Show first post on every showthread page : No

Key: forumURL (for forum url)
Key: bannerURL (for banner url)

[Image: 468x602b.png]
(This post was last modified: 11-19-2010 03:29 AM by Skiilz.)
11-19-2010 03:24 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #8
RE: XThreads "Forum of the Month"
(11-19-2010 03:24 AM)Skiilz Wrote:  Key: forumURL (for forum url)

Put this variable in the new template:

Code:
{$GLOBALS['threadfields']['forumURL']}


(11-19-2010 03:24 AM)Skiilz Wrote:  Key: bannerURL (for banner url)

Put this variable in the new template:

Code:
{$GLOBALS['threadfields']['bannerURL']}


Now, you know how the variable structure for text based fields:

Code:
{$GLOBALS['threadfields']['key']}


(11-19-2010 03:24 AM)Skiilz Wrote:  But.. I copy&paste the original template and just remove one of the settings but nothing is removed from the template... I edit the template but nothing changes...

Do you mean you've edited the new template (contestscompetitions_postbit_first and contestscompetitions_postbit_first_classic), but no changes happen?

(This post was last modified: 11-19-2010 04:03 AM by RateU.)
11-19-2010 04:01 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #9
RE: XThreads "Forum of the Month"
Thank you for the variables.

(11-19-2010 04:01 AM)RateU Wrote:  Do you mean you've edited the new template (contestscompetitions_postbit_first and contestscompetitions_postbit_first_classic), but no changes happen?
Yes. Nothing changes... I try to change the tables but I can;t see what I'm doing as no changes appears..

[Image: 468x602b.png]
(This post was last modified: 11-19-2010 05:40 AM by Skiilz.)
11-19-2010 05:39 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #10
RE: XThreads "Forum of the Month"
Do you have My Advertisements plugin installed?

11-19-2010 05:50 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: