Log in

View Full Version : Miscellaneous Hacks - Enhanced View Forum Posts (search results)


MarkFL
04-24-2015, 09:00 PM
Overview:

This product will enhance the functionality of the search results when viewing the posts of a particular user. The entire post content is returned rather than a truncated summmary. More complete information is provided about each post, including links to the forum, thread, thread author and post author. Initially only the first line of each post is shown, but if more than one line is available, the user may click a button above and to the right of the post to show the entire post (which will appear or disappear as needed if the browser window is resized), and all posts on the page may be expanded/collapsed via a button in the block header. Each individual post is contained in its own block to make it easier to distinguish what data pertains to each post.

You may wish to hide the content of certain BBCodes from guests, and/or you may wish to hide spoiler content from everyone. There are options in the AdminCP settings for this product to define the BBCode content to hide from guests and the name(s) of your spoiler tags so their content will be hidden. In both cases, the content is replaced by a message in red explaining why the content is hidden when applicable. The message in red is a link to the registration page.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153759&stc=1&d=1449206351

Updates:

Version 1.1:


Added the option to display unparsed post pagetext, parsed post messages or both.
Individual posts are expanded/collapsed via a button so that users can interact with the elements in the parsed posts.
If you decide to hide the URL BBCode from guests, only external links will be hidden...links within your domain will not be hidden.
Completely compatible with LaTeX powered by Mathjax.


Version 1.2:


Now integrated with "Hide BBCodes/Signatures From Guests" (https://vborg.vbsupport.ru/showthread.php?t=318467) with regards to merging defined BBCode tag lists to hide.


Version 1.3:


The complete post is retrieved from the database rather than requiring you to hack a core PHP file. :up:
You may now define the background colors for the parsed and unparsed post data. An HTML color input element is used.


Version 1.4:


Fixed bug where HTML in code-block BBCodes is no longer parsed as HTML.


Version 1.5:


BBCodes entered into settings are trimmed to reduce chance of error.
Various other parsing issues fixed.


Version 1.6:


Updated to maintain compatibility with "MarkFL: Hide BBCodes/Signatures From Guests/Users."


Version 2.0:


Link to forums includes description tooltip.
Thread and post authors have usergroup HTML markup.
Inline attached images display as images rather than links to the images.
Post text encoding has been fixed for those pesky special characters.
Now fully compatible with BBCode For Username HTML Markup (https://vborg.vbsupport.ru/showthread.php?t=320113) and Abbreviations/Acronyms (MathJax Compatible) (https://vborg.vbsupport.ru/showthread.php?t=320619).


Version 2.1:


Updated for compatibility with Show First Post Only (https://vborg.vbsupport.ru/showthread.php?t=318588)


Version 2.2:


Fixed issue with usernames containing special characters.



Compatibility:

Tested and working on VB 4.2.x and should work on all 4.x versions of vBulletin.

Backup/Warning:

This product does NOT alter your database, however it is always good practice to keep regular backups and you should backup before installing ANY new mod.

As always products are USE AT YOUR OWN RISK. I will try to help if I can but no guarantee is offered or implied.

To Install:

1.) Download and extract the attached .zip file.
2.) Upload the contents of the "upload" folder to your forum's root directory.
3.) In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.
4.) Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.
5.) Click "Import"
6.) You MUST set your settings to enable the mod. Each setting has an explanation of its use.

https://vborg.vbsupport.ru/attachment.php?attachmentid=153760&stc=1&d=1449206351

Support for this product can be found here:


