vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   End-User Options - Mark Thread as "Auction Closed" (https://vborg.vbsupport.ru/showthread.php?t=261429)

venom2124 04-03-2011 10:00 PM

Mark Thread as "Auction Closed"
 
1 Attachment(s)
If you use this modification, please >> Mark As Installed, and consider Nominate for MOTM and Support Developer << :)


What is this!?

This modification will allow you & your members (based on usergroup permissions) to mark a thread as "Auction Closed". It will add the prefix "Auction Closed" to the thread title, and if set in the admincp - it will also close the thread.

This is a modification of code provided by Eric.

Current Version
1.0



Sounds cool. How do I install?


1. Extract the zip, you should have the following directories/files:

Code:

   

      /
      |_ install.html
      |_ product-auctionthread.xml

      /upload/
      |_ auction.php

          /upload/images/
              /buttons/
              |_ markauction.gif

          /upload/includes/
              /xml/
              |_ bitfield_auctionthread.xml

2. Upload: (in the below instructions 'yourforum' would be where you have vBulletin installed)
* /upload/auction.php to /yourforum/auction.php
* /upload/images/buttons/markauction.gif to /yourforum/images/buttons/markauction.gif (upload to each style folder, if you have more than one style)
* /upload/includes/xml/bitfield_auctionthread.xml to /yourforum/includes/xml/bitfield_auctionthread.xml

3. Import the product, product-auctionthreads.xml by going to: AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]

4. Make the following template edits to all of your installed styles:

SHOWTHREAD

Find:
HTML Code:


                          <vb:if condition="$show['addpoll']">
                        <li><a href="poll.php?{vb:raw session.sessionurl}do=newpoll&amp;t={vb:raw threadid}">{vb:rawphrase add_a_poll_to_this_thread}&hellip;</a></li>
                    </vb:if>

Add after:
HTML Code:


                          <vb:if condition="$show['auctionthread']">
                              <li><a href="auction.php?{vb:raw session.sessionurl}do=markauction&amp;t={vb:raw threadid}">{vb:rawphrase auctionthread_markauction}&hellip;</a></li>
                          <vb:else />
                              <vb:if condition="$show['auctionthread_unauction']">
                              <li><a href="auction.php?{vb:raw session.sessionurl}do=markunauction&amp;t={vb:raw threadid}">{vb:rawphrase auctionthread_markunauction}&hellip;</a></li>
                              </vb:if>
                          </vb:if>

5. Set options in AdminCP > Settings > Options > Auction Closed Threads

6. Edit Auction Closed Threads Permissions > Can Mark Threads as Auction Closed for each usergroup.

7. To setup the forums it can be used in, follow these instructions:
  • After installing, go to: Thread Prefixes >> Thread Prefix Manager
  • You'll see: Auction Closed Thread on the left, [Add Prefix] [Edit] [Delete] on the righ
  • Choose Edit.Then you'll see: Use Prefix Set in These Forums, select the forums you want this used in. (Hold the CTRL button to select more than one)
That's it! Enjoy!:D


Changelog:

V1.0- Initial Release



If you use this modification, please >> Mark As Installed, and consider Nominate for MOTM and Support Developer << :)




NOTE: This mod is marked "unsupported", but I'll try my best (as time permits) to help those who have marked as installed.

venom2124 04-04-2011 06:57 PM

Will post screen shots later.

venom2124 04-05-2011 02:48 AM

Screenshots added.

Special Pages 04-05-2011 03:32 AM

To tell you the truth, not bad mate!

Sforums 04-05-2011 10:05 AM

Not bad at all. I was the one who originally requested this.
Thanks Joe.

venom2124 04-05-2011 11:03 PM

Quote:

Originally Posted by Sforums (Post 2181055)
Not bad at all. I was the one who originally requested this.
Thanks Joe.

No problem at all hope people use it and enjoy it for sure.

venom2124 04-10-2011 02:57 AM

Tested of vB4.1.3

Worked perfectly

markhendo1986 04-13-2011 11:18 AM

Hi there,

Just nosying around for some sort of auction function. So presumably you'd be asking your members to post their bids for an auction and then just mark it as closed afterwards?

venom2124 04-13-2011 10:01 PM

Quote:

Originally Posted by markhendo1986 (Post 2184160)
Hi there,

Just nosying around for some sort of auction function. So presumably you'd be asking your members to post their bids for an auction and then just mark it as closed afterwards?

i believe that was the intention. Of course I'm not entirely sure since I was just asked to make the mod, but from what is developed here that would be the way you would have to work it.

K4GAP 08-24-2011 12:01 PM

Trying to figure out what the purpose of this mod is? What am I missing?


All times are GMT. The time now is 09:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01119 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete