MyBB Hacks

Full Version: XThreads "Forum of the Month"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
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]
How layout do you want for the threadlist?
It can be the normal layout. Then the user clicks to see the thread and the image #1 would be the layout.
(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)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. :/
(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?
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)
(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?
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..
Do you have My Advertisements plugin installed?
Pages: 1 2 3 4
Reference URL's