![]() |
Show First Post Only To Unregistered User / Guest
1 Attachment(s)
Ported from: https://vborg.vbsupport.ru/showthread.php?t=181462
Thanks to ryans Fully tested on 3.8.1 - probably works the same on 3.8.2+ This is just a simple hack that will show the first post to unregistered users / guests. The rest of the posts in the thread will ask them to login or register. This is a template hack. Of course you can edit your own message. Additions / Changes / Ideas are welcome. In Postbit Templates edit the postbit_legacy or the postbit template depending on which one you use. Find: Code:
<!-- message --> Code:
<!-- message --> |
1 Attachment(s)
Here is another version which puts a nice graphical box around the "Please Register Text"
Upload Warn.png to images/misc/ Add this CSS code to Additional CSS : Code:
.warning-box, find: Code:
<!-- message --> Code:
<!-- message --> |
Interesting Raptor, I like the custom CSS and the included image. One quick question though. How will this affect search engines indexing one's site??
|
I would think that most of the time the OP is what's important to a search engine.
Search engines crawl as guests so they wouldn't see the responses iirc |
Tagged this one for now.
Search engines crawl as guest but as a certain user agent: http://www.pctools.com/guides/registry/detail/799/ People can imitate that, but maybe there is a way to change you mod and make a filter so the mod does not affect search engines. I presume there are also user agent statements voor yahoo and others. If it can be fixed that search engines still can crawl, I would be happy to use this mod. |
I would be happy to use this mod. If you can a way that allows search engines to crawl,
|
I agree. Search engine access and I REALLY like this one.
|
I don't really think, were going ot get what we want though are we? ha!
|
Quote:
|
Is there anyway to show only the first post and total hide all other posts?
Thank you |
Agreed This will rune your forum if you rely on indexing.
|
Try this code for search enginee access with this mod :)
PHP Code:
|
Thanks. :)
|
Sorry but for the search engine adjustment... could you translate this to English for me?
Quote:
|
Quote:
Quote:
|
Thank you.
|
Quote:
PHP Code:
|
what about vb 4.1.3 - i would like to apply this mod on that version - i tryed but seams not possible :( - help?
|
Yes, what about 4.1.x support ? Is there any other plugin to do this ?
|
This mod is for vb3.8.x not 4.x however, i believe it should work if you change the if condtionals properly for vb4 i.e instead of <if you would use <vb:if
|
Just wondering if it is possible to show it in specific and not all subforums?
|
Just add conditionals to exclude the forums you don't want it to work in :)
|
Quote:
I can't find the code to replace in postbit or postbit_legacy. |
Quote:
<if condition="$forum[forumid] != XXX"></if> |
Quote:
|
Im on vb3.7...
|
try this:
HTML Code:
<if condition = "$thread['forumid']==x"> |
no way. have tried several codes but no one worked so far.
|
and you're editing the right template and portion?
|
is there any way to hide replys from sorce page
i mean when you view sorce page i hope you understand me |
Hi,
is there something similar for 4.2.3 ? |
Quote:
Show First Post Only and exclude all usergroups except "Unregistered / Not Logged In". :) |
I tried it, but it doesn't work. I can see the message "All Posts Except The First and Yours Are Hidden From View" , but scrolling down i can see all the posts without login. I tried both setting "all" in the active forum option, and selecting specific forum. It doesn't work.. :(
|
Quote:
|
I tried with both templates, no way. All posts showed to unregistered users.
|
Found and installed this . It works fine . Anyway thank you very much.
|
All times are GMT. The time now is 04:59 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:
|