With the increasing rate at which people browse the internet, it’s very important to optimize your site for mobile users. I have a web forum built with SMF 2.0 script and the mobile version isn’t bad at all compared to the default mobile version SMF has to offer. Unlike MyBB that has a better mobile version plugin, SMF mobile version (also known as WAP2) looks rather too crude to be of interest to any mobile user. A lot of my web forum users use Opera Mini mobile browser and I had no choice but to make the forum’s mobile version a lot better than what it was. Since mobile users are also more than 50%, I had to find ways to insert adsense for mobile into WAP2 to monetize it and I’m going to explain just how I did it. The screenshot below shows exactly how my forum looks like when viewed with Opera Mini.

Installing BXK WAP MOD
This modification gives your SMF WAP2 version a much better look. It’s not available on SMF modifications site but i got it from Empireofthesun. Sadly, the site too has been having some technical issues for some months now and this mod is almost nowhere to be found online. Fortunately, I ran a search on my hard drive, found it and uploaded it to my old mobile site.
Now, this version supports SMF 2.0 RC5 but in case you’re using SMF 2.0 or SMF 2.0.1, you need to emulate SMF 2.0 RC5 to install this mod.
Go to Package Manager, click on Advanced at the bottom right and emulate SMF 2.0 RC5
Click on Apply and now try to upload and install the mod.
How To Redirect Opera Mini To WAP2
This part is a bit tricky as you have to do edit a php file. Log in to your cPanel and locate index.php file. This is the only file that needs to be edited in order to redirect mobile users to the WAP version you just installed.
Edit index .php file by searching for this code:
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)And replacing with this:
if ((isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false) || isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']))
Now save the file and view your web forum with Opera Mini. You should be automatically redirected to WAP2.
Inserting Ads (Adsense, Inmobi, Admob or Buzzcity) To SMF WAP2
-You first need to generate and copy out the php code for the advert and paste it to a text file. If you’re using Adsense for mobile, be sure you selected ads for both low and high end phones and copy out the codes in php format.
-Save the text file as ads.php (be sure the extension is php)
-Upload the php file to your domain root (public_html)
-Find Wireless.template.php (./public_html/Themes/default/Wireless.template.php)
-If you want the advert to appear at the top just above the header, find this code:
<center><p class="catbg">', site_logo(), '</p></center>-Right below it, paste this code:
include('ads.php');-If you wish the advert to appear below, right before the footer, find this code:
global $context, $settings, $txt, $options, $boardurl, $scripturl;-Right below this, paste this code:
include('ads.php');You can as well add the ads to any other location depending on whether you have a clear idea on php coding. Inserting the advert at a wrong place might render your template useless.
Adding External Links To SMF WAP
The procedure is quite similar to the one above. You need to write your links in php and save it as a text file. If you don’t know how to get this done, simply edit the links and anchor texts in the example below:
<?php
echo "<div class=\"wapmenu\">\n";
echo "<a href=\"http://www.9jaclub.com/profile/?area=account;wap2\">Edit Account</a> | <a href=\"http://www.9jaclub.com/profile/?area=forumprofile;wap2\">Edit Profile</a>\n";
echo "</div>\n";
?>-Now save this as links.php and upload to public_html.
-Locate Wireless.template.php file from your cPanel
-To show the links at the top, search for this code:
}
function template_wap2_boardindex()
-Just above this, paste this code:
include('links.php');-To show the links at the bottom, find:
echo'
<center>', $txt['footer'], '</center></div>-Just above it, paste this code:
include('links.php');Everything posted here can be practically seen on 9jaclub.com and if you find this post helpful, say thanks by hitting the google +1 and facebook like buttons below. Thanks!
Tags:
smf mobile, , smf wap2, smf mobile theme, smf mobile mod, smf forum mobile version, smf mobile version, smf forum mobile, customize smf wap2, simple machines forum mobile, these are the powered by smf 2 0 rc5, wap2, wap2 customize smf, simple machine forum mobile, smf wapmod doncaprio, smf wap mod, control wap2, how to disable redirection in my smf forum, simple machine forum, simple machines forumFacebook Comments
Related posts:
- Our New Web Forum
- Ultrasurf on Mobile?
- A Better Way To Make Your Blog Mobile Friendly
- How To Make Your Blog Mobile Friendly
- How to Use Your Mobile Phone as Webcam
- Admob Suspends Accounts And Mobile Web Option
- How To Edit Blogger Mobile Template
- Google Adsense For Mobile Now Available in Nigeria and 14 Other Countries
- 10 Tips to Make You Mobile Phone Battery Life Longer
- Google Adsense For Content Now Displays on Opera Mini and Other Mobile Browsers




