I make trendind topic in top just like Twitter

Saqib Saleem Posted in Component Development 3 years ago

Hello everyone i was make trending topics like twitter plugin for ossn i installed its good but its not working well anyone guide me and i make its a good plugin

Replies
Breton Rafael [redcrested.net] Replied 3 years ago

Take a look at https://www.opensource-socialnetwork.org/wiki/view/737/how-to-write-a-simple-component-for-ossn page to understand how components working and improve your code. Also, following these directives https://www.opensource-socialnetwork.org/wiki/view/739/naming-convention-for-components-and-themes is helpfull too.

About your component, I find the init calling com_AdsenseExample_init() function, but the function is named com_Trends_init(). So this is the reason to your component wont loaded. Second, there's no loading command to your OSSN_TRENDZ file. Third, OSSN_TRENDZ file needs a PHP extension. Finally, make review process more easy for community putting uncompress files into your repo. It's a annoying download file, uncompress files and open VS Code just to help.

Indonesian Arsalan Shah Replied 3 years ago

Hello, sire? expecting some response here too.

Indonesian Arsalan Shah Replied 3 years ago

Saqib the file you posted is a AdsenseExample component with nothing inside that shows you worked on trends feature there is nothing inside that component. Community can only assist you to look into your component not writing a solution.

pk Saqib Saleem Replied 3 years ago

https://github.com/saqib1450/ossn-twiter-tranding
i add in github please check all guys and guide me how i make perfect

Breton Rafael [redcrested.net] Replied 3 years ago

Don't forget to share with us your repo, please.

pk Saqib Saleem Replied 3 years ago

Ok I upload on github

Indonesian Arsalan Shah Replied 3 years ago

Upload it to github

pk Saqib Saleem Replied 3 years ago

i dont know how to send code or full plugin here in community

pk Saqib Saleem Replied 3 years ago

enter image description here

pk Saqib Saleem Replied 3 years ago

enter image description here