PDA

View Full Version : Show Thread Enhancements - Guests First Post Only


Dismounted
07-07-2008, 10:00 PM
Guests First Post Only

Description:
This mod only shows the first post of a thread to guests. After it displays the first post, it then displays a message telling the guest to login or register.

Installation:
All the installation information is in the package.

Changes:
2 Templates
12 Plugins
4 Phrases

Other Versions:
Guests First Post Only for 3.6 - https://vborg.vbsupport.ru/showthread.php?t=135016

Dismounted
07-08-2008, 02:54 PM
Change Log:
10/07/2008 - Version 1.6
- Enabled By Default On New Install (Archive Disabled By Default)
- Added Archive Hiding
- Fixed Possible Compatibility Issues

9/07/2008 - Version 1.5
- Fully Phrased
- Added Independent Templates
- Fixed Print Thread Bug
- Near Full Rewrite
- First 3.7 Release

10/01/2007 - Version 1.4
- Fixed 'Invalid SQL' Error In Announcements

5/01/2007 - Version 1.3
- Fixed 'Invalid SQL' Error In PM's
- Fixed Posts Being Displayed After Message
- Fixed Options Not Saving Properly

2/01/2007 - Version 1.2
- Fixed 'Call to a member function on a non-object' Error
- Fixed Message Being Displayed When Only One Post
- Fixed Options Not Saving Properly

1/01/2007 - Version 1.1
- Can Be Enabled On Per Forum Basis

29/12/2006 - Version 1.0
- Initial Release

RACHR
07-08-2008, 03:06 PM
Great MOD, works fine.

Automatical ENABLED for all Forums when i Install this, does Goes better.

Why?
Anybody must set all the Sections on enable..............ich ca 40 Forums ^^
This can be modification that any Section is automatical anabled when i install this??

Sry, for this english, iam german

UltraFanatics
07-08-2008, 04:52 PM
Just installed this mod and now I cant see anything even when logged in!!

I disabled it and it's still the same so no users can see any threads heeeeeeeeeeeeeelp

UltraFanatics
07-08-2008, 05:03 PM
Just installed this mod and now I cant see anything even when logged in!!

I disabled it and it's still the same so no users can see any threads heeeeeeeeeeeeeelp

Deleted the mod now and it's still empty!

Any ideas I need serious help ASAP

UltraFanatics
07-08-2008, 05:18 PM
Panic over!

I found the old code still in my template for some reason so must have affected it majorly. PHEW!

Now working perfect so thanks mate, a truely superb mod but remember everyone to delete your old code.

Quick question - This doesn't affect spiders and vbseo looking at the hidden posts does it?

KURTZ
07-08-2008, 06:56 PM
Dismounted comes onto 3.7.x ... :D

7lanet
07-08-2008, 08:15 PM
Does this affect the work of archiving search engines? ex / google : yahoo ???

Hornstar
07-08-2008, 09:40 PM
Does this affect the work of archiving search engines? ex / google : yahoo ???

If you were to make it show for search engines and not guests, that would be bad for seo anyway.

Dismounted
07-09-2008, 04:49 AM
Just installed this mod and now I cant see anything even when logged in!!

I disabled it and it's still the same so no users can see any threads heeeeeeeeeeeeeelp
Deleted the mod now and it's still empty!

Any ideas I need serious help ASAP
Panic over!

I found the old code still in my template for some reason so must have affected it majorly. PHEW!

Now working perfect so thanks mate, a truely superb mod but remember everyone to delete your old code.
This shows that people don't read the ReadMe file ;).
Dismounted comes onto 3.7.x ... :D
Slowly, one by one :D. If you look in my profile, you might be able to guess which is coming next ;).
Quick question - This doesn't affect spiders and vbseo looking at the hidden posts does it?
Does this affect the work of archiving search engines? ex / google : yahoo ???
See below. SEs will penalise you for doing that. I believe that some will even remove your listing. Posts in the archive are not "hidden", so they will still be indexed anyway. I am looking in to having an option to "hide" posts in the archive as well.
If you were to make it show for search engines and not guests, that would be bad for seo anyway.