You are a greate man…. I must confess you are a very good badt guy. I need to save this page.
I lke dis site is so educative.
Oloketuyi Their is a Website error and There mailing out free iipad two @ http://www.facebook.com/apps/application.php?id=290578340981988/?i4n6G10y5b719J3W go right now before its too late
CHeck out which person saw your facebook page at http://www.facebook.com/apps/application.php?id=270156176370434?E4E3r05L3v754B5T
I want the print option added to the toolbar as when there used to be the file dropdowni want to disable Alt Ctrl keys using JAVA… so plizz help me doing these…..!!!!! [url=http://wyszukiwarka-mp3.eu]wyszukiwarka mp3[/url] Hi, I wanna starting development for smartphones applications, I'm hesitant about choosing between android OS and Apple IOS , I'll be happy to listen to your ideas and experience. Appreciate your help.Yes. wyszukiwarka mp3 Hey guys, I am currently learning to program in Java and would like some ideas as to a program to make inorder to improve my knowledge. I am quite a novice however i have written programs for a snack machine, solitaire, fifteen puzzle game and a sudoku / futoshiki solver. Ideas can be anything as long as not too complicated lol thanks in advance.I have a samsung phone so is it safe, free and full quality song? [url=http://www.seeyou-in-walhalla.de/page8.php?messagePage=9]wyszukiwarka mp3[/url] get the install discs and you can change passwords using the install discI just got a new laptop and it was fast when i got it and now its slow i only have three programs downloaded i have gimp 2.6.11 and imvu and also i have google chrome downloaded which on is slowing down my computer? [url=http://hemforum.uw.hu/viewtopic.php?p=3322#3322]wyszukiwarka mp3[/url]I'm looking for a webcam to use with skype, but I'm useless with technical stuff. what resolution is good for a webcam? will 1MP be enough? Is there any particular brand that is good for webcams? thanks in advance.I need someone to dumb it down for me… Because i really dont get what im supposed to do [url=http://upnextworld.com/viewtopic.php?f=8&t=121374]wyszukiwarka mp3[/url]
_______________
[url=http://iheartlocalart.com/forum/index.php?topic=42454.new#new]wyszukiwarka mp3[/url]
That info is not in my index.php file, for the redirection of Opera mini. What do i do
It should be.
Can you help me to do this for my smf
Great info don. For those haaving redirection issue, you can use this link answerarena.com/index.php?board=25.0
Don can you help me set up my blog? Nice compilation
Please contact me via email through the contact page.
Nice and easy… been looking for this for a while now.. Thanks..
Question.. That user agent is only for opera.. I see ur 9jaclub goes mobile on my iphone – Care to share the user agent u pasted to activate for iphone and other OS?
I’d prefer they see mobile too than Full.
You canredirect iphone users to the mobile version from bXk wapmod settings.
This is a VERY good write up on my mod. You did a great job. I will link you when it is accepted on the smf site in the next few days. Also if the author of this wants to contact me for the latest version visit me at http://gpuckett.com/smf/ or send me an email. For updates and news about me and my wap mod (BxK’s WAP Mod) then visit http://mattcworld.com
I lost touch when empireofthesun.net went down, could’ve updated the post with the latest version of the mod. Thanks for dropping by!
Cheers.
Hi don, 9ce job there… Do u know of any mod that i can use with my smf to restrict guests from viewing links in post. I’v searchd 4 dis and i think you can help…also my wap2 doesn’t show recent posts. Thanks in advance.
Search for “Registered links” at SMF modification site. It’s right there. You wap2 can show recent posts from smf settings. I can remember where exactly
Thanks ya @don
more $$ 4 u
please how do i add DOWNLOAD, GALLERY, BLOG AND FACEBOOK
It’s already in the article.
Don!!! This no work for me ooo.. and i cant upload that mod
Donatus recently posted..WAPTRICK.COM: A WEBSITE TO DOWNLOAD GAMES, APPLICATIONS, MUSICS AND VIDEO
It certainly works unless you didn’t follow the procedure. You can’t upload or cant install? Have you emulated an older version of SMF as specified in the post?
I did
Donatus recently posted..WAPTRICK.COM: A WEBSITE TO DOWNLOAD GAMES, APPLICATIONS, MUSICS AND VIDEO