[req]much hacks wanted

htm1967

New Member
sry for this much hacks

all these hacks are for my 3.6.8 forum


Adsense as second post. 2 Sizes - Big for guests, small for members
Adsense as second post. 2 Sizes - Big for guests, small for members - vBulletin.org Forum


IP_NoRegister! Block problem IPs or IP Hosts from registering on your site!
IP_NoRegister! Block problem IPs or IP Hosts from registering on your site! - vBulletin.org Forum

Users Can Hide Posts From Unregistered Browsers
Users Can Hide Posts From Unregistered Browsers - vBulletin.org Forum

[Monkey's Works] - Hey, guest! You should be a registered member!
[Monkey's Works] - Hey, guest! You should be a registered member! - vBulletin.org Forum

Sub-Forum Dropdown Menu
Sub-Forum Dropdown Menu - vBulletin.org Forum

Hide Contact Information From Guests
Hide Contact Information From Guests - vBulletin.org Forum

vBshout Automatic Pruning *ALL VERSIONS*
vBshout Automatic Pruning *ALL VERSIONS* - vBulletin.org Forum

New ibProArcade multiple CMPS-Module v2
New ibProArcade multiple CMPS-Module v2 - vBulletin.org Forum

Template Modification System
Template Modification System - vBulletin.org Forum

Link Anonymizer and Censor
Link Anonymizer and Censor - vBulletin.org Forum

MGC Chatbox (with AJAX)
MGC Chatbox (with AJAX) - vBulletin.org Forum

vBRecycle v3.0.9
vBRecycle v3.0.9 - vBulletin.org Forum

BBcode Manager 1.32 : New looks for your quote, html, php and code bbcodes !
BBcode Manager 1.32 : New looks for your quote, html, php and code bbcodes ! - vBulletin.org Forum

New Registrant Analyzer
New Registrant Analyzer - vBulletin.org Forum

Login Popup - Adds a DHTML popup login form w/ forgotten password & register links
Login Popup - Adds a DHTML popup login form w/ forgotten password & register links - vBulletin.org Forum

NoSpam! - an alternative to CAPTCHA images
NoSpam! - an alternative to CAPTCHA images - vBulletin.org Forum
 

cinneke

New Member
Adsense as second post. 2 Sizes - Big for guests, small for members
-----------------------------------------------------------------

This hack is for forums that use the standard Postbit Template

If you use the postbit_legacy template >> click here <<

What this hack does:
This modification displays adsense as second post in every thread.
Guest see a post like adsense with a product Referral (firefox in this code) and a large rectangle as post content. Members only see a standard banner so they don't get annoyed by the big advertising. I also included an information for guests, that they see a different not so disturbing ad if they register. This serves to purposes, one is to get more members to register of course the second purpose is to blend the advertising better into the post layout.

ADD-ON:
In addition you can add a Google Adsense link unit as last post of a thread on any page for members and guests. This advertising will only show if the thread has more then one post so that it does not show 2 advertisings directly below each other in case that the thread has no replies yet. Google Adsense has updated its ToS so that you are now allowed to use up to three link units on one page. So if you already use my "Adsense Link Unit in Navbar" Mod there woun't be a problem.

See screenshots

How to install:

In template postbit search:
Code:
<!-- / post $post[postid] popup menu -->

Add below:
Code:
<!-- Google AdSense in Posts for Guests -->
<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND (!$show[member])">

<if condition="$show['spacer']">
    </div>
    $spacer_close
</if>

<if condition="$show['spacer']">
    $spacer_open
    <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>    
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
    <td class="thead" id="currentPost">
   <div class="normal">
        <!-- status icon and date -->
         <img title="Alt" class="inlineimg" src="images/statusicon/post_old.gif" alt="Alt" border="0"></a> Today
        <!-- / status icon and date -->
     </div>
    </td>
</tr>
<tr>
    <td class="alt2" style="padding: 0px;">
        <!-- user info -->
        <table border="0" cellpadding="0" cellspacing="6" width="100%">
        <tbody>
         <tr>
      <td class="alt2">
       <!-- Adsense Referal Code start -->
        <script type="text/javascript"><!--
        google_ad_client = "YOUR PUB ID HERE";
        google_ad_width = 125;
        google_ad_height = 125;
        google_ad_format = "125x125_as_rimg";
        google_cpa_choice = "CAAQ0f2XhAIaCA6IC4oIlz0_KK2293M";
        //--></script>
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
       <!-- Adsense Referal Code end-->

      </td>
            <td nowrap="nowrap">
       <span class="bigusername"><u>Advertising</u></span><br />
       <span class="smallfont">Google Adsense</span>
            </td>
            <td width="100%">&nbsp;</td>
            <td valign="top" nowrap="nowrap">
       <div class="smallfont">
        <div>This advertising will not be shown</div>
        <div>in this way to registered members.</div>
        <div><a href="register.php">Register</a> your free account today</div>
        <div>and become a member on</a></div>
        <div>$vboptions[bbtitle]</div>
       </div>
            </td>
        </tr>
        </tbody></table>
        <!-- / user info -->
    </td>
</tr>
<tr>
    <td class="alt1" id="td_post_$post[postid]">
    <!-- message, attachments, sig -->
            <!-- icon and title -->
            <div class="smallfont">
                
                <img title="Standard" class="inlineimg" src="images/icons/icon14.gif" alt="Standard" border="0">
                <strong>Sponsored Links</strong>
            </div>
            <hr style="color: rgb(134, 134, 134);" size="1">
            <!-- / icon and title -->
        <!-- message -->
        <div>
        <!-- Adsense large rectangle start -->
         <script type="text/javascript"><!--
         google_ad_client = "YOUR PUB ID HERE";
       google_ad_width = 336;
         google_ad_height = 280;
         google_ad_format = "336x280_as";
         google_ad_type = "text";
     //--></script>
     <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
        <!-- Adsense large rectangle end -->
        </div>
        <!-- / message -->
    <!-- message, attachments, sig -->
    </td>
</tr>
</tbody></table>
<!-- / post $post[postid] popup menu -->
</if>
<!-- / Google AdSense in Posts for Guests End-->

<!-- Google AdSense in Posts for Members -->
<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND ($show[member])">

<if condition="$show['spacer']">
    </div>
    $spacer_close
</if>

<if condition="$show['spacer']">
    $spacer_open
    <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>    
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
    <td class="thead" id="td_post_$post[postid]">
   <div class="normal">
        &nbsp;
     </div>
    </td>
</tr>
<tr>
    <td class="alt1" align="center">
        <div>
     <!-- Adsense standard banner start -->
      <script type="text/javascript"><!--
      google_ad_client = "YOUR PUB ID HERE";
      google_ad_width = 468;
      google_ad_height = 60;
      google_ad_format = "468x60_as";
      google_ad_type = "text";
      //--></script>
      <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
     <!-- Adsense standard banner End -->
        </div>
    </td>
</tr>
</tbody>
</table>
</if>
<!-- / Google AdSense in Posts for Members end-->

ADD-ON:
Add this code below the last line of my above code:
Code:
<!-- Google AdSense Link unit as last post for all -->
<if condition="THIS_SCRIPT == 'showthread' AND $post['islastshown'] and !$GLOBALS['vbulletin']->GPC['ajax'] AND $post[postcount]!=1">

<if condition="$show['spacer']">
    </div>
    $spacer_close
</if>

<if condition="$show['spacer']">
    $spacer_open
    <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>    
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
    <td class="thead" id="td_post_$post[postid]">
   <div class="normal">
        &nbsp;
     </div>
    </td>
</tr>
<tr>
    <td class="alt1" align="center">
        <div>
         <!-- Adsense Link Unit start -->
         <script type="text/javascript"><!--
         google_ad_client = "YOUR PUB ID HERE";
         google_alternate_color = "F5F5FF";
         google_ad_width = 728;
         google_ad_height = 15;
         google_ad_format = "728x15_0ads_al_s";
         google_color_border = "F5F5FF";
         google_color_bg = "F5F5FF";
         google_color_link = "000000";
         google_color_text = "000000";
         google_color_url = "000000";
         //-->
         </script>
         <script type="text/javascript"
           src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
         </script>
         <!-- Adsense Link Unit end -->
        </div>
    </td>
</tr>
</tbody>
</table>
</if>
<!-- Google AdSense Link unit as last post for all -->You now just need to customize the adsense code marked with:
<!-- Adsense Referal Code start -->
<!-- Adsense large rectangle start -->
<!-- Adsense standard banner start -->

Add-on:
Code:
<!-- Adsense Link Unit start -->

replace "YOUR PUB ID HERE" with your pub-ID and fit the colors of adsense to your color scheme


Demo: Elternfragen.net - Das Forum für Eltern mit (medizinischen) Fragen Just go into any thread.

IP_NoRegister! Block problem IPs or IP Hosts from registering on your site!
---------------------------------------------------------------------

This script is basically the same code used for my IP_NoView! hack but was created because a member asked me to modify the script to block specific IPs or IP Hosts from Registering.

How this works

This works through the use of three settings inside the AdminCP >> vBulletin Settings >> Ip_NoRegister! These settings include an ON/OFF switch, a list of blocked IPs, and a List of blocked IP Hosts.

If the system is on, a pluggin at the start of Register check the IP and IP Host of guests and compare them to the array of blocked IPs. If the guest that is trying to register has an IP that matches, then the system generates an error letting them know that the Administrator has blocked registrations by guests with their IP address.

Users Can Hide Posts From Unregistered Browsers
--------------------------------------------------

Requested by a forum member because of someone who had been banned continuing to nose around the forum as a Guest and I thought it was a sufficiently neat idea to be worth making known to the masses. All users have to do is choose to hide their posts to unregistered browsers (and search engines) in their UserCP. Sort of like a custom Tachy for privacy. Screenshot at the bottom!



INSTRUCTIONS

OPEN:
AdminCP > User Profile Fields > Add New User Profile Field

Add a new Single-Selection Menu then fill in the following settings:

Title: Hide my posts from Unregistered Browsers and Search Engines
Options: (Make sure they are in this order!)
No
Yes
Set Default: Yes, but no First Blank option
Field Required: No but display at registration
Field Editable by User: Yes
Private Field, Field Searchable on Members List, Show on Members List: All No. (Unfortunately you must make this a non-private field or the change won't register with Guests)

Display Page: Options: Log In/Privacy

Save the page and make a note of the field number assigned to your Custom Field, which is shown on the User Field Manager page next to the display number. If this is your first Custom Field then your field number will be 6. In the following template edit, change the X in fieldX to the number of your Custom Field.

OPEN:
UserCP > Styles & Templates > Edit Templates > Postbit(_legacy)

FIND: (shouldn't be tricky, it's the first lines )

Code:
Code:
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="thead" $post[scrolltothis]>

REPLACE WITH:
Code:
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="$post['fieldX'] == Yes AND is_member_of($bbuserinfo, 1)">
<tr>
<td>
This user has chosen to hide their posts from Guest browsers.
</td>
</tr>
</table>
<else />
<tr>
	<td class="thead" $post[scrolltothis]>

FIND: (Should be equally difficult, it's the last lines)
Code:
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
	</if>
	</table>
</div>
<!-- / post $post[postid] popup menu -->

REPLACE WITH:
Code:
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
	</if></if>
	</table>
</div>
<!-- / post $post[postid] popup menu -->

And you're done! You can of course change the post-subtitute message to anything you like but you can't hide a post entirely because it breaks the formatting of the page so the table row must remain.

Monkey's Works] - Hey, guest! You should be a registered member!
---------------------------------------------------------------

Modification:

Go to your FORUMHOME template
(AdminCp -> Styles & Templates -> Edit Templates -> FORUMHOME)

Add to the top:
Code:
<if condition="$show['guest']">
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
    <!-- no cache headers -->
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <!-- end no cache headers -->
    $headinclude
    <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin] - Welcome! Become an active member of $vboptions[bbtitle] right now!</phrase></title>
</head>
<body>



<!-- Guest Welcome Box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="tcat" style="text-align: center; font-size: 28px">$vboptions[bbtitle] Guest Homepage - You should be a registered member!</td>
</tr>
<tr>
<td class="alt2" style="text-align: center">
Add here your forum description! This is an online community. Our goal is let members have fun with games, funny discussions, etc. 
</td>
</tr>
<tr>
    <td class="alt1" style="text-align: center">

<table class="tborder" cellpadding="20" cellspacing="$stylevar[cellspacing]" border="0" width="80%" align="center">
<tr>
    <td class="tcat">
<div>Hey guest, welcome to the $vboptions[bbtitle]! This is our standard guest page. Before you can view our forums, you have to sign up with us. Ehy, don't worry, it takes just one minute and it's completely free! Try yourself: <br /><br />

<span style="font-size: 21px; font-weight: bold"><a href="register.php">Sign Up Now</a></span> 
<br /><br />
 By signing up you will see all our forums list and you will be able to edit your member profile, post threads, ask questions, chat with other members, communicate privately with other members, and much more!<br /><br />
 If you're already a $vboptions[bbtitle] member, please login with the form below!


<br /><br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="35%" align="center">
<tr>
    <td class="tcat" style="text-align: center">
<!-- login form -->
        <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
        <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
        <tr>
            <td class="smallfont"><label for="navbar_username"><strong>$vbphrase[username]</strong> </label></td>
            <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
            <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" /><strong>$vbphrase[remember_me]</strong></label></td>
        </tr>
        <tr>
            <td class="smallfont"><label for="navbar_password"><strong>$vbphrase[password]</strong></label></td>
            <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
            <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
        </tr>
        </table>
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <input type="hidden" name="do" value="login" />        
        <input type="hidden" name="vb_login_md5password" />
        <input type="hidden" name="vb_login_md5password_utf" />
        </form>
        <!-- / login form -->
</td>
</tr>
</table>

<br />
<span class="smallfont">If you have any problems with the registration process or your account login, please contact us: <a href="sendmessage.php">Send Message</a>. 

<br /><br />

<!-- Community Statistics -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="35%" align="center">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[align=right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
        </div>
        </td>
    </tr>
</tbody>
</table>

<!-- / Community Statistics -->


</td>
</tr>
</table>

</div>
    </td>
</tr>
</table>
<!-- / Guest Welcome Box -->

</body>
</html>
<else />

Ok, now add to the end of your template:

Code:
</if>

Done!

Check the red code if you want to edit the message (and remember that I'm italian, so my english isn't so good )!
See you to the next little modification!

Sub-Forum Dropdown Menu
-----------------------------

I have though tweaked it a bit for use with vB 3.6.x

Description. This is a Mod to make sub-forums appear in a drop-down menu fashion.

1. +/- sign for forums with/without unread posts

Step 1. Open:
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post

Find:
Code:
<strong>$vbphrase[subforums]</strong>: $forum[subforums]
Replace with:
Code:
<!-- Subforum pull-down menu --------------------------------------->
	<form action="forumdisplay.php" method="get">
		<input name="s" value="" type="hidden">
		<input name="daysprune" value="-1" type="hidden">
		<select name="f" onchange="this.form.submit();">
                 <option value="$forum[forumid]" selected><strong>Sub Forums</strong></option>
			$forum[subforums]
		</select>
                
	</form>
<!-- Subforum pull-down menu --------------------------------------->

Step 2. Open:
forumhome_subforumbit_nopost
forumhome_subforumbit_post

Replace the templates with:
Code:
<!-- Subforum pull-down menu --------------------------------------->
<option value="$forum[forumid]">

<if condition="$forum[statusicon] == 'new'">
+&nbsp;
<else />
-&nbsp;
</if>

$forum[title]

</option>
<!-- Subforum pull-down menu --------------------------------------->

Hide Contact Information From Guests
-------------------------------------

What does it do?
Hides contact information from guests, including PM, email and website details, age and birthday, and Instant Messaging.
It is removed from everywhere that it appears.

How do I install this?
Download the attached file and follow the (lengthy) instructions.

You just said the instructions are lengthy. What do you mean?
This modification requires edits to 6 templates (15 edits in total) and the creation of 5 new phrases.

Attached are a few screenshots. On the profile one, and one of the postbit ones red lines highlight the hidden information. All screenshots were taken as a guest.

vBshout Automatic Pruning *ALL VERSIONS*
-------------------------------------------

NOTE: Does not work with Inferno vBshout


What does it do?

This addon will automatically prune (remove all shouts) from the vBshout Shoutbox.

*You can set the time when the product will prune the Shoutbox.


How do I get vBshout?

vBshout 2.0
vBshout 2.1


.: Installation :.


1. Upload pruneshout.php to your /includes/cron/ folder
2. Import the product product-shoutbox_prune.xml



.: Upgrading :.

Upgrading from 1.0 / 1.0

1. Upload and overwrite /includes/cron/pruneshout.php
2. Import the product product-shoutbox_prune.xml (Make sure overwrite is turned on)


.: Configuration :.


By default the shoutbox will prune every Sunday night at 11.59pm

If you wish to change this proceed to the following steps.


1. On your admincp find Scheduled Tasks. Expand the group and then click on Scheduled Task Manager
2. Find Shoutbox Pruning and select Edit from the dropdown menu, then click go.
3:

You can change the settings to whatever you want.

Note: * means every. So if you had it as Hour: * then it would run every hour.

Get the idea?

4. Once you have finished click save

New ibProArcade multiple CMPS-Module v2
------------------------------------------

This was developed using vBulletin 3.6.8, vBadvanced CMPS v3.0 and
ibProArcade 2.6.5+ & 2.6.6+
This version should show the right date/time now..

This modification may not be copied, reproduced or published elsewhere without my permission.

This is a multiple CMPS-Module that is highly configurable..

You can setup if each of the included Info-Boxes should appear or not, and how many Games/Scores each one should show..
This Module can be used as a center-Module displaying alot of information, or just a sidebar-Module with just one (or more) active Info-Boxes..

Heres a Demo..

The Module can show:
* Latest Scores
* Latest Highscore-Champions
* Top X Highscore-Champions
* Random Game(s)
* newest Game(s)
* most popular Game(s)
* best rated Game(s)

Code:
How to install:
1) Upload the arcade.module-File with vbAdvanced's AdminCP-Functions
admincp >> vBa CMPS >> Download / Upload Module,,
Select arcade.module file from your computer.
Select Style to install templates to..
After Rebuild Style Information ,,click "Continue" to activate this module on your CMPS pages.
Move to: Center Column,,then set the Order:


2) Import the product-ibProArcade_CMPS.xml-File,,Only,, if the arcade.module does not write the adv_portal_ibproarcade template.
Next versions will have more options..Stats and Touraments info..

If you have the older ibproarcade CMPS module v1 install,,all you need to do is overwrite the ibproarcade.module through your ftp,,using the one from ibProArcade CMPS v2 module.zip../modules/ibproarcade.module

Template Modification System
-------------------------------
Template Modification System
Description
This modification allows easy management of template modifications.
Hack authors can define the necessary template modifications for their products.
When exporting a product, all template modifications assigned to this product
in MASTER style will be embedded into the product XML and imported on the
end-user vBuleltin installation automatically if TMS is available.
Alternatively, it is also possible to create separate XML files for template modifications.
This way, 3rd parties can provide Template-Modification XL files for existing hacks.
Hack authors can also export standard template modification instructions as
textfiles to package them with their hacks, which allows users that do not
have TMS to also install them

In case the author defined modifications do not work (eg. the user uses a custom style),
the users can easily customize the modifications for their style(s).

TMS modified templates transparently, e.g. all Templates can still be modified
manually in style manager - they will appear unchanged there.


System Requirements
This Modification requires MySQL 4.1 or higher - it does not work with MySQL 4.0!
If you use MySQL 4.1 series, MySQL 4.1.10 or higher is required
If you use MySQL 5.0 seriesn, MySQL 5.0.3 or higher is required

vBulletin Compatibility
Those asking for a vBulletin 3.7 release will be feathered, tared and blown up - this is the vBulletin 3.7 release.
The same goes for those asking if it is compatible with vBulletin 3.6.whatever - it is compatible.

Branding:
Please not that TMS puts a small branding/copyright notice in footer - see readme.txt for further details.

Link Anonymizer and Censor
------------------------------
NoSpam! - an alternative to CAPTCHA images

MGC Chatbox (with AJAX)
vBRecycle v3.0.9
BBcode Manager 1.32 : New looks for your quote, html, php and code bbcodes !
New Registrant Analyzer
Login Popup - Adds a DHTML popup login form w/ forgotten password & register links
 

chaotic_geo

New Member
cinneke said:
its in the top of the page

Nope.

Code:
This hack is for forums that use the standard Postbit Template

If you use the postbit_legacy template >> click here <<

That's at the top of the page. -_-
 

Hoxxy

New Member
chaotic_geo said:
Nope.

Code:
This hack is for forums that use the standard Postbit Template

If you use the postbit_legacy template >> click here <<

That's at the top of the page. -_-

everything you need is there..
what you want is everything from the top down to:

IP_NoRegister! Block problem IPs or IP Hosts from registering on your site!

I had to merge all the posts last nite so I made all the titles bold so members would know what mod is what...seems it didnt work for you though....lol..:D
 

chaotic_geo

New Member
Hoxxy said:
everything you need is there..
what you want is everything from the top down to:

IP_NoRegister! Block problem IPs or IP Hosts from registering on your site!

I had to merge all the posts last nite so I made all the titles bold so members would know what mod is what...seems it didnt work for you though....lol..:D
You did a great job, however... There are 2 versions for the Google Ad thingy, one version is for postbit and one for postbit_legacy. The code which is posted above is for the postbit.

I need the postbit_legacy version, and that version is not posted here at all...
 

Hoxxy

New Member
This hack is for forums that use the Postbit_legacy Template

If you use the standard postbit template >> click here <<


What this hack does:
This modification displays adsense as second post in every thread.
Guest see a post like adsense with a product Referral (firefox in this code) and a leaderboard as post content. Registered Members see a standard banner so they don't get annoyed by the big advertising. I also included an information for guests, that they see a different not so disturbing ad if they register. This serves to purposes, one is to get more members to register of course the second purpose is to blend the advertising better into the post layout.

ADD-ON:
In addition you can add a Google Adsense link unit as last post of a thread on any page for members and guests. This advertising will only show if the thread has more then one post so that it does not show 2 advertisings directly below each other in case that the thread has no replies yet. Google Adsense has updated its ToS so that you are now allowed to use up to three link units on one page. So if you already use my "Adsense Link Unit in Navbar" Mod there woun't be a problem.

How to install:
In template postbit (legacy version) search:


HTML:
<if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>
    </table>
</div>

Add below:
HTML:
<!-- Google AdSense in Posts for Guests -->
<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND (!$show[member])">

<if condition="$show['spacer']">
    </div>
    $spacer_close
</if>

<if condition="$show['spacer']">
    $spacer_open
    <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
</if>

<!-- BEGIN TEMPLATE: postbit -->
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tbody>
 <tr>
  <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]>        
            <!-- status icon and date -->
            <img title="Alt" class="inlineimg" src="images/statusicon/post_old.gif" alt="Alt" border="0"> Today
            <!-- / status icon and date -->                
    </td>
    <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[align=right]">
    </td>
 </tr>
 <tr valign="top">
    <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
            <div id="postmenu_$post[postid]">
                <span class="bigusername"><u><font color="#373737">Advertising</font></u></span>
                <br><br>
                <!-- Adsense Referral Code start -->
        <script type="text/javascript"><!--
        google_ad_client = "YOUR PUB ID HERE";
        google_ad_width = 125;
        google_ad_height = 125;
        google_ad_format = "125x125_as_rimg";
        google_cpa_choice = "CAAQ0f2XhAIaCA6IC4oIlz0_KK2293M";
        //--></script>
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
       <!-- Adsense Referral Code end-->
            </div>
    </td>
    <td class="alt1" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
  <!-- icon and title -->
            <div class="smallfont">
                <img title="Post" class="inlineimg" src="images/icons/icon1.gif" alt="Beitrag" border="0">
                <strong>Sponsored Links</strong>
            </div>
            <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
            <!-- / icon and title -->
        <!-- message -->
        <div>
         <!-- Adsense leaderboard start -->
         <script type="text/javascript"><!--
         google_ad_client = "YOUR PUB ID HERE";
         google_ad_width = 728;
         google_ad_height = 90;
         google_ad_format = "728x90_as";
         google_ad_type = "text";
         //--></script>
         <script type="text/javascript"
           src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
         </script>
    <!-- Adsense leaderboard end -->
        </div>
        <!-- / message -->
        <!-- sig -->
            <div>__________________<br>
                <i>This advertising will not be shown in this way to registered members.<br />
                   <a href="register.php">Register</a> your free account today and become a member on $vboptions[bbtitle]</i>
            </div>
        <!-- / sig -->
    </div>
        <!-- / message -->
    </td>
</tr>
<tr>
    <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
      &nbsp;
    </td>
    <td class="alt1" align="$stylevar[align=right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
   &nbsp;
    </td>
</tr>
</tbody></table>
<!-- / post $post[postid] popup menu -->
</if>
<!-- / Google AdSense in Posts for Guests-->

<!-- Google AdSense in Posts for Members -->
<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND ($show[member])">

<if condition="$show['spacer']">
    </div>
    $spacer_close
</if>

<if condition="$show['spacer']">
    $spacer_open
    <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>    
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
    <td class="thead" id="td_post_$post[postid]">
   <div class="normal">
        &nbsp;
     </div>
    </td>
</tr>
<tr>
    <td class="alt1" align="center">
        <div>
    <!-- Adsense standard banner start -->
      <script type="text/javascript"><!--
      google_ad_client = "YOUR PUB ID HERE";
      google_ad_width = 468;
      google_ad_height = 60;
      google_ad_format = "468x60_as";
      google_ad_type = "text";
      //--></script>
      <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
     <!-- Adsense standard banner End -->
        </div>
    </td>
</tr>
</tbody>
</table>
</if>
<!-- / Google AdSense in Posts for Members-->

ADD-ON:
Add this code below the last line of my above code:
HTML:
<!-- Google AdSense Link unit as last post for all -->
<if condition="THIS_SCRIPT == 'showthread' AND $post['islastshown'] and !$GLOBALS['vbulletin']->GPC['ajax'] AND $post[postcount]!=1">

<if condition="$show['spacer']">
    </div>
    $spacer_close
</if>

<if condition="$show['spacer']">
    $spacer_open
    <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>    
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
    <td class="thead" id="td_post_$post[postid]">
   <div class="normal">
        &nbsp;
     </div>
    </td>
</tr>
<tr>
    <td class="alt1" align="center">
        <div>
         <!-- Adsense Link Unit start -->
         <script type="text/javascript"><!--
         google_ad_client = "YOUR PUB ID HERE";
         google_alternate_color = "F5F5FF";
         google_ad_width = 728;
         google_ad_height = 15;
         google_ad_format = "728x15_0ads_al_s";
         google_color_border = "F5F5FF";
         google_color_bg = "F5F5FF";
         google_color_link = "000000";
         google_color_text = "000000";
         google_color_url = "000000";
         //-->
         </script>
         <script type="text/javascript"
           src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
         </script>
         <!-- Adsense Link Unit end -->
        </div>
    </td>
</tr>
</tbody>
</table>
</if>
<!-- Google AdSense Link unit as last post for all -->


You now just need to customize the adsense code marked with:
<!-- Adsense Referal Code start -->
<!-- Adsense large rectangle start -->
<!-- Adsense standard banner start -->


Add-on:
<!-- Adsense Link Unit start -->

replace "YOUR PUB ID HERE" with your pub-ID
and fit the colors of adsense to your color scheme
 
Top