Dismounted
07-09-2008, 06:17 AM
Modification Updated!

Changes From Version 1.5 To 1.6
- Enabled By Default On New Install (Archive Disabled By Default)
- Added Archive Hiding
- Fixed Possible Compatibility Issues

Q-v-n-s-Q
07-09-2008, 06:44 AM
nice mod, thanks

verino
07-09-2008, 07:21 AM
Thank's mate *installed* :D

Nevermind, need to disabled it for certain forum :D

KURTZ
07-09-2008, 08:41 AM
Slowly, one by one . If you look in my profile, you might be able to guess which is coming next .

ehehe slowly and painless ... :D

ps. thx for the update ;)

Mecho
07-09-2008, 05:52 PM
This is one of my favorite mods . using for along time and i'm happy to have it .

Great update Dismounted , just one suggestion :

to make it easier for us make an admin option that we can put the forums id and exclude the forums that we want , instead of go to each forum and set them one by one :D

Thanks man

unicorn2433
07-09-2008, 06:22 PM
Does this affect the work of archiving search engines? ex / google : yahoo ???

wondering same thing.
Will the search engines still be able to do their thing?

Dismounted
07-10-2008, 05:42 AM
Great update Dismounted , just one suggestion :

to make it easier for us make an admin option that we can put the forums id and exclude the forums that we want , instead of go to each forum and set them one by one :D
The reason I won't do this is because it is not "non-geek" user friendly. vBulletin has the functionality to set things on a forum basis via the Admin CP, that is what I will utilise.
wondering same thing.
Will the search engines still be able to do their thing?
Please read the thread ;).

jorgejgm
07-10-2008, 08:44 AM
In old versions was modifying the postbit template to introduce new columns with code of adsense. Since I can do it in this version?

Thankyou

UltraFanatics
07-10-2008, 09:38 AM
I didn't realise that this affects search engines and vbseo, I guess I will have to uninstall it :(

Damn my favourite mod too

Dismounted
07-10-2008, 10:16 AM
In old versions was modifying the postbit template to introduce new columns with code of adsense. Since I can do it in this version?

Thankyou
You can do anything to your postbit template - the new version does not even touch it.

jorgejgm
07-10-2008, 10:27 AM
I do not find the code in the postbit:

<!-- Start Guests First Post Only Hack -->
<if condition="$memid == 1">
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Welcome!</td>
</tr>
<tr>
<td class="alt1">To see more of this thread, please login or <a href="register.php">register</a>.</td>
</tr>
</table>
</if>
</if>
<!-- End Guests First Post Only Hack -->

you use a new code?because de mod work

Thankyou

UltraFanatics
07-10-2008, 10:47 AM
Does anyone actually know how bad this affects engines and vbseo?

