Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Latest 7.02.07 download

I am having massive problems with my websites that are running 7.02.07; namely the /e deprecated modifier in the bbcodes. So I d/l'ed the latest 7.02.07 thinking that you guys would have already fixed this problem in the appropriate bbcodes but I found out that the scripts are still the same! The preg_replace functions STILL have not been modified to preg_replace_callback. I have tried many times to manually modify these functions in the bbcodes but DO NOT UNDERSTAND how to make it work. When I remove the /e and change the function to preg_replace_callback I get errors that say the second parameter is missing. Can someone PLEASE explain to me how to do this. I've searched on the web in all the other forums that deal with php coding and everything I find dealing with preg_replace_callback is so cryptic and complicated that I can't make heads or tails out of it.
frown
Harlekin has replied to this - 1 year ago
Use the URL and Email BBCode from the V9, that should be work.
Grimloch has replied to this - 1 year ago
Absolutely does not work !!
Harlekin has replied to this - 1 year ago
mail_bbcode_include.php
CodeDownload  
$text = preg_replace_callback(
   "#\[mail\]([\r\n]*)([^\s\'\";:\+]*?)([\r\n]*)\[/mail\]#si",
   function($m) {
      require LOCALE.LOCALESET."bbcodes/mail.php";
      $mail = $m['2'];
      return hide_email($mail);
   }, $text
);

$text = preg_replace_callback(
   "#\[mail=([\r\n]*)([^\s\'\";:\+]*?)\](.*?)([\r\n]*)\[/mail\]#si",
   function($m) {
      require LOCALE.LOCALESET."bbcodes/mail.php";
      $mail = $m['2'];
      return hide_email($mail);
   }, $text
);



url_bbcode_include.php
CodeDownload  
if (!defined("IN_FUSION")) { die("Access Denied"); }

   $text = preg_replace_callback(
      "#\[url\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\"]*?)([\r\n]*)\[/url\]#si",
      function($m) {
         require LOCALE.LOCALESET."bbcodes/url.php";
         $this_url = $m['2'].$m['3'];
         return "<a href='$this_url' target='_blank' title='$this_url'/>
 ".trimlink($this_url, 20). (strlen($this_url)>30 ? substr($this_url, strlen($this_url)-10, strlen($this_url)):'')."
 </a>";
      }, $text);

$text = preg_replace('#\[url=([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'\2\3\' target=\'_blank\' title=\'\2\3\'>\4</a>', $text);
$text = preg_replace('#\[url=([\r\n]*)([^\s\'\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'http://\2\' target=\'_blank\' title=\'\2\'>\3</a>', $text);



This work on my site fine
Grimloch has replied to this - 1 year ago
OK. You didn't say anything about modifying the v9 bbcodes; you simply said that they should work so I uploaded the bbcodes from my v9 download as is. THAT absolutely did not work. However the code you provided works GREAT! Thanks man ! You don't know how I have struggled with this problem ever since I discovered it. One more small question: I thought that with the original v7 url bbcode you could use just the domain part of the url like this:

left-bracket url right-bracket somedomain.com left-bracket /url right-bracket ?

However after using your code here I find that you have to use the entire url like this:

left-bracket url right-bracket http://www.somedomain.com left-bracket /url right-bracket .

To see what I mean go to my site whisperwillow.com and click on any of the forum posts that I have responded to.
Harlekin has replied to this - 1 year ago
1. is it in the profile look ok?
2. take a look in your forum/viewthread.php ther should be this line:
CodeDownload  
echo "\n<hr /><div class='forum_sig'>".nl2br(parseubb(parsesmileys($data['user_sig']), "b|i|u||center|small|url|mail|img|color")) . "</div>\n";



Is this line ok? I think, ther is no url in your line.
Grimloch has replied to this - 1 year ago
Yes; it's exactly like that. I want to show you what I get on my other v7 main site that HAS NOT had your code above applied yet and still has the /e modifier in the bbcodes>

My main website: ''.trimlink('https://www.whisperwillow.com', 20).(strlen('https://www.whisperwillow.com')>30?substr('https://www.whisperwillow.com', strlen('https://www.whisperwillow.com')-10, strlen('https://www.whisperwillow.com')):'').'

This is my signature on my fortworthbonsai.org site copied exactly as it appears in a forum post.. Bare in mind that that entire thing is an active link except for the first descriptive part. Here is again inside this sites code block.

CodeDownload  
My main website: ''.trimlink('https://www.whisperwillow.com', 20).(strlen('https://www.whisperwillow.com')>30?substr('https://www.whisperwillow.com', strlen('https://www.whisperwillow.com')-10, strlen('https://www.whisperwillow.com')):'').'

Grimloch has replied to this - 1 year ago
I really really don't understand what's going on here. Here is a picture of another v7.02.07 virgin website (actually a sub-domain of my whisper site), where I just changed my signature to a url endurl link.

https://www.whisperwillow.com/my_panels/site.jpg

Same result.
Harlekin has replied to this - 1 year ago
Your Signature should be so without *
[*url=https://www.whisperwillow.com]whisperwillow.com[*/url]
Grimloch has replied to this - 1 year ago
OK you are right; thanks. Everything is fine now.
Thread Information
Author
Replies
10 posts
Views
631 times
Last Post
Last updated on 1 year ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Grimloch, Harlekin