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 |
#32
|
|||
|
|||
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. |
#33
|
|||
|
|||
Still taking a look at coding to see if I can help with your request.
|
#34
|
|||
|
|||
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.
|
#35
|
|||
|
|||
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:
|
#36
|
|||
|
|||
Quote:
rated excellent and nominated : |
#37
|
|||
|
|||
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.
|
#38
|
|||
|
|||
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 |
#39
|
|||
|
|||
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 |
#40
|
|||
|
|||
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 |
#41
|
|||
|
|||
If you want to give me temp admin access I can take a look at it and see if I can figure out the disconnect.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|