MHB - Enhanced View Forum Posts (search results) (http://mathhelpboards.com/vbulletin-products-61/enhanced-view-forum-posts-search-results-22038.html)
TAZ - Enhanced View Forum Posts (search results) (https://theadminzone.com/threads/enhanced-view-forum-posts-search-results.145225/)

MarkFL
04-28-2015, 01:55 AM
Updated to version 1.1.

The main change with this update is that you can now choose whether your users will see unparsed post pagetext, fully parsed posts, or both when viewing the posts of a particular user.

A new PHP file has been added so that a new product I have planned can be integrated with this one. :D

MarkFL
04-29-2015, 02:03 AM
Updated to version 1.2.

Now allows integration of defined list of BBCode tags to hide with the list defined in "Hide BBCodes/Signatures From Guests" (https://vborg.vbsupport.ru/showthread.php?t=318467).

MarkFL
05-15-2015, 04:39 PM
Update: version 1.3


The complete post is retrieved from the database rather than requiring you to hack a core PHP file. :up:
You may now define the background colors for the parsed and unparsed post data. An HTML color input element is used.

MarkFL
05-21-2015, 04:25 PM
Update: version 1.4


Fixed bug where HTML in code-block BBCodes is no longer parsed as HTML.

MarkFL
05-22-2015, 05:26 AM
Update: version 1.5


BBCodes entered into settings are trimmed to reduce chance of error.
Various other parsing issues fixed.

MarkFL
07-20-2015, 05:26 AM
Update: version 1.6


Updated to maintain compatibility with "MarkFL: Hide BBCodes/Signatures From Guests/Users."

Raptor
07-20-2015, 12:03 PM
Me again ;)

I'm not seeing anything different in my search results - looks exactly like it was before the mod was enabled.

Yes the .js is uploaded lol

Vb 4.2.3

MarkFL
07-20-2015, 01:27 PM
Just to be sure, are you using the "Find latest posts" search on user profiles?

Raptor
07-20-2015, 03:47 PM
i've tried all ways of searching - nothing looks different

Raptor
07-20-2015, 03:50 PM
ah ok

find latest posts in user profile works

but search results look the same everywhere else

MarkFL
07-20-2015, 07:50 PM
ah ok

find latest posts in user profile works

but search results look the same everywhere else

This product is only an enhancement to the "View Forum Posts" search result...not all search results. :D

Raptor
07-23-2015, 03:22 PM
ffs another derp

/me bangs head

MarkFL
12-04-2015, 03:23 AM
Update - Version 2.0


Link to forums includes description tooltip.
Thread and post authors have usergroup HTML markup.
Inline attached images display as images rather than links to the images.
Post text encoding has been fixed for those pesky special characters.
Now fully compatible with BBCode For Username HTML Markup (https://vborg.vbsupport.ru/showthread.php?t=320113) and Abbreviations/Acronyms (MathJax Compatible) (https://vborg.vbsupport.ru/showthread.php?t=320619).


This is a major update! :)

MarkFL
02-03-2016, 02:44 AM
Update: Version 2.1


Updated for compatibility with Show First Post Only (https://vborg.vbsupport.ru/showthread.php?t=318588)

MarkFL
12-21-2016, 06:58 AM
Update: Version 2.2


Fixed issue with usernames containing special characters.

gnrx
03-06-2019, 09:20 AM
Hi,
A two weeks ago, I was installed this product, all fine.
For some reassons a few days ago I uninstall, but today, I install again.

Now, when I access to some thread appears this error:
Call to undefined function hide_handle_bbcode_img() on line 189 in /home/xxx/public_html/foro/includes/class_postbit.php(345) : eval()'d code
#0 /home/xxx/public_html/foro/includes/class_postbit.php(345): eval()
#1 /home/xxx/public_html/foro/showthread.php(1096): vB_Postbit->construct_postbit(Array)
#2 {main}


Fatal User Error: Call to undefined function hide_handle_bbcode_img() on line 189 in ..../includes/class_postbit.php(345) : eval()'d code in ..../vb/vb.php on line 286

Also I have installed MarkFL: Hide BBCodes/Signatures From Guests/Users

In the last days I was need install the iconv module in php ( I was migrated the server and for some reasson, this module that was not install by default).
Its possible I need some module, because the error, its very similar.

Thanks and regards!

MarkFL
03-06-2019, 11:51 AM
Did you upload the external scripts?

gnrx
03-06-2019, 08:23 PM
Did you upload the external scripts?
Sorry, at what external scripts you mean?
I upload the upload folder and then the .xml.

Thanks!!

gnrx
03-24-2019, 11:25 PM
Hello again :)
I view that, I have this problem when access to thread with links like unregistered user.
If I access loged, I don't have this problem.

Also I used, MarkFL: Hide BBCodes/Signatures From Guests/Users

Thanks and regards.

MarkFL
03-25-2019, 02:35 AM
Hello again :)
I view that, I have this problem when access to thread with links like unregistered user.
If I access loged, I don't have this problem.

Also I used, MarkFL: Hide BBCodes/Signatures From Guests/Users

Thanks and regards.

Please make sure the file "hidebbcodesfromguests.php" was not overwritten from this product, as it is out of date. Upload it from the product "MarkFL: Hide BBCodes/Signatures From Guests/Users" to be sure. :)

gnrx
03-25-2019, 09:42 AM
Please make sure the file "hidebbcodesfromguests.php" was not overwritten from this product, as it is out of date. Upload it from the product "MarkFL: Hide BBCodes/Signatures From Guests/Users" to be sure. :)

Ohh, this is the problem.
Always, with this product, I overwritte the file "hidebbcodesfromguests.php"...this is my error.
Now, I upload with no overwritten this file and works perfect! :)
Thanks MarkFL!

PS: With this 2 products, in this product (MarkFL: Enhanced View Forum Posts v2.2), I don't need configured in options BBCode Tag Content To Hide From Guests - Merge BBCode Tag List? and BBCode Spoiler Tag Content To Hide ?

Again, thanks!

MarkFL
03-25-2019, 05:26 PM
That's not your error, that's mine because I did not update the script in this product. Sorry about that.

If you want the same BBCodes hidden from guests in this search result as you have hidden in posts, then set the option "Merge BBCode Tag List?" to "Yes." If you want additional BBCodes hidden just in the search results, then you can add those in this product's settings. :)

gnrx
03-25-2019, 05:33 PM
That's not your error, that's mine because I did not update the script in this product. Sorry about that.
No sorry, thanks at your for all your work and help! :)

If you want the same BBCodes hidden from guests in this search result as you have hidden in posts, then set the option "Merge BBCode Tag List?" to "Yes."
Ok, perfect, I have configured in the other product some BBcodes for guests and one usergroup.
I set this option "Merge BBCode Tag List?" to "Yes."
If you want additional BBCodes hidden just in the search results, then you can add those in this product's settings. :)
When you indicate additional BBcodes, are additional or the same that I have configured in the other product?

In this thread does not allow me to give you more thanks, but I write them to you, thank you!

MarkFL
03-25-2019, 05:53 PM
Suppose you have IMG and CODE set to be hidden by the other product, but you want QUOTE to be hidden only in the search result from this product. Then you would add QUOTE to the setting "BBCode Tag Content To Hide From Guests" in this product, and set merge to "Yes" and all 3 will be hidden from guests in the search result, but in posts, only the two designated by the other product will be hidden. :)

gnrx
03-25-2019, 06:11 PM
Thanks for explanation, now all clear and fine :)

Thanks again!!

MarkFL
03-25-2019, 07:13 PM
You're welcome, and I am also prevented from liking your posts. With so few people posting here now, the setting requiring us to like others' posts before liking the same person again really gets in the way.

gnrx
03-25-2019, 07:55 PM
Yes, I suppose that, except for the problem that I had, the rest works really well (like all your products :)) I had the question of how to configure using this and your other product, it will also be good for other users who may have the same question .

Thank you for all your help! :)