1

(4 replies, posted in Feature requests)

HaHa

That worked Visman

We had enabled avators in phone view before
https://punbb.informer.com/forums/topic … questions/

So I was not able to do the first step but the second step worked and now the avatar and the post count is visible whick means my Thanks/Like is also visible.


Thank you for the help!!

2

(4 replies, posted in Feature requests)

Yeah, I have been trying for weeks using that method and have not been able to get it.

I have a lot of modifications to the Oxygen style and this is my last issue to solve so I don't want to install a 3rd party style that will probably have a whole set of it's own problems.

Thanks for the feedback, I will keep trying to see if I can get this somehow.

3

(4 replies, posted in Feature requests)

Hello everyone

I have a thanks feature installed and it displays just under the post count.
I get complaints from members that they cannot use the thanks feature without turning their phone sideways.

Since post count also does not display unless you turn the phone sideways I figure if there was a way to get the post count to display on mobile the thanks feature would as well because it shows up right under the post count.

So can anyone tell me how to get the post count to display on mobile?

I have been fiddling with this with no success.

@Visman that is perfect and it fixes the error log.

It took me a while to find the error and I thought the mod posted by @hacklover99 was working but when a member who did not have access to the forum visited the error was generated.


Thank you for the fix and may I suggest nobody install this unless you make the changes noted by @Visman

Everytime I implement this I get the following in my error log.

It only happens when members visit the index page that do not have access to the restricted forum



