What's new

how can to add fbk like smf on wap2

  • Thread starter lucky4life
  • Start date
  • Viewed 2627 times.
L

lucky4life

pls how can i add facebook like,share button and recent post to smf wap2 forum
 

gurusmaker

Active Techie
to customize your smf wap2 / mobile / wireless view so as to display your custom header and footer links including custom copyright information just copy and paste this
Code:
<?php
echo "<div class=\"wapmenu\">\n";
echo "<center><a href=\"https://forum.3ptechies.com/index.php?wap2;wap2\">home</a> | <a href=\"https://forum.3ptechies.com/profile/?area=forumprofile;wap2\">Edit Profile</a> | <a href=\"https://forum.3ptechies.com/profile/?area=accountt;wap2\">Edit Account</a>\n</center>";
echo "</div>\n";
?>
<div class="wapmenu">
<center><a href="http://www.blog.obasimvilla.com/">Blog</a> | <a href="http://m.facebook.com/obasimvilla">Facebook</a> | <a href="http://www.twitter.com/obasimvilla">Twitter</a></center>
</div>
<center> (c) 2012 obasimvillla.com Forum! Refining Computer "ict" Technology For the Younger Generation! All rights reserved.</center>
in notepad, dreamweaver or any other html editor and save it with any name of your choice .php eg footerlinks.php
next step now is how to make your link (the link you 've created ) display in your header and footer throughout your smf forum to do this
1. log in to your cpanel navigate to your forum root directory where you have ssi.php upload the link you 've just created in this case upload footerlinks.php
2. navigate to theme / default /Wireless.template.php
3. download the Wireless.template.php (backup in case you mess up with the settings) then edit it with any html editor
4. to display the link on the header locate where you have
Code:
}

function template_wap2_boardindex()
and add this
Code:
include('footerlinks.php');
above it
5. to display links in the footer including your custom copyright just add your custom copyright as seen in the template above and locate where you have
Code:
echo'
<center>', $txt['footer'], '</center></div>
and add this
Code:
include('footerlinks.php');
above it
6. save and upload to your theme directory overwriting whatever is there

remember you need this very mod to have a superb wap2 view and easily direct iphone and opera mini users to your smf wap2/ mobile view

 
R

R4SH33D

bro [urgent one but it's not my current forum ]pls can you help me to edit this index.php to automatically redirect opera to wap2
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']))

[it's wapmod 1.4, all other process has been done it's this only last step]
i'm suffering all this bcos am on mobile
pls help

the index.php is HERE
am unable to attach it

or you can use your own idea entirely
thanks
 

zeal

De Techizard
R4SH33D said:
bro [urgent one but it's not my current forum ]pls can you help me to edit this index.php to automatically redirect opera to wap2
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']))

[it's wapmod 1.4, all other process has been done it's this only last step]
i'm suffering all this bcos am on mobile
pls help

the index.php is HERE
am unable to attach it

or you can use your own idea entirely
thanks
access denied upload it elsewhere
 

gurusmaker

Active Techie
R4SH33D said:
@zeal
the index.php is
HERE
this is another place or what is it writting


or
HERE
your upload is an empty index file . login to your cpanel and download the index file then use mediafire.com to upload it
 
R

R4SH33D

pls increase the size of maximum attachment  bcos it is 12kb and am uploading like 16kb
so i will be able to attach it
 
R

R4SH33D

obasi do you want to add quote to this your wap2
i actually discovered that during my searching smf tricks
so this what i mean how to make wapmod 1.5 ressemble 1.4 with even using 1.5 to add some extra function like quoting
 

Related Topics

Top