The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Extra Field when posting New Thread
This may exist, but I did several searches and didn't see anything. What I would like to do is have an extra field on the "newthread" forum, but only for certain forums I designate. I have a few forums that are "Classifieds" forum and I'd like to have an extra field, probably just below the Title field, called "Ad Link" (or similar). Then, if someone is posting a classified ad and they have the item also on Ebay or Craigslist, for example, they could paste their link into that field (optionally).
Then, when they save their post, "IF" that field is not empty, that link would get parsed and posted at the end of their regular text. The mod would also look at the first X string of characters in the URL they entered and, for example, if the string contains "Ebay" then the link might look like this: EBay |
#2
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=269667" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=269667</a>
|
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
welcome welcome welcome!
|
#5
|
||||
|
||||
As promised via PM, I have attached a product that will give you two additional text input fields, below the title field for new threads. You can set in which forums the product is active, and for which usergroups.
The two input fields use pattern recognition to try to ensure valid text is entered. There are settings where you can modify the pattern. The links are built and displayed beneath the content of the first post in the thread, but they aren't actually part of the post in the database. You can control the color of the links with the StyleVars. This product adds a table to your database which stores the threadid, and the two links for any thread having links associated with them. Please let me know if you have any issues, or would like additional features. |
#6
|
|||
|
|||
Almost there Mark! Tested it on my site (PMd you a video of the test). Works but a couple issues. First, it would be great if the links that get posted would open in a new tab (minor personal preference). When you enter two links (both an Ebay and a Craig's List link) it posts both links perfectly. However, if you only post with an Ebay link in the Ebay field, it still posts a "Craigs List" link, but the link only goes to the home page when you click. If you post only a CL link and put noting in the Ebay field, then neither gets posted.
Hope this helps. |
Благодарность от: | ||
MarkFL |
#7
|
||||
|
||||
Quote:
I have addressed the issues you reported, and am now attaching the update... |
#8
|
|||
|
|||
I would say you nailed it! All options - with both links, with either link, or with no links - all cases work as they should. Super duper! Thank you! If I run across any bugs I'll let you know.
|
#9
|
||||
|
||||
Quote:
Also, if you find you want any added features, just let me know...I'll be glad to see what I can do. |
#10
|
|||
|
|||
Well, since you asked - if I wanted to play around with font size and link color for the links, would that be something I could just modify myself and if so, where would I do that?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|