in /home/ca6413/public_html/index.php on line 155
[12-Jun-2021 20:39:34 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/ca6413/public_html/index.php on line 155


This is what my line 155 looks like

https://i.postimg.cc/3wJMzw0k/Picture0212.png



The error goes away when I change it back and remove hacklover99's changes.


It looks to me like there is a small error of some kind

Anyone have any ideas?

6

(12 replies, posted in Discussions)


Thank you, that explains everything

I thought I screwed up some of my modifications when these errors came to be but my webhost simply upgraded to php 7.2 causing me all these headaches.

When I get time I am going to install the visman version but first I will run it on a separate test board so I can take my time re-installing all my modifications.

@visman - you are a great help, we appreciate having you !!!

7

(12 replies, posted in Discussions)

All these errors went away when I changed my PHP version from 7.2 to 7.0

Looks like that is causing the button issue as well

So for now I am going to run on php 7.0 until there is a wider fix.

8

(12 replies, posted in Discussions)

https://i.postimg.cc/QCJmRCr5/Picture0056.png


When I use the button on this forum, I get this error.

9

(12 replies, posted in Discussions)

Any idea how to fix it?

I also notice this button causes an error on submit (also causes an error on punbb.informer.com)

https://i.postimg.cc/59Ftrp7f/Picture0053.png

10

(12 replies, posted in Discussions)

I think I found it

https://i.postimg.cc/3x6pbK2w/Picture0052.png

11

(12 replies, posted in Discussions)

Visman wrote:

You are showing me the code from the parser.php file. I told you to look into the code of the extension that adds code to the 'ps_do_bbcode_start' hook. Did you find any connected extensions with the 'ps_do_bbcode_start' hook? There can be more than one of them.

I searched the manifest file for every extension and did not find one instance (hook) of:

ps_do_bbcode_start

I did a ctrl find of every manifest file.

Any other place for me to look for this?

Was the manifest files the proper place to look?

12

(12 replies, posted in Discussions)

Line 750 starts with

$return = ($hook = get_hook('ps_do_bbcode_start')) ? eval($hook) : null;
    if ($return !== null)
        return $return;

The whole section of code looks like this...

//
// Convert BBCodes to their HTML equivalent
//
function do_bbcode($text, $is_signature = false)
{
    global $lang_common, $forum_user, $forum_config;

    $return = ($hook = get_hook('ps_do_bbcode_start')) ? eval($hook) : null;
    if ($return !== null)
        return $return;

    if (strpos($text, '[quote') !== false)
    {
        $text = preg_replace_callback(
            '#\[quote=(&\#039;|"|"|\'|)(.*?)\\1\]#', function($matches) {
global $lang_common;
return '</p><div class="quotebox"><cite>'.str_replace(array('[', '"'), array('&#91;', '"'), $matches[2])." ".$lang_common['wrote'].":</cite><blockquote><p>";
},
$text);
        $text = preg_replace('#\[quote\]\s*#', '</p><div class="quotebox"><blockquote><p>', $text);
        $text = preg_replace('#\s*\[\/quote\]#S', '</p></blockquote></div><p>', $text);
    }

    if (!$is_signature)
    {
        $pattern_callback[] = '%\[list(?:=([1a*]))?+\]((?:(?>.*?(?=\[list(?:=[1a*])?+\]|\[/list\]))|(?R))*)\[/list\]%is';
        $replace_callback[] = 'handle_list_tag($matches[2], $matches[1])';
    }

    $pattern[] = '#\[b\](.*?)\[/b\]#ms';
    $pattern[] = '#\[i\](.*?)\[/i\]#ms';
    $pattern[] = '#\[u\](.*?)\[/u\]#ms';
    $pattern[] = '#\[colou?r=([a-zA-Z]{3,20}|\#[0-9a-fA-F]{6}|\#[0-9a-fA-F]{3})](.*?)\[/colou?r\]#ms';
    $pattern[] = '#\[h\](.*?)\[/h\]#ms';

    $replace[] = '<strong>$matches[1]</strong>';
    $replace[] = '<em>$matches[1]</em>';
    $replace[] = '<span class=\"bbu\">$matches[1]</span>';
    $replace[] = '<span style=\"color: $matches[1]\">$matches[2]</span>';
    $replace[] = '</p><h5>$matches[1]</h5><p>';

    if (($is_signature && $forum_config['p_sig_img_tag'] == '1') || (!$is_signature && $forum_config['p_message_img_tag'] == '1'))
    {
        $pattern[] = '#\[img\]((ht|f)tps?://)([^\s<"]*?)\[/img\]#';
        $pattern[] = '#\[img=([^\[]*?)\]((ht|f)tps?://)([^\s<"]*?)\[/img\]#';
        if ($is_signature)
        {
            $replace[] = '".handle_img_tag($matches[1].$matches[3], true)."';
            $replace[] = '".handle_img_tag($matches[2].$matches[4], true, $matches[1])."';
        }
        else
        {
            $replace[] = '".handle_img_tag($matches[1].$matches[3], false)."';
            $replace[] = '".handle_img_tag($matches[2].$matches[4], false, $matches[1])."';
        }
    }

    $text = preg_replace_callback('#\[url\]([^\[]*?)\[/url\]#', 'callback_handle_url_nobb', $text);
    $text = preg_replace_callback('#\[url=([^\[]+?)\](.*?)\[/url\]#', 'callback_handle_url_nobb', $text);

    $pattern[] = '#\[email\]([^\[]*?)\[/email\]#';
    $pattern[] = '#\[email=([^\[]+?)\](.*?)\[/email\]#';

    $replace[] = '<a href=\"mailto:$matches[1]\">$matches[1]</a>';
    $replace[] = '<a href=\"mailto:$matches[1]\">$matches[2]</a>';

    $return = ($hook = get_hook('ps_do_bbcode_replace')) ? eval($hook) : null;
    if ($return !== null)
        return $return;

    $count = count($pattern);
    for ($i = 0; $i < $count; $i++) {
        $text = preg_replace_callback($pattern[$i], function($matches) use ($replace, $i) {
                return eval('return "'.$replace[$i].'";');
            }, $text);
    }
    
    $count = count($pattern_callback);
    for ($i = 0; $i < $count; $i++) {
        $text = preg_replace_callback($pattern_callback[$i], function($matches) use ($replace_callback, $i) {
            return eval('return '.$replace_callback[$i].';');
        }, $text);
    }
    $return = ($hook = get_hook('ps_do_bbcode_end')) ? eval($hook) : null;
    if ($return !== null)
        return $return;

    return $text;
}

13

(12 replies, posted in Discussions)

[12-Apr-2021 15:48:50 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/doca6413/public_html/include/parser.php(750) : eval()'d code on line 76

Here is what the file looks like

https://i.postimg.cc/WzTYbVfv/Picture0051.png


Any idea what is causing this error? it is logged hundreds of times

14

(8 replies, posted in PunBB 1.4 additions)

Is there something I can add into the extensions css?

15

(8 replies, posted in PunBB 1.4 additions)

I love this extension but the only issue I have is that the "thanks link" is under the post count where the avatar is located.

I don't mind that but on mobile it does not show the link unless you turn the phone sideways.


Is there any way I would be able to have the thanks link display on smaller screens?

Anyone that can help with that I would sincerely appreciate it.

16

(7 replies, posted in Feature requests)

Just for your information

This extension does interfere with this one
User Notification in Posts • Version 1.1.1.3 • Created by Daniel Rathjen


The notifications when someone does @member will not display for members if you have the announcement turned of for members.


Made no difference to me because I do not use the notification, I use the email notification but I thought I would mention it in case someone needed to know.

17

(7 replies, posted in PunBB 1.4 bug reports)

It is now two days later, this resolved the issue and I would consider it an official fix.

Thank you @Visman for your help regarding this matter.

18

(37 replies, posted in PunBB 1.4 additions)

This is my favorite extension, I changed it to "Like this Post" and I added a font heart after it.


https://i.postimg.cc/X7M98LF1/Picture0016.png


The only thing for me is that on mobile view the Thanks link (or in my case like link) is not visible unless you turn the phone sideways.

What would I have to add to get this to show on mobile?

19

(2 replies, posted in Discussions)

Visman, that worked perfectly..

I was trying to do this
https://punbb.informer.com/forums/post/158648/#p158648

I screwed it up bigtime because I removed some code from manifest.xml and when I refreshed the hooks things went down.

Your little fix worked and as soon as aI reinstalled the extension I redid the // in the config file and everything is working great.

20

(2 replies, posted in Discussions)

I was fooling around with the fancy alerts extension and removed some code from the manifest.xml file.

I the refreshed the hooks and obviously there was an error because now I get HTTP ERROR 500

I cannot go in and remove the extension because I cannot uninstall it.

I used the file manager to remove but somehow I have to remove the hooks.

Any suggestions

21

(7 replies, posted in PunBB 1.4 bug reports)

https://i.postimg.cc/FHHvMxNN/Picture0002.png

Success!!!!

I will check tomorrow morning if that worked and post back here

22

(40 replies, posted in Supported extensions)

So basically everything stripped out even the alert setting and only quote notification active

23

(7 replies, posted in PunBB 1.4 bug reports)

https://i.postimg.cc/XJLwhxQ9/Picture0001.png


Am here but stuck on how to get memory changed to MyISAM

24

(7 replies, posted in PunBB 1.4 bug reports)

Yikes, I have no idea how to do that, will have to do some research

25

(4 replies, posted in PunBB 1.4 additions)

Thank you, updated it