Anonymous,

Please Login or Register
Download Nuke Evolution Xtreme today for a CMS you can enjoy using and sharing with your friends!
[ Download Now ]
Forum Index  ·  Search  ·  Usergroups  ·  Edit your profile  ·  Members  ·  Login, Check Messages
Arcade  ·  Ranks  ·  Staff  ·  Statistics  ·  Board Rules  ·  Forum FAQ  ·  Log in

Search for at
Evolution-Xtreme Advanced Search


+  
Latest Site News   Next 5 >>  
 Forum   Author   Replies   Last Post 
File Repository 1.0.0 Released Announcements! Lonestar 0 Tue Apr 26, 2016 6:44 am
Lonestar View latest post
Image Repository Released Announcements! Lonestar 1 Mon Oct 27, 2014 7:39 pm
Lonestar View latest post
So what happened to us? Announcements! SgtLegend 0 Tue May 06, 2014 12:32 am
SgtLegend View latest post
[PROGRESS] Nuke Evolution Xtreme 2.0.9e Announcements! SgtLegend 2 Sun May 27, 2012 6:25 pm
SgtLegend View latest post
European Cookie Law Announcements! SgtLegend 0 Sat May 26, 2012 7:33 am
SgtLegend View latest post
   
Recent Topics   Next 15 >>  
 Forum   Author   Replies   Last Post 
Evo staff looking for some volunteers. Community Announcements coRpSE 20 Thu Jul 02, 2015 9:19 am
Depresjon2 View latest post
Evo Xtreme 2.0.9D Updated for PHP 5.6 General Support coRpSE 121 Thu Mar 23, 2017 3:57 pm
casterdon View latest post
[ MOD ] - Honeypot V2.2 AntiBot Module Security coRpSE 106 Tue Nov 22, 2016 11:30 am
coRpSE View latest post
Possible new Admin area layout Comments and Suggestions Lonestar 18 Wed Sep 14, 2016 11:37 am
Blackou View latest post
jQuery update General Support Lonestar 2 Wed May 11, 2016 4:49 pm
Charles64 View latest post
Deutsche Sprachdatei - german language files German DT50R 7 Thu Jan 28, 2016 7:04 am
DT50R View latest post
[FIX] Correct Cookie Settings (Invalid Session Error) Quick fixes killigan 110 Fri Mar 20, 2015 1:06 pm
Macdaddy View latest post
head and body help General Support hercountrybuck 8 Tue Apr 04, 2017 2:08 pm
Sp0rAdiC View latest post
babstats nuke evo PHP 5.6 Modules pd35 4 Mon Mar 27, 2017 5:45 pm
Ragonese View latest post
Looking for coRpSE? He is gone till May. General Chat coRpSE 4 Sun Mar 26, 2017 6:50 pm
coRpSE View latest post
Think I got hit with malware somehow General Support bobdude 10 Sun Mar 26, 2017 6:44 pm
coRpSE View latest post
error log Bugs Redcougarxr7 31 Tue Mar 21, 2017 8:46 pm
coRpSE View latest post
I seem to be locked out of my website Smile General Support storm 4 Sat Mar 11, 2017 12:29 pm
coRpSE View latest post
Site gone off General Support GI_ 3 Fri Mar 03, 2017 11:21 am
Lonestar View latest post
Norwegian Language Multilingual Support dogbone 0 Wed Mar 01, 2017 10:43 pm
dogbone View latest post

News Article Post to Facebook

 
Post new topic    Reply to topic    printer-friendly view   Thank Post    Evolution-Xtreme Forum Index -> Install -> Site Upgrade
View previous topic :: View next topic  
Author Message
forgotz
Xtreme Contributor
Xtreme Contributor




Joined: Mar 23, 2011
Age: 52
Posts: 79
Location: Boston
Reputation: 4.9
usa.png


Status: Offline
PostPosted: Thu Apr 14, 2011 2:24 pm Post subject: No icon News Article Post to Facebook Reply with quote

 Have  added  "Post  to  Facebook"  under  options  in  news  article.
 
 Opened  "modules/News/article.php"  and  after  line...
 
                                                 
PHP:                
$optionbox .= "&nbsp;<img src='images/friend.gif' border='0' alt='"._FRIEND."' title='"._FRIEND."'> <a href=\"modules.php?name=$module_name&amp;file=friend&amp;op=FriendSend&amp;sid=$sid\">"._FRIEND."</a><br /><br />
"
               

 Added  this...
 
                                                 
PHP:                
$optionbox .= "&nbsp;<img src='images/share.gif' border='0' alt='"._FACEBOOK."' title='"._FACEBOOK."'> <a href=\"http://www.facebook.com/share.php?u=$current_url\" onclick=\"window.open('http://www.facebook.com/share.php?u=$current_url','popup','width=700,height=450,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=330,top=330'); return false\">"._FACEBOOK."</a><br /><br />
"
               

 Then  opened  "includes/nsnne_func.php"  and  just  before...
 
                                                 
PHP:                
?>                 

 Added  this...
 
                                                 
PHP:                
/*****[BEGIN]******************************************
 [ Base: Â  Â Friendly URL Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  
 ******************************************************/