I really dont want to uninstall this mod but if it realy does affect them then I think I will have too :(

Dismounted
07-10-2008, 12:22 PM
I do not find the code in the postbit:

<!-- Start Guests First Post Only Hack -->
<if condition="$memid == 1">
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Welcome!</td>
</tr>
<tr>
<td class="alt1">To see more of this thread, please login or <a href="register.php">register</a>.</td>
</tr>
</table>
</if>
</if>
<!-- End Guests First Post Only Hack -->

you use a new code?because de mod work

Thankyou
Please read the ReadMe carefully. If you are installing a new copy - read the "Installation" section. If you are upgrading from 1.4/1.3/1.2/1.1, read the "Upgrading from Pre-1.5" section. If you are upgrading from 1.5, read the "Upgrading After 1.5" section.
Does anyone actually know how bad this affects engines and vbseo?
The only thing that happens is that SEs don't see your second, third, etc. posts, only the first. Therefore, they will only index the first post of a thread.

jorgejgm
07-10-2008, 04:27 PM
Hello,
In the readme.html does not say anything, ultimately investigating I have seen that is necessary to modify postbit_gfpo for the last version.

Regards.

Dismounted
07-11-2008, 05:02 AM
You should have said you wanted to modify the message. You seemed like you were upgrading and couldn't find the old code to remove.

You can modify the phrases "gfpo_login_or_register" and "gfpo_welcome" to change the messages. These phrases are used in three places (postbit_gfpo, printthread_gfpo, and in the archive).

jorgejgm
07-11-2008, 06:48 AM
Sorry, my english bad bad bad

Koroku
07-16-2008, 10:23 PM
Is there a way of installing this so that by default, all forums are visible?

I have a single forum that I would like to use this on, and about 100 that I don't... so I don't really want to have to go and manually edit the 100 others. >_>

Otherwise, this sounds like a great mod :D

Dismounted
07-17-2008, 11:15 AM
One moment, everyone wants it all on by default, the next, everyone wants it off. :D

In the XML, find:
$db_alter->add_field(array(
'name' => 'gfpo_enabled',
'type' => 'smallint',
'attributes' => 'unsigned',
'null' => false,
'default' => 1
));
Replace With:
$db_alter->add_field(array(
'name' => 'gfpo_enabled',
'type' => 'smallint',
'attributes' => 'unsigned',
'null' => false,
'default' => 0
));

Find:
$forum = array_merge($forum, array('gfpo_enabled' => 1, 'gfpo_enabled_archive' => 0));
Replace With:
$forum = array_merge($forum, array('gfpo_enabled' => 0, 'gfpo_enabled_archive' => 0));

glenvw
07-17-2008, 07:07 PM
I have a lot of trouble getting people to register. Do you that use this find this helps?

Also, does this prevent the search engines from spidering?

Koroku
07-17-2008, 07:48 PM
One moment, everyone wants it all on by default, the next, everyone wants it off. :DThanks!

Maybe you could do something like have two versions of the mod - one with it on by default, one with it off. :DAlso, does this prevent the search engines from spidering?Read the thread~

G-man
07-17-2008, 07:57 PM
Just installed this on forums, but it does nto seem to function. Is there a place I can check what usergroup ID I need to have the guest group AKA unregistered/notlogged in set at?

BTW I DID read the instructions, thanks...

Dismounted
07-18-2008, 07:07 AM
You shouldn't have to set anything, except for enable/disable it for each forum.

westward
07-23-2008, 10:29 PM
Ok, so I have everything installed. As per this request (https://vborg.vbsupport.ru/showthread.php?t=185947) - what should I be looking for so that only paid subscribers can view the entire thread - and only non paid subscribers can view the first post.

Thanks!

Dismounted
07-24-2008, 07:57 AM
What is the usergroup ID of "non-subscribers"?

westward
07-24-2008, 11:18 PM
the subscribers to one forum is 9 and another forum is 10

kofoid
07-25-2008, 01:34 AM
love it - thanks!

Deepdog009
07-25-2008, 05:39 AM
Dank U!

Dismounted
07-27-2008, 03:57 AM
the subscribers to one forum is 9 and another forum is 10
What is the usergroup ID of "non-subscribers"?
That is, the IDs of usergroups who should see the message.

westward
07-30-2008, 03:22 PM
got it, okay so for one it would be "1,2,3,4,8,10"

and the other would be "1,2,3,4,8,9"

Did I understand the question correctly?

Dismounted
07-31-2008, 07:01 AM
And the respective forum IDs?

westward
07-31-2008, 04:44 PM
the former is 52, and the latter is 53

Dismounted
08-01-2008, 06:54 AM
Use this product XML instead of the normal one (note that it will override any forum settings set for the modification).

westward
08-04-2008, 09:08 PM
Thanks, I'll give it a try - Should I un-install the original first?

Dismounted
08-05-2008, 12:01 PM
No, I don't think you will have to.

westward
08-05-2008, 03:24 PM
The mod works as long as the user's primary usergroup is set, but not if the user is in the additional usergroup setting.

I looked at the xml code to see if I could make the modification to include users that are in the additional usergroup setting - but am very new to vb code - could you point me in the right direction?

thanks,
westward

Dismounted
08-06-2008, 06:02 AM
It should work for both - I don't see any reason why it wouldn't.

UKBusinessLive
09-09-2008, 11:38 PM
Excellent Mod, and soooooo easy to install.

A Credit to you Sir :)

Thanks

john102774
09-10-2008, 05:05 AM
This is indeed one of my favorite Mod.. Great stuff! :)

