![]() |
Classifieds: Mark Thread as "Sold"
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 "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:
* /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:
HTML Code:
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. |
Awesome mod! I do have a request though. Could the member who started the thread have the option to mark it as sold as well?
|
The member who started the post does have the ability to mark the item as sold already. As long as the permissions are set correctly only a admin or mod and the user can make an item sold or unsold.
I just tested with a normal registered user profile and it allowed me to make a thread I created as sold or unsold, but didn't let me change the status of another members thread. Hope this clears up the issue if not let me know. |
This is good stuff.
|
Yeah being able to see if an item in our classifieds section is already sold before clicking on it makes it really nice for sure.
|
Interesting ... :)
We already use WTS and WTB and WTT prefixes (Want to Sell, Want to Buy, Want to Trade) in our on-line sales forums. Will this mod simply replace those existing prefixes with SOLD if the seller (or buyer) thread starter marks his thread as SOLD, or does it place the word SOLD in front of the existing prefixes? Regards, Doug |
Yes once the item is sold and the member or mod marks it as sold it will replace the previous prefix with the sold prefix.
I would say take a look at my sight but right now I have the classifieds section invisible to non members. |
Quote:
Excellent idea ... We operate two separate forums for our members that could use this, so I think I'll try some testing .... Regards, Doug |
1 Attachment(s)
Installed on vbulletin 4.04 .. :)
I think you have a problem with the bitfield used for UserGroups? (see pic) As an example, the way you mod appears to our Registered Group under UserGroup settings is only YES/NO... there's no description or title? :confused: Regards, Doug Edit: also missing from Prefix area .. ;) |
1 Attachment(s)
Also, just tested using my own Administrator login and attempted to mark an ad as SOLD belonging to another member ....
The Mark as SOLD option appears in the drop down box, but when I click on it, I received a "No Permissions error ...." Yes, I have the Usergroup box for Admins checked to YES ... ;) I thought Admins could do this, or have I missed something in the instructions? :confused: Regards, Doug |
Quote:
|
Okay found a possible problem in the coding. Try the new zip file reload files and install product again overwriting the old product file.
|
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. |
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. |
Quote:
|
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: :confused: 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? |
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. |
Venom Just sent you a PM.. hope you will have time to check it! Thanks!
|
PM replied to.
|
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. |
Quote:
|
Quote:
Other than that, awesome mod, 5 star and marked installed. |
Go to the Thread Prefix Manager in the AdminCp
Then where you see the SOLD thread prefix click Edit This will take you to the screen you need to edit the rich text to make it appear how you would like on the forum. Here is a picture of the screen and the code changes I made for my site. https://vborg.vbsupport.ru/external/2011/03/6.png |
Thanks venom!
|
Quote:
Your welcome. Hope it works out well for you. |
Just curious, are you planning on doing any other versions of this mod? As in WTS [want to sell], WTB [want to buy], LTT [looking to trade]?
Or if you know of other mods for these specific things and could point me in the right direction, it would be much appreciated!! Thanks again for this great little mod, marked as installed and it's on my live site :) |
Quote:
Now if people need something different for after the fact changes I can probably see about working with them to make it happen. |
Ahh I see how it goes now. I got it all figured now.....again, lol.
|
tested this and found the uninstall blew up, the xml must have a problem in that area.
also I couldn't get the post to close automatically. I dont want to give the whole board control to close threads , just the classifieds category |
As far as the uninstall, can't help ya there as I have not uninstalled the product yet, :\
For the thread to close automatically after you want to set a thread as sold, then it must be done by "Thread Tools -> Mark this thread as sold..." option NOT by editing the post and changing the prefix to SOLD, at least as far as I'm aware. You can choose what sections of your board will have the SOLD [close] option. Thread Prefixes -> Thread Prefix Manager -> up where it says "sold thread" all the way to the right, after [Add Prefix] click on "edit" and choose the categories you want to use this mod. |
Quote:
As for closing the thread automatically, like the post above says you have to set it to that option for that feature to work. That is under the options-->Mark as Sold. If you have screen shots of what the issue was during the uninstall I might be able to help. Also what version of the product did you have installed? I would suggest trying to up load the current files and product file allowing for overwrite of previous files and see if that fixes the issue. |
Quote:
|
I see you logged in . unfortunately I didn't have a good backup so had to reinstall the whole board, so not sure what mod was conflicting, it really doesnt matter as it just a test site for mods and features, reinstalled it and seems to be all good, except that i cant figure out how to get them to close after changing the prefix to sold.
|
1 Attachment(s)
I set the settings to auto close in the settings options in admincp
see! :{ after i change the prefix still open to reply oh 4.1.2 is the version I feel this is a worthwhile mod to develop has a lot of possibility, i think i have all the settings set to auto close but just not doing it for me. since you made an account log in and make a n ad then mark it sold :} with the user permissions i have enabled if you have time later. added: OK I'm sure its not working in this new version its all installed and prefix selection works manually on post and edit, but the thread drop down control does not have the option to mark as sold, and I don't see any screens showing you giving the users permission to close a thread. here is the thread control screen of my install, so i guess the prefix options are working but don't seem to be using any outside files I uploaded from the install zip like sold.php PHP Code:
changed your show template code to match the new version and it works now PHP Code:
|
Quote:
rated excellent and nominated : |
Glad you got it working, but not sure what coding you were changing. I've installed this on two seperate boards with 4.1.2 and it worked like a charm on both. I'm almost thinking you didn't make the template mod or something, but again I'm just not sure.
|
yes not sure what the heck was going on but I know for sure that the edit code you have showing is not whats in version 4.1.2 :)
the code i posted here https://vborg.vbsupport.ru/showpost....8&postcount=35 has the code that is in this new version 4.1.2, its easy to see its not what you have posted at the top of this page. seems to work great though with this changed code for me. if for some reason it doesn't work for new installs im sure this code does work because that's what is in my show thread npw. so it does work |
this mod rocks by the way I'm really liking it and plan to install it for a few people now
I would like it to show the prefix in the recent thread mods for cms widget that would be super. now it doesn't show the prefix in the recent threads or recent posts |
lol this is driving me nuts im going to try your code again and see if it works.
this new code doesn't refresh the show thread at the forum level. works everywhere else probably in the php |
Quote:
|
All times are GMT. The time now is 05:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|