Disquss

vBulletin Disquss 1.4.0

No permission to download

ChrisTERiS

Developer
Joined
Jan 16, 2015
Messages
615
ChrisTERiS submitted a new resource:

Disquss - Yahoo Questions & Answers Clone

I'm offering my hard work for free, without even a single copyright line in footer, expecting that some of you will appreciate the time that I spent for coding it and they will donate something.
1. Why we need a discussion mod?

Maybe sounds crazy to have a powerfull forum and to install this AddOn. But this is not true. I do agree that vB has tons of features for any type of discussions. But from the other point Yahoo Answers (and dozens...
Read more about this resource...
 

AndyDiGiUK

Neophyte
Joined
Dec 11, 2017
Messages
2
For those who actually run their vb4 on php 7 discuss will the an error syntax error, unexpected 'new' (T_NEW) on line 742
to rectify this just remove the & symbol
e.g. $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); ( its the one in red )
then just save it

Hope this helps and thanks Chris for another fine addon!
 

AndyDiGiUK

Neophyte
Joined
Dec 11, 2017
Messages
2
Apologies I forgot to mention the file affected is functions.php, in the discuss/includes folder
 

niho

Aspirant
Joined
Jan 19, 2020
Messages
17
Problem: When searching, it doesn't show results and gives error.

Why? Because no longer split () is used in php new versions.

Solution:

discuss.php:

Line:
908 - 915

PHP:
if (!empty($keyword))
    {
        $words = split(' ', $keyword);
        foreach($words as $word)
        {
           $sql .= " AND (title LIKE '$word%' OR title LIKE '%$word%' OR title LIKE '%$word' OR title LIKE '$word' OR keywords LIKE '$word%' OR keywords LIKE '%$word%' OR keywords LIKE '%$word' OR keywords LIKE '$word')";
        }
    }
Change:

Line:
908 - 915

PHP:
if (!empty($keyword))
    {
        $words = explode(' ', $keyword);
        foreach($words as $word)
        {
           $sql .= " AND (title LIKE '$word%' OR title LIKE '%$word%' OR title LIKE '%$word' OR title LIKE '$word' OR keywords LIKE '$word%' OR keywords LIKE '%$word%' OR keywords LIKE '%$word' OR keywords LIKE '$word')";
        }
    }
Note: It was tried in vbulletin 4.2.5 and PHP 7.4 version.

Thanks ChrisTERiS


Chris, I would be glad if I could solve this Coupons problem with your help.:cry:

 

Kyrie

Fan
Joined
Sep 2, 2009
Messages
986
Problem: When searching, it doesn't show results and gives error.

Why? Because no longer split () is used in php new versions.

Solution:

discuss.php:

Line:
908 - 915

PHP:
if (!empty($keyword))
    {
        $words = split(' ', $keyword);
        foreach($words as $word)
        {
           $sql .= " AND (title LIKE '$word%' OR title LIKE '%$word%' OR title LIKE '%$word' OR title LIKE '$word' OR keywords LIKE '$word%' OR keywords LIKE '%$word%' OR keywords LIKE '%$word' OR keywords LIKE '$word')";
        }
    }
Change:

Line:
908 - 915

PHP:
if (!empty($keyword))
    {
        $words = explode(' ', $keyword);
        foreach($words as $word)
        {
           $sql .= " AND (title LIKE '$word%' OR title LIKE '%$word%' OR title LIKE '%$word' OR title LIKE '$word' OR keywords LIKE '$word%' OR keywords LIKE '%$word%' OR keywords LIKE '%$word' OR keywords LIKE '$word')";
        }
    }
Note: It was tried in vbulletin 4.2.5 and PHP 7.4 version.

Thanks ChrisTERiS


Chris, I would be glad if I could solve this Coupons problem with your help.:cry:


Nice edit!
 

niho

Aspirant
Joined
Jan 19, 2020
Messages
17
Nice edit!
Hello Kyrie , would you like to look at the coupons problem and help me? :X3:

 
Top