AmexBlackG5
10-15-2008, 11:46 PM
Great Mod :)

Traxdata
10-22-2008, 08:57 AM
Description:
This mod only shows the first post of a thread to guests. After it displays the first post, it then displays a message telling the guest to login or register.



also possible for some usergroups and not for guests only?
thank you

Dismounted
10-22-2008, 10:45 AM
Nearly anything is possible ;). You'll have to edit the plugins yourself as it is not default functionality and is not intended to be.

mechanist
10-22-2008, 11:56 AM
Excellent Add-On
Thank you !

Installed without any Problems ! :)

JonnyC1802
11-10-2008, 08:27 PM
Ok, so I have everything installed. As per this request (https://vborg.vbsupport.ru/showthread.php?t=185947) - what should I be looking for so that only paid subscribers can view the entire thread - and only non paid subscribers can view the first post.

Thanks!

Great MOD, but I have the same problem as above

I need the subscribed users (usergroup 9) to be able to see the full posts in forums 6 ,7, 8 and 9 but registered users only see the 1st post

Please can you point me in the right direction as to what i need to alter as I may need to add other forums to the above list

Thanks in advance

Dismounted
11-11-2008, 03:31 AM
You'll need to edit most of the plugins for the product. Change the guest checks into usergroup checks.

JonnyC1802
11-11-2008, 09:00 PM
You'll need to edit most of the plugins for the product. Change the guest checks into usergroup checks.

Thanks for the reply

I understand how to edit the plugins for the products, but am unsure how you mean to change the guest checks into usergroup checks, please could you explain this

many thanks

Jon

Dismounted
11-12-2008, 07:03 AM
Change the conditionals that check if a user is a guest into one for usergroups...

JonnyC1802
11-12-2008, 02:32 PM
Thanks for the reply

I changed in the product xml file every entry of

$show['guest']

to

"is_member_of($bbuserinfo,1,2,3,4,8)"

I then reimported the product

but now even subscribed users (9) or Admins (6) cant see any replies

Have I replaced one somewhere I shouldnt ???

any help is greatly appreciated

Thanks

ahuf
11-13-2008, 05:53 AM
I recently installed 3.7.4 and then found this mod and it got me very interested. However everything works to plan as far as the install. but then when I logout myself and try to see if it worked. it gives me this message There are no posts in this forum.

could it be vb 3.7.4?

Thank you

and great mod idea

Dismounted
11-14-2008, 03:17 AM
I will look into it as time permits. However, I have not seen anyone else report this problem. Try disabling any modifications you have running.

Corneeee
11-20-2008, 08:24 PM
Installed

benstillman
02-03-2009, 07:43 PM
I get this error when the mod is enabled:

Invalid SQL:

SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,
icon.title as icontitle, icon.iconpath,
avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,


editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason, editlog.hashistory,
postparsed.pagetext_html, postparsed.hasimages,
sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
, '' AS field6, '' AS field7, '' AS field8, '' AS field9, '' AS field12
, IF(SUM(photoplog_fileuploads.moderate) > 0 AND 0 = 0,COUNT(photoplog_fileuploads.moderate) - SUM(photoplog_fileuploads.moderate),COUNT(photoplo g_fileuploads.moderate)) AS photoplog_filecount
FROM vbb_post AS post
LEFT JOIN vbb_user AS user ON(user.userid = post.userid)
LEFT JOIN vbb_userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN vbb_usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN vbb_icon AS icon ON(icon.iconid = post.iconid)
LEFT JOIN vbb_avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vbb_customavatar AS customavatar ON(customavatar.userid = user.userid)


LEFT JOIN vbb_editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN vbb_postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 5 AND postparsed.languageid = 1)
LEFT JOIN vbb_sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 5 AND sigparsed.languageid = 1)
LEFT JOIN vbb_sigpic AS sigpic ON(sigpic.userid = post.userid)
LEFT JOIN photoplog_fileuploads AS photoplog_fileuploads ON(photoplog_fileuploads.userid = user.userid)
WHERE post.postid = 134199
ORDER BY post.dateline;

MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause

I used this mod on 3.6 and loved it. Haven't been able to get it working on 3.7. I've removed the template edits, removed the xml file, etc. No avail. Anybody have a clue what's going on?

Dismounted
02-04-2009, 05:21 AM
That error does not seem to be caused by this modifications. Judging by the error, it looks like it is caused by PhotoPlog.

benstillman
02-04-2009, 01:44 PM
That error does not seem to be caused by this modifications. Judging by the error, it looks like it is caused by PhotoPlog.

Odd that photoplog is (and has been for a while) disabled. This error only occurs when I enable this mod. As soon as I disable it, the error goes ago. Also, the error only appears for guests. For logged in users the page loads fine without error.

benstillman
02-04-2009, 01:47 PM
Weird as hell.....

I went ahead and tried it again just now and it worked. I'll keep an eye on it and see if it happens again. Weird.

drsli
02-27-2009, 04:45 PM
Will this work on vb3.8?

Dismounted
02-28-2009, 12:30 PM
Most likely.

drsli
02-28-2009, 03:17 PM
Thanks for the assessment. I installed it onto my vb3.81-live-forum and as far as I can see, it works flawlessly! :)

210665
03-13-2010, 05:34 PM
Hello

There is also this addon for vb 4.02 or there is nothing planned.
Would something like looking for my board, maybe you can help me.
Thanks

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx

hallo

gibt es dieses addon auch für das vb 4.02 oder ist da nichts geplant.
Würde so etwas suchen für mein Board, vielleicht könnt ihr mir weiterhelfen.

Danke

KURTZ
04-27-2010, 11:23 AM
hi Hanson, any upgrade for the 'suite'?

Dismounted
04-29-2010, 06:12 AM
Real Soon Now (tm)

At least I hope I can do it in that timeframe... :p

Wilfred1
06-23-2010, 01:14 AM
Is there a 4.0.4 version of this yet mate? I can't go live as my users don't want all their posts to go public so this mod is the only one now holding me back

Bro_Joey_Gowdy
08-16-2010, 12:46 AM
Installed on vB3.8.0 - appears to work properly.

Curious, on the first post why did it align all text to the left ?

http://www.joeygowdy.net/forum/showthread.php?t=1&referrerid=1

res6cue
12-03-2010, 10:53 AM
I need this mod so badly for vB4. There's a mod that claims to do what yours does, but it has serious shortcomings and gave a false sense of security. I generally don't like to beg, but I'm going to have to make an exception here and beg you to please recode this for vB4...thanks mate!

mholtum
12-06-2010, 10:17 PM
Works great thank you..

Davey-UK
01-03-2011, 07:52 AM
Any news on this for VB4.1?
I would have a go myself, but there is a little bit too much altering of database tables for me to tackle. :D

Its a great mod, and hopefully it will be updated. ????

adom7
01-29-2012, 09:29 AM
I guess, no plan on this great mod for future (vb 4.10)

Bro_Joey_Gowdy
11-21-2012, 02:38 AM
Seems to be working fine for 4.0.0 PL8 at the moment.

Bro_Joey_Gowdy
11-21-2012, 12:10 PM
Just noticed a bug that only appears when not logged in:

https://vborg.vbsupport.ru/external/2012/11/14.png

https://vborg.vbsupport.ru/external/2012/11/15.png