Recent Post

Dear reader, this blog has been moved to here

Wednesday, 12 June 2013

[SMF TUT] CUSTOMIZING AND INSTALLING MOBILE VERSION IN SMF(WAP2)




The rate at which people use phone to browse has reach 98%, people don't care about going to browser and buy pc internet plans. With this i also learn how to add mobile view in your smf Procedures goes like these:

INSTALLING BXK WAP MOD
This modification cannot be found in smf mod site. But i got is fromMattcworld and i attached it here.

This mod supports SMF 2.0 RC5 but if you are using SMF 2.0, SMF 2.0.1 or SMF 2.0.2 then you need to emulate to SMF 2.0 RC5 for it to work

Go to Package Manager, click on Advanced at the bottom right and emulate clean up the version written there and type SMF 2.0 RC5Click on Apply and now try to upload and install the mod. you can change back the version after installing by click Revert and apply

How To Redirect Opera Mini To WAP2
This is a bit hard for PHP newbies, all you have to do is to edit you index.php in your public_html. Without this Opera Mini users can't view your mobile view

now it goes like these

Make sure you backup before doing this in case any error Edit the Index.php, copy all and paste in your notepad or any other editing program, search for by pressing Ctrl+F

 if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)  


And replace with

 if ((isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false) || isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']))  


Now view your site with Operamini and enjoy....

Adding External Links To SMF WAP2
This is quite simple for PHP geeks

Create a .php, .xhtml or .html file for php use this

 <?php  
echo '<div class="wapmenu"><center><a href="/?action=gallery;wap2">Gallery</a> | <a href="/?action=downloads;wap2">Downloads</a></center></div>';
//add more links
echo '<div class="wapmenu"><center><a href="your link url">Link name</a> | <a href="link url">Link name</a></center></div>';
//you can add more as you like
?>


for html use this:

 <html><div class="wapmenu"><center><a href="/?action=gallery;wap2">Gallery</a> | <a href="/?action=downloads;wap2">Downloads</a></center></div>  
/*add more links*/
<div class="wapmenu"><center><a href="your link url">Link name</a> | <a href="link url">Link name</a></center></div>
/*you can add more*/</html>


- Then save it with links.php and upload to your public_html in your cpanel
- Goto these directories Public_html=>Themes=>Default=>Wireless.template.php
- Edit it

Locate this if you want the link to show at the top after Home | Register | Login

 }  
function template_wap2_boardindex()


Then replace with (NOTE: If you save with links.html or xhtml then clean the .php and put what file type you save it with)

 include 'links.php';  
}
function template_wap2_boardindex()
-To show the links at the bottom, find:
 echo'  
<center>', $txt['footer'], '</center></div>
and paste this above it
 include 'links.php';  
ALL IS DONE...DON'T FORGET TO BACKUP BEFORE STARTING AND USE THE FB BUTTON

DOWNLOAD BxK Wapmod 1.4 here

Email Newsletter



Smiley :)
:D
:)
:[
;)
:D
:O
(6)
(A)
:'(
:|
:o)
8)
(K)
(M)

No comments:

Post a Comment