₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,401 members, 8,450,144 topics. Date: Wednesday, 22 July 2026 at 08:51 PM

Toggle theme

Mrperfect's Posts

Nairaland ForumMrperfect's ProfileMrperfect's Posts

1 2 3 4 5 6 7 8 ... 77 78 79 80 81 82 83 84 85 (of 98 pages)

CrimeRe: Church Worker Rapes 11-yr Old Girl At Vigil by mrperfect(m): 2:30pm On Nov 26, 2009
let God have mercy us.
WebmastersRe: How Do I locate My Smf Boardindex.template.php File Via Ftp by mrperfect(m): 2:12pm On Nov 26, 2009
./Themes/{your_theme}/BoardIndex.template.php

Find:
Code:

// Show some statistics next to the link tree if SP1 info is off.


Add Before
Code:

//Display ads on the board index
if (function_exists("show_boardAds"wink)
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Find:
Code:

echo '
</div>';


Replace with:
Code:

echo '
</div>';

//Display ads Between cats
if (function_exists("show_category"wink)
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



./Themes/{your_theme}/MessageIndex.template.php

Find:
Code:

global $context, $settings, $options, $scripturl, $modSettings, $txt;


Replace with:
Code:

global $context, $settings, $options, $scripturl, $modSettings, $txt;

//Display Ads on the Message index
if (function_exists("show_threadindexAds"wink)
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Find:
Code:

echo '
</table>
</div>';


Replace with:
Code:

echo '
</table>
</div>';

//Display Ads on the Message index
if (function_exists("show_underchildren"wink)
{
$ads = show_underchildren();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



./Themes/{your_theme}/Display.template.php

Find:
Code:

global $context, $settings, $options, $txt, $scripturl, $modSettings;


Replace with:
Code:

global $context, $settings, $options, $txt, $scripturl, $modSettings;

//Display ads on the thread page
if (function_exists("show_threadAds"wink)
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Find:
Code:

// Get all the messages,
while ($message = $context['get_message']())
{


Replace with:
Code:

//Ad Counter
$adcounter =0;
// Get all the messages,
while ($message = $context['get_message']())
{
$adcounter++;


Find:
Code:

</td></tr>';
}


Replace with:
Code:

</td></tr>';

if (function_exists("show_posts"wink)
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So, quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about, even, remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</td>
</tr>
</table>
</td></tr>';
}

}

}

if(function_exists("show_lastpostAds"wink && function_exists("show_posts"wink)
{
if(($ads = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle">&nbsp;</td>
<td valign="middle">
&nbsp;</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So, quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';


echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</td>
</tr>
</table>
</td></tr>';

}

}
WebmastersRe: How Do I locate My Smf Boardindex.template.php File Via Ftp by mrperfect(m): 2:10pm On Nov 26, 2009
Overview of editing the templates:
You have to edit the following files one by one:
Note: if you found it too technical or your too buzz I will do it for you for just N5,000 for my beer.
So download these files as you downloaded the above file, create a two folders one for back up (in case you fok up) and one to edit, after the edit. Upload all of them in your hosting account to overwrite the existing ones there. That is all  all your advert will start shown.
So let start:

/Themes/{your_theme}/index.template.php

Find:
Code:

<body>';


Replace with:
Code:

<body>';

//Display ads on the top of the page
if (function_exists("show_topofpageAds"wink)
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Find:
Code:

</td>


Replace with:
Code:

</td>';
//Welcome Ads
if (function_exists("show_welcomeAds"wink)
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '




Find:
Code:

   template_menu();

Replace with:
Code:

template_menu();

//Below the menu ads
if (function_exists("show_indexAds"wink && function_exists("show_towerleftAds"wink && function_exists("show_towerrightAds"wink)
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}



Find:
Code:

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!


Replace with:
Code:


//Close table for towerright ads
if (function_exists("show_towerrightAds"wink && function_exists("show_towerleftAds"wink && function_exists("show_bottomAds"wink)
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

     // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
CrimeRe: Policeman Kills Children In Ibadan Hospital by mrperfect(m): 1:54pm On Nov 26, 2009
Very sad
RomanceRe: How Do I Get Him To Notice Me by mrperfect(m): 1:46pm On Nov 26, 2009
I am here to learn ooooooooo
PoliticsRe: Prayer For President Musa Yaradua Of Nigeria by mrperfect(m): 1:38pm On Nov 26, 2009
skyone:
Father have mercy on our president for he is on the wrong road to salvation

Wash him thoroughly with the blood of Jesus Christ

Heal him from all infirmities and let him lead Nigeria in perfect health and peace.

Father as the president continue to lead, direct him so that he can lead in honesty and in truth Amen
Amen!
Nairaland GeneralRe: 97.6% Nairaland Members Never Even Read The Forum Rules When Registering! by mrperfect(m): 1:28pm On Nov 26, 2009
I think I agree with you.
RomanceRe: Who Would You Prefer For Marriage And Why by mrperfect(m): 1:21pm On Nov 26, 2009
Hey, could this be the solution?
PoliticsRe: S-south, S-east Muslims Protest Hijack Of Hajj List by mrperfect(m): 1:18pm On Nov 26, 2009
sjeezy8:
damnnnnnn ijaw igbo calabar muslims lmfao calling on sultan of sokoto
I think what they mean is Muslims like hausa and yoruba living in the south east and south south.
Igbo, calabar muslims ko
PoliticsRe: Nigerian Banks & CNN Advert by mrperfect(m): 1:13pm On Nov 26, 2009
Can't they attract more investors?
RomanceRe: Guys: When A Girl Tries To Impose Herself On You: What Will You Do by mrperfect(m): 1:07pm On Nov 26, 2009
If you really like her, take her. she just like you that is all.
RomanceRe: Whats Wrong Wit This Guy by mrperfect(m): 6:30pm On Nov 25, 2009
It is just his choice
WebmastersRe: How Do I locate My Smf Boardindex.template.php File Via Ftp by mrperfect(m): 6:21pm On Nov 25, 2009
I assumed you meant attaching the file so that their tech can download.
Just click reply, on your left hand side you will see "Browse or attach file" button use it to locate your file. And click reply, that is all.
WebmastersRe: Small Php Help Needed. I'll Pay For It. by mrperfect(m): 5:50pm On Nov 25, 2009
Do you have the files/mod already but just needed it to install on your forum?
PoliticsRe: Pictures Of Lagos Husters Answering To The Call Of Nature by mrperfect(m): 5:39pm On Nov 25, 2009
That Police man is sleeping on duty.
CrimeRe: $96000 Internet Fraud by mrperfect(m): 5:13pm On Nov 25, 2009
Any new update?
PoliticsRe: Govt Exposed! Every Nigerian Should Read This! Venezuelan Envoy Tutors Nigeria by mrperfect(m): 4:42pm On Nov 25, 2009
I felt like crying here.
I pray that God give leaders the wisdom to administer their respective offices well.
Dating And Meet-up ZoneRe: West African Let's Meet Here by mrperfect(m): 4:40pm On Nov 25, 2009
Ok you can visit any of my website in the signature to know me better
RomanceRe: Why Is A Woman's Behind Important To Guys? Bigger Or Smaller? by mrperfect(m): 4:31pm On Nov 25, 2009
Somebody asked a question.
PoliticsRe: Nigerian Corpses: China Gives Dec 15 For Cremation by mrperfect(m): 3:26pm On Nov 25, 2009
Very sad story
SportsRe: Jay Jay Okocha For 2010 World Cup by mrperfect(m): 3:15pm On Nov 25, 2009
I hope his presence can bring about motivation and cost fear to opponent, which in turn work in our advantage. Even if is ten minutes on each match.
PoliticsRe: The Nigerian Constitution And Why We Have A Bad Police Service by mrperfect(m): 1:08pm On Nov 25, 2009
I think Present has veto power over all without question.
RomanceRe: Do Love Novels Make Girls Dumber In Love? by mrperfect(m): 12:25pm On Nov 25, 2009
When they are reading them they thought life it self depends on such, now they are criticism it. But why?
WebmastersRe: Why Not House? by mrperfect(m): 12:21pm On Nov 25, 2009
This was sometime designed and presented but was highly criticized. some even said: "it looks like BOKO HARAM design".
CelebritiesRe: Nollywood Is Giving Nigeria Bad Image — Akunyili by mrperfect(m): 12:17pm On Nov 25, 2009
Some how.
FamilyRe: Getting Married Because A Baby Is On The Way! by mrperfect(m): 12:17pm On Nov 25, 2009
A story like this happens in regular basis.
Nairaland GeneralRe: Why Are Nigerians Seen As Scammers? by mrperfect(m): 6:25pm On Nov 24, 2009
Ok, don't just be on defensive side, ask them question too. something like who is their host?
It is obvious that non of scammers platform are hosted in Nigeria. Let them tell you any scammer they know that their host is from Nigeria.
Nairaland GeneralRe: Want To Quite My Boyfriend I Need Advice Pleasa by mrperfect(m): 6:19pm On Nov 24, 2009
This requires thinking I will be back.

1 2 3 4 5 6 7 8 ... 77 78 79 80 81 82 83 84 85 (of 98 pages)