Author Topic: how can to add fbk like smf on wap2  (Read 2324 times)

0 Members and 1 Guest are viewing this topic.

lucky4life

  • Guest
how can to add fbk like smf on wap2
« on: November 05, 2012, 09:14:21 PM »


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

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #1 on: November 05, 2012, 10:22:39 PM »
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: [Select]
<?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: [Select]

}

function template_wap2_boardindex()
and add this
Code: [Select]
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: [Select]
echo'
<center>', $txt['footer'], '</center></div>
and add this
Code: [Select]
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

 
Wisdom pays! Be wise!

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #2 on: November 05, 2012, 10:26:39 PM »
now to display facebook share etc in your wap2 just copy your already customized share this buttons and paste it below the contents of your notepad (the one that is  meant to be at the footer)
Wisdom pays! Be wise!

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #3 on: November 06, 2012, 12:28:48 AM »
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 newbielink:http://wapstuff.nazuka.net/webmasterprogramming/webmasters/?action=dlattach;attach=4 [nonactive]
am unable to attach it

or you can use your own idea entirely
thanks
« Last Edit: November 06, 2012, 12:31:05 AM by R4SH33D »

Online zeal

  • Lead Admin
  • *****
Re: how can to add fbk like smf on wap2
« Reply #4 on: November 06, 2012, 09:49:36 AM »
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
zealous for perfection

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #5 on: November 06, 2012, 07:18:14 PM »
@zeal
the index.php is
newbielink:http://wapstuff.nazuka.net/index.php?action=downloads;sa=downfile&id=2 [nonactive]
this is another place or what is it writting


or
newbielink:http://kemiupload.tk/site_7.xhtml?get-file=463 [nonactive]
« Last Edit: November 06, 2012, 07:21:00 PM by R4SH33D »

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #6 on: November 06, 2012, 07:22:13 PM »
i've upload it elswhere

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #7 on: November 07, 2012, 09:55:04 AM »
@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
Wisdom pays! Be wise!

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #8 on: November 07, 2012, 12:08:24 PM »
pls increase the size of maximum attachment  bcos it is 12kb and am uploading like 16kb
so i will be able to attach it

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #9 on: November 07, 2012, 12:09:05 PM »
@obasi i've sent it to uer mail

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #10 on: November 07, 2012, 12:12:38 PM »
@obasi i've sent it to uer mail
I'm online but couldn't see it can you resend it?
Wisdom pays! Be wise!

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #11 on: November 07, 2012, 03:48:36 PM »
i've resend it

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #12 on: November 07, 2012, 03:53:33 PM »
Wisdom pays! Be wise!

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #13 on: November 07, 2012, 03:54:49 PM »
newbielink:http://kemiupload.tk/site_7.xhtml?get-file=465 [nonactive]

Offline obasimiracle

  • Support Expert
  • *****
Wisdom pays! Be wise!

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #15 on: November 07, 2012, 07:04:32 PM »

I've seen it
thanks
« Last Edit: November 07, 2012, 07:07:08 PM by R4SH33D »

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #16 on: November 07, 2012, 07:20:07 PM »
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

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #17 on: November 07, 2012, 07:27:27 PM »
obasi do you want to add quote to this your wap2
that will be a brilliant idea saving one from using "quote] at least
Wisdom pays! Be wise!

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #18 on: November 07, 2012, 07:32:45 PM »
i did not understand by 'saving one'
is it good or not

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #19 on: November 07, 2012, 07:38:52 PM »
i did not understand by 'saving one'
is it good or not
't will be good
Wisdom pays! Be wise!

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #20 on: November 07, 2012, 07:49:54 PM »
you just have to use wireless.template.php of a forum using wapmod1.4
u have to download the wireless.template.php of a forum using wapmod1.4 and upload it and overwrite that of 1.5
i have one that is of newly created forum of 1.4
you will just recode ur external link and the ads package to it back

can i send you the on that i used for my forum?
You view my forum newbielink:http://twizwap.tk [nonactive] that i used 1.5 and functionig like 1.4


« Last Edit: November 07, 2012, 07:55:26 PM by R4SH33D »

lucky4life

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #21 on: November 07, 2012, 09:33:18 PM »


pls obasi i want u to help me on my forum oooo, on the wap2 header and footer links, i have tried but its not working, newbielink:http://www.nairacrew.com [nonactive]

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #22 on: November 07, 2012, 09:42:22 PM »


@lucky4live pls how do you rename your forum to .com instead of  .nazuka.net
and redirects it

lucky4life

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #23 on: November 08, 2012, 06:41:20 AM »
when creating  the site choose your donain not subdomain.
Then go to ur domain account(the domain you bought) and put nazuka.net nameservers.
Ns1.nazuka.net
ns2.nazuka.net
ns3.nazuka.net
ns4.nazuka.net
then wait for about 12hours so the dns server will propagate.
before you do anything

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #24 on: November 08, 2012, 10:59:54 AM »


pls obasi i want u to help me on my forum oooo, on the wap2 header and footer links, i have tried but its not working, www.nairacrew.com
upload your wireless template.php
Wisdom pays! Be wise!

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #25 on: November 08, 2012, 11:02:32 AM »


pls obasi i want u to help me on my forum oooo, on the wap2 header and footer links, i have tried but its not working, www.nairacrew.com
upload your wireless template.php or add the
Code: [Select]
include('yourlinkname.php'); below
Code: [Select]
global $context, $settings, $txt, $options, $boardurl, $scripturl;
« Last Edit: November 08, 2012, 11:04:08 AM by obasimiracle »
Wisdom pays! Be wise!

lucky4life

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #26 on: November 08, 2012, 04:32:17 PM »


ii hve done dat, its just d links.php

Offline obasimiracle

  • Support Expert
  • *****
Re: how can to add fbk like smf on wap2
« Reply #27 on: November 08, 2012, 05:23:15 PM »


ii hve done dat, its just d links.php
yeah that's what's I'm saying add
Code: [Select]
include('links.php'); just below
Code: [Select]
global $context, $settings, $txt, $options, $boardurl, $scripturl;
Wisdom pays! Be wise!

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #28 on: November 08, 2012, 07:29:33 PM »
@lucky it means that u actually bought that .com domain and host it at nazuka.net
or you still get that domain name at nazuka

lucky4life

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #29 on: November 11, 2012, 11:40:20 PM »
i bought it

R4SH33D

  • Guest
Re: how can to add fbk like smf on wap2
« Reply #30 on: November 12, 2012, 03:20:14 PM »


Kkkkkk

 

Inside: 3P Techies Blog

* Newest Techies

Get Updates


Sign up to get latest updates delivered to your inbox. No Spam, We Promise!

Get Hosting!

a Faster web hosting service

Copyright 3rd Planet Techies. All rights Reserved.

Top || Mobile ||Advertise || Contact Us || Privacy