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
Looking for coRpSE? He is gone till May. General Chat coRpSE 2 Wed Mar 22, 2017 2:47 pm
casterdon View latest post
error log Bugs Redcougarxr7 31 Tue Mar 21, 2017 8:46 pm
coRpSE View latest post
Think I got hit with malware somehow General Support bobdude 7 Sat Mar 18, 2017 12:00 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
Arcade General Support Reaper2388 59 Sun Feb 26, 2017 7:13 pm
pholix View latest post
all blocks General Support Worfwarrior 6 Sat Feb 25, 2017 4:41 pm
coRpSE View latest post

Error Messages on website

 
Post new topic    Reply to topic    printer-friendly view   Thank Post    Evolution-Xtreme Forum Index -> General Support
View previous topic :: View next topic  
Author Message
matapanuk




Joined: Oct 17, 2014
Posts: 7

Reputation: 0.9
england.png


Status: Offline
PostPosted: Thu Jun 25, 2015 7:26 am Post subject: No icon Error Messages on website Reply with quote

 Hi  all
 I  have  been  running  nuke  evo  2.0.9  D  for  some  time  at  www.afs-team.co.uk  nothing  has  been  changed  recentley  yet  today  i  get  this  all  across  the  top  and  down  the  side  of  the  page  
 
 Deprecated:  preg_replace():  The  /e  modifier  is  deprecated,  use  preg_replace_callback  instead  in  /home/afsteamc/public_html/includes/classes/class.nbbcode.php  on  line  165
 
 I  have  attached  the  class.nbbcode.php  file  and  any  help  would  be  appreciated
Back to top
View user's profile Send private message
Thankful People
1 user(s) is/are thankful for this post.
Teo



Gender: Gender:Male
Joined: Jul 17, 2009
Age: 36
Posts: 491
Location: In your GF's bed!!
Reputation: 70.2
votes: 3
italy.png


Status: Offline
PostPosted: Thu Jun 25, 2015 9:40 am Post subject: No icon Re: Error Messages on website Reply with quote

 problem  is  you  upgrade  php  version  so  preg_replace()  is  deprecated  with  the  PHP  5.5
 
 you  should  fix  it  in  the  files  listed  (/home/afsteamc/public_html/includes/classes/class.nbbcode.php  on  line  165)  replacing  the  preg_replace().  Instead,  use  the  preg_replace_callback()  function.
 
 something  like  this:
 
 go  to  line  165:
 
                                                 
PHP:                
$text preg_replace($patterns$replacements$text);                 

 
 
 replace  with:
 
                                                 
PHP:                
$text preg_replace_callback($patterns$replacements$text);                 
Back to top
View user's profile Send private message Visit poster's website Visit member's Facebook: 232833186770739
matapanuk




Joined: Oct 17, 2014
Posts: 7

Reputation: 0.9
england.png


Status: Offline
PostPosted: Thu Jun 25, 2015 9:56 am Post subject: No icon Re: Error Messages on website Reply with quote

 Thank  you  Teo  i  copied  and  replaced  as  instructed  and  that  sorted  most  of  those  errors  but  i  get  a  single  line  now  which  is
 
 Warning:  preg_replace_callback():  Requires  argument  2,  'Array',  to  be  a  valid  callback  in  /home/afsteamc/public_html/includes/classes/class.nbbcode.php  on  line  165
 
 Sorry  but  i  know  how  to  find  the  problem  but  dont  know  enough  about  php  to  start  trying  to  fix  it.
Back to top
View user's profile Send private message
Sponsor
phpstorm.jpg
Teo



Gender: Gender:Male
Joined: Jul 17, 2009
Age: 36
Posts: 491
Location: In your GF's bed!!
Reputation: 70.2
votes: 3
italy.png


Status: Offline
PostPosted: Fri Jun 26, 2015 8:44 am Post subject: No icon Re: Error Messages on website Reply with quote

 mmm  donno  really,  try  to  set  it  as:
 
 
                                                 
