Jump to content

Recommended Posts

Posted

smf_logo.gif

 

 

This guide will show you how to install an SMF forum in the event that you do not have Fantastico or cannot, for some reason, install SMF from it.

 

Step 1:

 

The first step is to make sure you have access to a MySQL database and enough rights for it (I don't know exactly what you need but if you have full access rights you will obviously be okay.) To create a MySQL database on your host through cPanel (comes with all Astahost accounts) login to cPanel by going to yoursite.com/cpanel or yoursite.astahost.com/cpanel and entering your username and password. Under site management, click on the MySQL Databases icon. In the new window (or tab) fill in a name for your database (maybe the name of your forum). Note any information about the name of your database (in Astahost cPanel there is a notice telling you that your username followed by an underscore is added to the front of your database' name). Logout of cPanel.

 

Step 2:

 

Download SMF from simplemachines.org. Then upload the files to your webspace. This can be done through an FTP client or through cPanel's File Manager (I would recommend cPanel because it is easier to extract the file and saves you uploading the extracted version if you do not know how to extract it with an FTP client.) To do it through cPanel, login and open File Manager under Site Management. Navigate to the parent directory of the place you want your forum to appear (often public_html) and create a folder with whatever name you want (this will contain the forum and people viewing the forum will need to navigate to this folder). Navigate into this new folder. Then upload the SMF install zipped file. Next, extract the contents by clicking on the install file's name and clicking on extract contents on the right hand side of the File Manager window.

 

Step 3:

 

Navigate to the following address in your browser: blahblahblah.com/forum where blahblahblah.com is the address of your main website and forum is the name of the folder you created earlier. However: if you did not create the folder in public_html, you will have to work out where to navigate to yourself. An installation page should be on-screen. Fill in all the details, and proceed through the pages, remembering that your MySQL database name may have your username followed by an understroke or some other prefix before the bit of the name that you specified.

 

You have now installed SMF. Congratulations! biggrin.gif You can now access your forum by navigating to the folder where you extracted all of the files. Don't forget to check that the file install.php has been deleted, as it is a major security risk to leave it how and where it was.

 

 

 

How to add Adsense Code in SMF

 

The thread "How to add Adsense Code in SMF" may not be helpful for experienced web-publishers who have already nurtured Simple Machines Forum a lot, but I think, it will be helpful for anyone who has installed Simple Machines Forum recently and who is considering to install Adsense Code in Simple Machines Forum ( SMF).

 

Here are the steps to show Ads just below the header section.

 

First of all, locate the file index.template.php.

 

Now goto the following section:

 

<body>';

 

// The logo, user information, news, and menu.

echo '

......

 

Note the HTML just below that:

 

 

<table cellspacing="0" cellpadding="0" border="0" align="center" width="95%" class="tborder">

 

It is a table to show logo, user information and menu.

Now find following line:

 

<br />', $context['current_time'], '

</td>

</tr>

 

 

Finally, insert a new table row and paste Adsense Code there.

 

<tr>

           <td colspan="2" valign="middle" align="center" class="tborder" style="border-width: 1px 0 0 0; font-size: smaller;">

               <script type="text/javascript"><!--

               google_ad_client = "YOUR PUBLISHER ACCOUNT ID";

               google_ad_width = 728;

               google_ad_height = 90;

               google_ad_format = "728x90_as";

               google_ad_type = "text_image";

               google_ad_channel ="3949701292";

               google_color_border = "336699";

               google_color_bg = "FFFFFF";

               google_color_link = "0066CC";

               google_color_url = "006699";

               google_color_text = "000000";

               //--></script>

               <script type="text/javascript"

                 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

               </script>

           </td>

      </tr>

 

This will show Adsense Ads just below the header section.

 

To show Adsense Ads at the bottom of the webpages (above the footer section):

Locate the following lines in the same file i.e. index.template.php

 

 

</table>';

// Don't show a login box, just a break.

else

echo '

<br />';

 

 

Below that line Type the following code:

 

 