function curPageURL() {
 
  Â $pageURL 'http';
 
  Â if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 
  Â $pageURL .= "://";
 
  Â if ($_SERVER["SERVER_PORT"] != "80") {
 
  Â $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 
  Â } else {
 
  Â $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return 
$pageURL;
}

$current_url str_replace("www."""curPageURL());
$current_url str_replace(':','%3A',$current_url);
$current_url str_replace('/','%2F',$current_url);
$current_url str_replace('&','%26',$current_url);
/*****[END]********************************************
 [ Base: Â  Â Friendly URL
 ******************************************************/ 
               

 Then  uploaded  the  attached  image  to  "images/share.gif"
 
 Couple  of  questions  though.  Is  there  a  "friendly  url"  type  function  already  in  the  system?  And  it  is  working.  Will  post  the  the  article  title  but  only  insert  sitename  for  body  text.  Is  there  a  way  to  improve  this  function  so  that  article  text  will  populate  the  body?  Any  comment  or  suggestions  are  appreciated  Smile  
 
 -K
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Blackou




Joined: Feb 28, 2010
Posts: 50
Location: FRANCE
Reputation: 6.3


Status: Offline
PostPosted: Fri Apr 15, 2011 1:23 pm Post subject: No icon Re: News Article Post to Facebook Reply with quote

 Have  you  a  xtrem  website  for  see  this  in  action?
 
 I  have  coded  a  script  "Post  to  facebook  and  tweeter"  for  my  website.  I'd  like  to  compare.
Back to top
View user's profile Send private message
aspawa



Gender: Gender:Male
Joined: Mar 11, 2009
Age: 45
Posts: 13
Location: Turkey/Tekirdag
Reputation: 1.6
turkey.png


Status: Offline
PostPosted: Fri Apr 15, 2011 2:02 pm Post subject: No icon Re: News Article Post to Facebook Reply with quote

 thanx  forgotz  a  small  contribution
 Open   modules/News/language/lang-xxx.php
 
 Add  code
 
 
                                                 
PHP:                
define("_FACEBOOK","Share this article");                 
Back to top
View user's profile Send private message Visit poster's website Visit member's Facebook: http://www.facebook.com/tuncer.karatastan
Sponsor
phpstorm.jpg
forgotz
Xtreme Contributor
Xtreme Contributor




Joined: Mar 23, 2011
Age: 52
Posts: 79
Location: Boston
Reputation: 4.9
usa.png


Status: Offline
PostPosted: Tue Apr 26, 2011 10:40 am Post subject: Idea Re: News Article Post to Facebook Reply with quote

                                                   
Blackou  wrote  (View  Post):                
Have  you  a  xtrem  website  for  see  this  in  action?
 
 I  have  coded  a  script  "Post  to  facebook  and  tweeter"  for  my  website.  I'd  like  to  compare.                

 
 
 Checkout  the  web  link  in  my  profile.  Interested  also  to  see  your  code.  Keep  me  informed,  thanks!
 
 -K
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
forgotz
Xtreme Contributor
Xtreme Contributor




Joined: Mar 23, 2011
Age: 52
Posts: 79
Location: Boston
Reputation: 4.9
usa.png


Status: Offline
PostPosted: Tue Apr 26, 2011 10:41 am Post subject: No icon Re: News Article Post to Facebook Reply with quote

                                                   
aspawa  wrote  (View  Post):                
thanx  forgotz  a  small  contribution
 Open  Â modules/News/language/lang-xxx.php
 
 Add  code
 
                                                   
PHP:                
define("_FACEBOOK","Share this article");                 
               

 
 You  are  welcome  Exclamation  Heh,  forgotz  all  about  that  -  THANK  YOU!  Only  difference  is  I  used  "Post  to  Facebook"  for  the  define...talk  soon
 
 -K
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
forgotz
Xtreme Contributor
Xtreme Contributor




Joined: Mar 23, 2011
Age: 52
Posts: 79
Location: Boston
Reputation: 4.9
usa.png


Status: Offline
PostPosted: Tue Apr 26, 2011 10:44 am Post subject: Important News Article Post to Facebook Questions Reply with quote

 Couple  of  questions  though.  Is  there  a  "friendly  url"  type  function  already  in  the  system?  And  it  is  working.  Will  post  the  the  article  title  but  only  insert  sitename  for  body  text.  Is  there  a  way  to  improve  this  function  so  that  article  text  will  populate  the  body?  Any  comment  or  suggestions  are  appreciated  Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Sponsor
phpstorm.jpg
forgotz
Xtreme Contributor
Xtreme Contributor




Joined: Mar 23, 2011
Age: 52
Posts: 79
Location: Boston
Reputation: 4.9
usa.png


Status: Offline
PostPosted: Tue Apr 26, 2011 11:03 am Post subject: Great ! Re: News Article Post to Facebook Reply with quote

                                                   
Blackou  wrote  (View  Post):                
Have  you  a  xtrem  website  for  see  this  in  action?
 
 I  have  coded  a  script  "Post  to  facebook  and  tweeter"  for  my  website.  I'd  like  to  compare.                

 
 Post  to  Facebook  Example
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post Evolution-Xtreme Forum Index -> Install ->  Site Upgrade All times are UTC - 5 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Announcement: Battlefield Bad Company 2 Server Info Viewer 30 killigan 12845 Fri Sep 24, 2010 1:55 pm
TONY[-TOC-] View latest post
No new posts Error Log - Module PDO already loaded 9 tsac 5617 Sat Jul 16, 2011 6:03 am
tsac View latest post
No new posts You might already use. 7 Soulkeeper 5191 Fri Apr 29, 2011 7:44 am
forgotz View latest post
No new posts Forums Header Already Sent Errors 2 ClanJC 3309 Mon Jan 17, 2011 4:12 pm
Wicked View latest post
No new posts Added multiple times to group 5 Ace1564 3363 Tue Sep 21, 2010 7:08 am
Ace1564 View latest post
 




Powered by phpBB © 2001, 2006 phpBB Group
EvoXtreme Theme by SgtLegend ©
Forums ©