I need help in developing my plugin

TheDoggyBrad Software Lab Posted in Component Development 2 years ago

Links first before the context:
https://github.com/thedoggybrad/thedoggybrad/tree/main/experiments/speedtest (Folder View)
https://github.com/thedoggybrad/thedoggybrad/raw/main/experiments/speedtest.zip (ZIP)

I have gained a copy of https://www.opensource-socialnetwork.org/component/view/5254/google then I modified it and attempted to make a speedtest thing based on the same code. Now, I have some problems or rather big problems. It does not work, just a gray screen. I just need some help. I am willing to give credits for those who can help me make this component work. I mean everything matches, I have reviewed the code but still was not able to fix it. Also, the icon does not work.

History before I go to the gray screen:
1.) Before I edited the code it says HTTP Error 404.
2.) After matching the values of each declarations and folders it just show a gray screen.

Hope that anyone can help me.

Lastly, I am using the OSSN v 7.0.

Replies
ph TheDoggyBrad Software Lab Replied 2 years ago

I was able to fix it and it is now working, the issue is not this:
$guid = $pages;

but simply because something does not match, so I have just inserted the word and exactly "speeedtest" in every field that uses spte and etc. and it works. After a few more tests I shall publish it here on OSSN components projects.

ph TheDoggyBrad Software Lab Replied 2 years ago

Just got it from the component I modified which is the Google component.

Here's the link to that:
https://www.opensource-socialnetwork.org/component/view/5254/google

German Michael Zülsdorff Replied 2 years ago

You were asking for help.
So simply answer my question.
Why did you code that line?

$guid                = $pages;
ph TheDoggyBrad Software Lab Replied 2 years ago

Language: com:ossn:smt

ossnextendview('css/ossn.default', 'css/speedtest');
css file is speedtest.php

define('OSSNSpeedtest', ossn_route()->com . 'speedtest/');

    'url' => ossn_site_url('speedtest/spte'),

(spte is the spte.php file)

$title = ossn_print('com:ossn:smt');

                    $contents['content'] = ossn_plugin_view('pages/spte', array(                            'speedtest' => $guid

ID: speedtest

I think there is something wrong here. But does know what is that.

German Michael Zülsdorff Replied 2 years ago

Got a blank page, too. ;)
And actually your code is difficult to understand. To start in the com file with:

$guid                = $pages;

What is that good for? Please explain.

ph TheDoggyBrad Software Lab Replied 2 years ago

Sorry @Arsalan Shah for that.

Indonesian Arsalan Shah Replied 2 years ago

Please don't post your code here you already posted on above URL so wait for someone to look.

ph TheDoggyBrad Software Lab Replied 2 years ago

By the way:

root = speedtest

ph TheDoggyBrad Software Lab Replied 2 years ago

And there are all the codes of my component that I was trying to develop. Hope that someone can help me.

ph TheDoggyBrad Software Lab Replied 2 years ago

I do believe that there is something wrong on my ossn_com.php file but was not able to solve it yet or find it.
Why I have said that?

I redownloaded a new copy of the Google component and then I pasted my code from pages/spte.php to the pages/search.php of the Google component and surely it works on the modified Google component. But my fork (developing component) is not working entirely. I don't know why. I think I shall post the codes here.

Premium Version

Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.

$199 (Life Time)
Learn More

Other Questions