echo '

  <table cellspacing="0" cellpadding="3" border="0" align="center" width="95%" class="tborder">

   <tr>

           <td align="center">

               <script type="text/javascript"><!--

               google_ad_client = "YOUR PUBLISHER ACCOUNT ID";

               google_ad_width = 728;

               google_ad_height = 90;

               google_ad_format = "728x90_as";

               google_ad_type = "text_image";

               google_ad_channel ="3949701292";

               google_color_border = "336699";

               google_color_bg = "FFFFFF";

               google_color_link = "0066CC";

               google_color_url = "006699";

               google_color_text = "000000";

               //--></script>

               <script type="text/javascript"

                 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

               </script>

         </td>

     </tr>

     </table>';

 

Now the Ads will be displayed both below the header and above the footer section of the webpages.

 

 

 

Shoutbox Mod Installation

 

This is your basic shoutbox.  Your registers users type in a message and click shout.  Guests on your

site (if you give them access to the block) will type in their name, email address and message before

clicking shout.

 

The format of each 'shout' is Date, Name, Message.  If a registered user posts a shout, their name

becomes a link to their profile.  If a guest posts a shout, their name is a mailto: to the email

address they entered.

 

For administrators, there is also a delete button next to each individual shout.

 

The ultimate shoutbox for YaBB SE was originally written by Greg Haase.

 

Making the shoutbox appear:

This modification will NOT modify any of your themes for you during install - this is to allow you to put the shoutbox where you want it to appear - not where I say! To actually make the shoutbox appear you need to modify the themes to display it. This is a VERY simple process I will take you through below.

 

Firstly, confirm the installation was successful. You can do this by going to "Feature Settings and Options", if you see some shoutbox options at the bottom of this page the install worked - well done!

 

Now, you need to edit a template to display the shoutbox. Most people will want the shoutbox to appear on every page - in this case you want to edit the file called index.template.php found in each theme directory - the default theme is Themes/default/index.template.php

 

Work out where you want the shoutbox to appear, and add the following code to the template:

 

if (function_exists('smfshout'))

 smfshout();

 

You may find that you want to put the code in the middle of some existing HTML, and if you are not familiar to PHP may find adding this is causing your forum to error. If this is the case replace the code above with:

 

';

if (function_exists('smfshout'))

 smfshout();

echo '

 

and this should fix the error!

Editing the shoutbox template itself:

If you want to edit how the shoutbox itself looks (for example making the message box bigger, putting it in two columns), you need to look at the shoutbox template. The shoutbox template is in the file called shout.template.php, and is located in your Themes/default directory. There are three functions in this file, one does the archive, one does the main shoutbox, and one does the form people shout into. Just edit the HTML in this file to change the appearance of the shoutbox on your site.

 

Please note, if you do change this file I recommend you keep a copy of the changes you made - as if you upgrade your forum in the future and reinstall the mod - your changes will of course be overwritten!

 

Here you can find some themes for the forum:

http://www.smfads.com/forums/index.php?PHPSESSID=6ae003baf75c88e2e3c7844bcff67443&board=7.0

 

Credits go to simple machines.

To me for the collecting.

 

PS:I collect some guides for add-ons.I will put all them here to one AIO.

Posted

in my opinion the forum engines since they have an install procedure and its well explained dont need guides only a little english knowledge

 

I accept with it.

But,I will add some guides which are at the net with some things that you can add^ ^

Posted

I accept with it.

But,I will add some guides which are at the net with some things that you can add^ ^

 

yes a guide for addons is more usefull

Posted

Totally agree.anyway if you bored to make a smf use this way :D

http://smfforfree.com/

:P

 

I am not sure,but I think that by using this way,you are not able to add things at forum.

I mean that this is one standar forum,which is given to you for free.

I am not sure,if I am wrong someone correct me.

Posted

I am not sure,but I think that by using this way,you are not able to add things at forum.

I mean that this is one standar forum,which is given to you for free.

I am not sure,if I am wrong someone correct me.

ye i agree total with you. but people who dont know these settings if wants a forum use other way as i said

http://smfforfree.com/

anyway i voted for your way ;)

[GR]Euxomai na iparxoun ekatomiria tetia forum kai oxi to http://smfforfree.com/

:P [/GR]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...