Version: 1.0.33, by tyfoon
Developer Last Online: Oct 2020
Category: Show Thread Enhancements -
Version: 4.0.0
Rating:
Released: 12-25-2009
Last Update: 01-01-2010
Installs: 29
DB Changes Uses Plugins
Additional Files Translations
No support by the author.
This mods shows only partial posting to guests
Currently shows only the 50 first char. of the message. and then puts the link to the register.php.
ver. 0 alpha 1
configurable from acp
settings : active or not
length guests can view (char length or percentage of posting)
register url and message
Ver 1.0.0
Forum (in the edit forum options) can be individualy selected or can be globaly enabled
Debug mode for admins for testing
Show a percentage of a posting is also an option.
Ver 1.0.0.3
also possible to hide the post & edit time&date
Hide printthread for usergroups
hide archive for usergroups
hide images
hide http links
hide quotes
remove incomlite http links and quotes when in guest limit view
bug with settingsgroup fixed
to install : uninstall the previous version and instal the new one
ver. 1.0.0.33 Warning bitfield xml file updated
added following features
hide color, font, textsize in postings so the usergoups sees only the posting in the default text
Todo : check conflict in quotes ..
make it also work in het cms
Looks great! Keep up the good work. One suggestion you may want to do is to add a break after the limited portion of the post and the register message so that it looks something like this:
<limited message>
<register message>
Another idea (which I imagine you have already thought of..) is to allow for a custom register message to be set in the admincp.
Just a thought.
Edit: Additional thoughts to anyone testing this. You will need to go into the post hide plugin and modify the url to point to your register.php file. I also added a "< br />" before the register message.
Edit: I'm noticing that posts that have quotes in them, the message and the register message with link is not displayed. Only the word "register" is displayed with no link. I tried relocating the html in the register message as follows:
PHP Code:
if (!$vbulletin->userinfo['userid'] )
{ $post['message'] = (substr($post['message'], 0, 50)). '<br/>Please <a href="\site\register.php" type="text/html">Register</a> to see the whole posting.';
}
...and everything after the '>' in the beginning href is displayed. It looks like something in the quote rendering is conflicting with this.
If I run across any other observations, I'll post them as I find them.
{ $post['message'] = (substr($post['message'], 0, 100)). '......Please register to see the whole post,<br> </br> you can register by clicking the link <a href="/forum/register.php" type="text/html">Register here</a>';
}]]></phpcode>
It now directs to my register page no trouble at all, nice mod.
It does the whole thread which is superb, I also have the limited viewing system in place, set at 8 posts, but this gives me the option to now turn off the limited viewing system.
Since my last post, I've tweaked it a bit more so it looks a bit more presentable to guests.
Open up the product.xml file with a text editor and replace with the following to get the same result
{ $post['message'] = (substr($post['message'], 0, 100)). '...... <br> </br> Please register to see the whole post,<br> </br> you can <B><a href="/forum/register.php" type="text/html">Register here</a></B>';
If your forums are not in the forum directory, then just change 'forum' to the name of your forum directory.
Job done.
Edit, I think this Mod is absolutely superb, so much so that I've rated it and also nominated it for MOTM, which is something I never do, I know I've played around with the product.xml, but the concept is what makes it so good, so well done to the original coder for setting it up in the first place.