PHP:                
$text preg_replace_callback($patterns'$replacements'$text);                 
Back to top
View user's profile Send private message Visit poster's website Visit member's Facebook: 232833186770739
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Fri Jun 26, 2015 10:41 am Post subject: No icon Re: Error Messages on website Reply with quote

                                                   
PHP:                
preg_replace_callback                 

 
 I  use  it  like  follows
 
 
                                                 
PHP:                
$patterns[] = '#\[color=(\#[0-9A-F]{6}|[a-z]+)\](.*?)\[/color\]#si';
        
$replacements[] = '<span style="color: \\1">\\2</span>'
               

 
 Becomes
 
 
                                                 
PHP:                
$text preg_replace_callback("(\[color=(\#[0-9A-F]{6}|[a-z]+)\](.*?)\[/color\])is"create_function('$m','return "<span style=\"color:".$m[1]."\">".$m[2]."</span>";'), $text);                 

 
 i  Re-Wrote  most  of  the  bbcode  functions  on  my  site,  to  use  this  new  preg_replace_callback  function  Smile
Back to top
View user's profile Send private message Send e-mail
matapanuk




Joined: Oct 17, 2014
Posts: 7

Reputation: 0.9
england.png


Status: Offline
PostPosted: Fri Jun 26, 2015 1:00 pm Post subject: No icon Re: Error Messages on website Reply with quote

 Thank  you  Lonestar  i  used  your  function  
 
 $text  =  preg_replace_callback("(\[color=(\#[0-9A-F]{6}|[a-z]+)\](.*?)\[/color\])is",  create_function('$m','return  "<span>".$m[2]."</span>";'),  $text);  
 
 There  are  now  no  error  messages,  however  images  are  showing  as  code,  please  see  www.afs-team.co.uk
 
 Thank  you  both  in  advance  for  all  you  help
Back to top
View user's profile Send private message
Sponsor
webstorm.jpg
Teo



Gender: Gender:Male
Joined: Jul 17, 2009
Age: 36
Posts: 491
Location: In your GF's bed!!
Reputation: 70.2
votes: 3
italy.png


Status: Offline
PostPosted: Thu Jul 02, 2015 2:18 am Post subject: No icon Re: Error Messages on website Reply with quote

 sorry  i  pop  here  only  now,
 
 Lonestar  i  would  do  so:
 
 
                                                 
PHP:                
$replacements = array();

$text preg_replace_callback($patterns'$replacements'$text); 
               

 
 isn't  the  same  thing?
Back to top
View user's profile Send private message Visit poster's website Visit member's Facebook: 232833186770739
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Thu Jul 02, 2015 2:19 am Post subject: No icon Re: Error Messages on website Reply with quote

 Not  all  of  the  bbcode  files  use  the  
 
 
                                                 
Code:                
$text  =  preg_replace_callback($patterns,  '$replacements',  $text);                  

 
 coding,  Which  means  its  not  as  simple  as  just  replacing  the  function  name,  Most  of  them  have  to  be  rewritten.
 
 Below  are  some  of  the  changes  i  made  to  mine.
 
 Here  is  what  they  were  like  before
 
 
                                                 
Code:                
#  colours
 $patterns[]  =  '#\[color=(\#[0-9A-F]{6}|[a-z]+)\](.*?)\[/color\]#si';
 $replacements[]  =  '<span  style="color:  \\1">\\2</span>';
 
 #  align
 $patterns[]  =  '#\[align=(left|right|center|justify)\](.*?)\[/align\]#si';
 $replacements[]  =  '<div  style="text-align:\\1">\\2</div>';                

 
 Here  is  what  they  look  like  now
 
 
                                                 
Code:                
#  colours    
 $text  =  preg_replace_callback("(\[color=(\#[0-9A-F]{6}|[a-z]+)\](.*?)\[/color\])is",  create_function('$m','return  "<span  style=\"color:".$m[1]."\">".$m[2]."</span>";'),  $text);
 
 #  align
 $text  =  preg_replace_callback("(\[align=(left|right|center|justify)\](.*?)\[/align\])is",  create_function('$m','return  "<div  style=\"text-align:".$m[1].";\">".$m[2]."</div>";'),  $text);                

 
 There  is  another  upside  to  rewritten  the  bbcodes  too,  Least  now  you  can  make  the  HTML5  &  PHP5.5  compliant,  As  you  probably  have  noticed,  Some  of  them  are  not.
 
 I  will  attach  my  class.nbbcode.php  file  here,  This  is  where  you  find  the  function  for  decoding  bbcode  on  your  homepage  and  such.
 
 You  will  see  i  have  not  completely  finished  it  yet,  As  im  ┬ástarted  working  on  another  project,  But  i  will  get  it  finished,  The  file  im  attaching  has  been  running  on  this  site  for  months  now  and  works  fine  Smile
