The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Classifieds: Mark Thread as "Sold" Details »» | |||||||||||||||||||||||||||||||||||||||||
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 "Sold". It will add the prefix "SOLD" to the thread title, and if set in the admincp - it will also close the thread. If you run a classified forum for your members this will give you a way to let users add a Sold prefix when the item is gone. Admins and mods can using to make items sold as well. This is a modification of code provided by Eric. Current Version 1.2 Sounds cool. How do I install? 1. Extract the zip, you should have the following directories/files: Code:
/ |_ install.html |_ product-soldthread.xml /upload/ |_ sold.php /upload/images/ /buttons/ |_ marksold.gif /upload/includes/ /xml/ |_ bitfield_soldthread.xml * /upload/sold.php to /yourforum/sold.php * /upload/images/buttons/marksold.gif to /yourforum/images/buttons/marksold.gif (upload to each style folder, if you have more than one style) * /upload/includes/xml/bitfield_soldthread.xml to /yourforum/includes/xml/bitfield_soldthread.xml 3. Import the product, product-soldthreads.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&t={vb:raw threadid}">{vb:rawphrase add_a_poll_to_this_thread}…</a></li> </vb:if> HTML Code:
<vb:if condition="$show['soldthread']"> <li><a href="sold.php?{vb:raw session.sessionurl}do=marksold&t={vb:raw threadid}">{vb:rawphrase soldthread_marksold}…</a></li> <vb:else /> <vb:if condition="$show['soldthread_unsold']"> <li><a href="sold.php?{vb:raw session.sessionurl}do=markunsold&t={vb:raw threadid}">{vb:rawphrase soldthread_markunsold}…</a></li> </vb:if> </vb:if> 6. Edit Sold Threads Permissions > Can Mark Threads as Sold for each usergroup. 7. To setup the forums it can be used in, follow these instructions:
Upgrade:
Changelog: V1.0- Initial Release V1.1- Updated bitfield_soldthread file V1.2- Fixed permission issue 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. Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Благодарность от: | ||
wrang |
Comments |
#12
|
|||
|
|||
Quote:
|
#13
|
|||
|
|||
Okay found a possible problem in the coding. Try the new zip file reload files and install product again overwriting the old product file.
|
#14
|
|||
|
|||
Okay problem is solved. Had some coding issue that have been resolved. Loaded on another site I admin on and working perfectly now.
If you have already loaded the files just reload the updated sold.php to your forum folder and it will work like a charm. |
#15
|
|||
|
|||
i tried version 1.1 with vbulletin 4.0.4, couldn't get the permissions set correctly. I enabled the thread prefix for all groups, turn it on in the classified forums, enabled it for all user groups but would get a message that I don't have permission to mark a thread sold. even when i tried as site admin.
if you can think of anything that may help please let me know, i may mess with it later. |
#16
|
|||
|
|||
Quote:
|
#17
|
|||
|
|||
Re-tested patched v1.2 with thanks against 4.04 vBulletin ...
ALL field titles and descriptions now appear correctly ... :up: As an Admin, selected a random WTS (Want to Sell) post in or Buy/Sell forum, posted by another member. Clicked drop down box and selected "Mark as Sold". Worked correctly and post now displayed [SOLD] instead of the prefix WTS: :up: As an Admin, selected the SAME WTS (Want to Sell) post in or Buy/Sell forum. Clicked drop down box and selected "Mark as Unsold". Worked correctly, however, the post no longer displays a prefix at all, when it should reverse itself and display the original prefix, in this case it would have been WTS: Can this be addressed, or is going to be a design limitation as I don't know how tou would keep track of what the original prefix was, except perhaps not replacing it, but simply adding [SOLD] in front of the original prefix? Good job overall so far ... :up: Regards, Doug Edit: Also, where can the phrase [SOLD] be changed so that it appears in a color of our choosing? |
#18
|
|||
|
|||
Quote:
I can't really see too many items getting unsold if the user marks them sold after they are sold. It might be a bigger issue if you were working with a sale pending type deal. Will still see if it can be done though. Glad it's working for you now though for sure. And yes you can modify the [Sold] by going to the thread prefix manager then select edit for The sold prefix. There you will see the plain text and rich text boxes. You can change the Plain text to Just Sold and then you can add HTML code to the rich text box to change the color, add bold, or just set it up how you would like. |
#19
|
|||
|
|||
Venom Just sent you a PM.. hope you will have time to check it! Thanks!
|
#20
|
|||
|
|||
PM replied to.
|
#21
|
|||
|
|||
Sorry for what may be a simple question to what is possibly a very simple answer. How can I change the color and add BOLD to the SOLD prefix?
Great little mod by the way Edit: I figured it all out, thanks for the great mod. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|