Guests First Post Only ReadMe Version: 1.4
Date: 10/01/2007
Author: Dismounted
For: vBulletin 3.6.x
From: Red Vortex
Features Change Log Install / Upgrade Uninstall Support / Contact

A Features
Main Features:
 
  • Only allows guests to view the first post of a thread.
  • Can be enabled on a per forum basis.

B Change Log:
Version 1.4 (10 Jan 2007)
 
  • Fixed 'Invalid SQL' Error In Announcements
Version 1.3 (5 Jan 2007)
 
  • Fixed 'Invalid SQL' Error In PM's
  • Fixed Posts Being Displayed After Message
  • Fixed Options Not Saving Properly
Version 1.2 (2 Jan 2007)
 
  • Fixed 'Call to a member function on a non-object' Error
  • Fixed Message Being Displayed When Only One Post
  • Fixed Options Not Saving Properly
Version 1.1 (1 Jan 2007)
 
  • Can Be Enabled On Per Forum Basis
Version 1.0 (29 Dec 2006)
 
  • Initial Release

C Installation (New Installation | Upgrade)
New Installation:
 
  • Step 1 (Upload Files):
    • Upload the contents of the folder 'upload' to your forum root directory.
  • Step 2 (Upload Product):
    • Go to your AdminCP.
    • Plugins & Products -> Manage Products -> Click [Add/Import Product] -> Select the file 'product-guests_first_post_only.xml'.
    • Click 'Import'.
  • Step 3 (Edit Templates):
    • Go to your AdminCP.
    • Styles & Templates -> Click 'Style Manager' -> Next to your style name, select 'Edit Templates' in the drop-down menu.
    • Double-Click 'Postbit Templates'.
    • Double-Click 'postbit'.
    • Add to the very top of the template:

      <!-- Start Guests First Post Only Hack -->
      <if condition="$memid == 1 || $memid == 2">
      <!-- End Guests First Post Only Hack -->

    • Add to the very bottom of the template:

      <!-- 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 -->
  • Step 4 (Repeat):
    • Repeat Step 3 for the template 'postbit_leagcy'.
    • Repeat Step 3 for each style.
Upgrade:
 
  • Step 1 (Upload Files):
    • Upload the contents of the folder 'upload' to your forum root directory, overwriting old ones.
  • Step 2 (Upload Product):
    • Go to your AdminCP.
    • Plugins & Products -> Manage Products -> Click [Add/Import Product] -> Select the file 'product-guests_first_post_only.xml' and make sure that you set 'Allow Overwrite' to YES.
    • Click 'Import'.
  • Step 3 (Rebuild Bitfields):
    • Goto http://YOURDOMAIN/admincp/index.php?do=buildbitfields
      NOTE: Replace YOURDOMAIN with the location of your forum and login if nessccery.

D Uninstall:
Uninstallation:
 
  • Step 1 (Undo Template Changes):
    • Go to your AdminCP.
    • Styles & Templates -> Click 'Style Manager' -> Next to your style name, select 'Edit Templates' in the drop-down menu.
    • Double-Click 'Postbit Templates'.
    • Double-Click 'postbit'.
    • At the very top of the template, remove:

      <!-- Start Guests First Post Only Hack -->
      <if condition="$memid == 1 || $memid == 2">
      <!-- End Guests First Post Only Hack -->

    • At the very bottom of the template, remove:

      <!-- 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 -->
  • Step 2 (Repeat):
    • Repeat Step 1 for the template 'postbit_leagcy'.
    • Repeat Step 1 for each style.
  • Step 3 (Remove Product):
    • Go to your AdminCP.
    • Plugins & Products -> Manage Products -> In the drop-down menu next to 'Guests First Post Only', select 'Uninstall' -> Click YES.
  • Step 4 (Remove Files):
    • Remove 'bitfield_guests_first_post_only.xml' from './includes/xml/'.

E Support / Contact:
Support & Contact Details
  If you have any problems, PM me (Dismounted) at vBulletin.org or post in the release thread.