Back to top
View user's profile Send private message Send e-mail
matapanuk




Joined: Oct 17, 2014
Posts: 7

Reputation: 0.9
england.png


Status: Offline
PostPosted: Fri Jul 03, 2015 5:26 am Post subject: No icon Re: Error Messages on website Reply with quote

 Thank  you  so  much  for  your  help  Lonestar,  i  replaced  my  class.nbbcode  with  yours  and  all  the  errors  have  gone   Very Happy
Back to top
View user's profile Send private message
Sponsor
webstorm.jpg
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Fri Jul 03, 2015 11:19 am Post subject: No icon Re: Error Messages on website Reply with quote

 I've  been  working  on  updating  the  forum  bbcode.php  file  aswell,  Once  its  done  ill  attach  in  this  thread  Smile
Back to top
View user's profile Send private message Send e-mail
matapanuk




Joined: Oct 17, 2014
Posts: 7

Reputation: 0.9
england.png


Status: Offline
PostPosted: Fri Jul 03, 2015 12:45 pm Post subject: No icon Re: Error Messages on website Reply with quote

 That's  great  Lonestar,  thanks  very  much  for  all  your  hard  work.
Back to top
View user's profile Send private message
xhd_ghost



Gender: Gender:Male
Joined: Jan 01, 2015
Posts: 4

Reputation: 0.5
blank.png


Status: Offline
PostPosted: Thu Oct 22, 2015 2:10 pm Post subject: No icon Re: Error Messages on website Reply with quote

 i  am  having  similar  area  of  problem  but  with  line  771  instead  of  165  public_html/includes/bbcode.php  on  line  771  is  what  i  am  getting  for  the  only  error  i  believe  i  am  on  php  5.5
Back to top
View user's profile Send private message
Sponsor
phpstorm.jpg
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Thu Oct 22, 2015 11:42 pm Post subject: No icon Re: Error Messages on website Reply with quote

 Try  this  bbcode.php,  I  have  made  some  modifications  to  it,  So  it  uses  preg_replace_callback  and  should  work  just  fine  on  php5.5
Back to top
View user's profile Send private message Send e-mail
Thorgrim




Joined: Aug 05, 2015
Posts: 10

Reputation: 1.3
spain.png


Status: Offline
PostPosted: Mon Jan 25, 2016 6:11 am Post subject: No icon Re: Error Messages on website Reply with quote

 Thanks  for  the  bbcode  Lonestar.  
 I  had  the  same  problem  in  the  line  771  of  the  bbcode  and  with  your  file  it's  works  perfect.
 
 Thanks   Wink
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post Evolution-Xtreme Forum Index ->  General Support 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 
This topic is locked: you cannot edit posts or make replies. Announcement: [BETA][RELEASED] Nuke Evolution 2.0.8 0 SgtLegend 3741 Fri May 28, 2010 4:54 am
SgtLegend View latest post
No new posts Dutch Language for Xtreme V2.0 4 DFC-NightMare[NL] 3899 Wed May 01, 2013 1:18 pm
coRpSE View latest post
No new posts [Solved] Birhday mod 3.0 missing: 18 Huntergreen 11754 Mon Mar 04, 2013 7:54 pm
Teo View latest post
No new posts help upgrading to evo xtream 2.0.7 1 kirky12 3735 Thu Sep 02, 2010 10:06 am
SgtLegend View latest post
This topic is locked: you cannot edit posts or make replies. [ Poll ] Xtreme v2.0 52 Lonestar 20576 Wed Oct 14, 2009 2:51 am
SgtLegend View latest post
 




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