Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,853 members, 7,810,280 topics. Date: Saturday, 27 April 2024 at 05:01 AM

How Do I locate My Smf Boardindex.template.php File Via Ftp - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How Do I locate My Smf Boardindex.template.php File Via Ftp (13469 Views)

I Want To Create Front Page In My Smf Forum / How Can I Embed Google Ads In My Smf Forum / Wordpress Blog With Smf Forum Integrated (2) (3) (4)

(1) (2) (Reply) (Go Down)

How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 4:42pm On Nov 25, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 6:11pm On Nov 25, 2009
Thank u, i will always come here for assisistance. You guys are don.  Lastly please how to i attach on that site link i posted pls
Re: 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.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 6:49pm On Nov 25, 2009
Thanks man
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 7:32pm On Nov 25, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by kingzli(m): 1:03am On Nov 26, 2009
Since you are not using the default blogger template, you will have to edit some of the files in your theme. you can get details ion the SMF website
Re: 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!
Re: 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>';

}

}
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by DualCore1: 3:47pm On Nov 26, 2009
mrperfect:

I will do it for you for just N5,000 for my beer.
ehhh? Beer na 150 o. This guy!


P.S: who wants to bet? tongue If na me paste all these codes here, the anti-spam bot will hit it! angry
wicked partial bot. undecided
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by mrperfect(m): 4:26pm On Nov 26, 2009
Dual Core:

ehhh? Beer na 150 o. This guy!

Oh! not my friend udume type of beer

Dual Core:



P.S: who wants to bet? tongue If na me paste all these codes here, the anti-spam bot will hit it! angry
wicked partial bot. undecided

Depends on your motive, the bot sees in secret wink to know who meant spam.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by SamMilla1(m): 2:00pm On Nov 28, 2009
Another alternative is to delete the template files of the babylon theme.
The default one will be used automatically.
Just leave the stylesheet and index,php

I have done it with many themes before.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 12:29pm On Nov 29, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 1:15pm On Nov 30, 2009
Mr.Perfect thank you very much, but pls look at my reply above.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by mrperfect(m): 1:35pm On Nov 30, 2009
just log into your account using ftp as before, click on public_html, click on whaterver name you use as your forum name( if it in subdirectory)
Click theme, when it opens click babylon, them you will see a list of files, then right click each and a very one of these files below and download them one by one as I outlined what you should edit on them:
Index.template.php
BoardIndex.template.php
MessageIndex.template.php
Display.template.php
and click download, That is all.
Create two folders on your computer and save unedited ones on one folder and save edited ones on the other folder. The formal will serve as back up in case you don’t get it right.
Upload the edited ones to the folder your downloaded them from which will overwrite the existing ones on your server that is all. And preview the forum you will start seeing your advert displaying
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 2:30pm On Nov 30, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 2:33pm On Nov 30, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 2:36pm On Nov 30, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 2:42pm On Nov 30, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by mrperfect(m): 2:57pm On Nov 30, 2009
What mean is for example,
Find:
Code:

<body>'; ( that find this code on the file you downloaded)


Replace with:
Codesad replace this with to above code)

And this is how to do it template by template
eg /Themes/{your_theme}/BoardIndex.template.php is BoardIndex.template.php you first downloaded.
I hope is clear now?
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 3:14pm On Nov 30, 2009
Very, Very clear now. Thanks. Please can I ask another question? but not on adverts, perhaps i just open a new topic. YOU REALLY WORTH YOUR NAME
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 4:08pm On Nov 30, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 5:06pm On Nov 30, 2009
Please bro make this the very last help you will render to me. I appreciate you greatly. I LUV THESE YOUR SITE www.informationnigeria.org & www.naijaloft.com, seeing them alone tells me how much time you ve put in them. Thanks
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 5:09am On Dec 01, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 6:06pm On Dec 01, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by mrperfect(m): 11:09am On Dec 02, 2009
I don't know who you are referring with that last post, it seems that some post are deleted here.
I saw when you posted  about theme crashed yesterday but was very buzz to attend to that.
Just as i told you, been a newbie I don't expect you not to make mistake with the above codes, that is why i advised you to have two folders one for edit and the other for the back up in case if you make mistake you can simply delete the formal and start again with the latter  and have another back in case you still don't get it.
It appears you have many questions is better you visit smf forum, to ask them there as they have paid specialist to attend to you there.
Let me seize this opportunity to let you know this: before you do any thing on your forum eg codes/mod always back your data base, through phpmyadmin in through your cpanel in case technical challenges you can simple have your forum back as it is before any incident.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 3:03pm On Dec 02, 2009
Yes
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 8:50am On Dec 16, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 11:10am On Dec 16, 2009
.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by SamMilla1(m): 11:28am On Dec 16, 2009
Add every other code on the index template.php and leave that one out.
i did that and the ads are working fine.

indextemplate.php file is the most important.
do not play with it.
Re: How Do I locate My Smf Boardindex.template.php File Via Ftp by Nobody: 12:29pm On Dec 16, 2009
.

(1) (2) (Reply)

Do You Know How To Make Nigerian Paypal Account Accept Payment? / How To Get Unlimited Facebook Fan Page LIKES For Free? / Discover the 10 Most Powerful Tips of Digital Marketing in Nigeria

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 49
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.