Author Topic: Widget function in external pages  (Read 164 times)

onlineservices

  • Veteran Member
  • *****
  • Posts: 238
  • Karma: +0/-0
Widget function in external pages
« on: December 23, 2017, 06:56:19 AM »
I have an idea to add the member or photo widget in external pages of the same domain. Will it work out ?

I am using etano in sub-folder Example - http://www.example.com/etano/

Quote
<!--widget="members(array('mode'=>'new','total'=>39))"-->

Now i would like to show the members widget in external pages (that is out of etano folder)

http://www.example.com/  or http://www.example.com/recent-visitors.html

Is it possible?

Help appreciated.

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3089
  • Karma: +210/-7
    • Maverick Webworks
Re: Widget function in external pages
« Reply #1 on: December 23, 2017, 08:22:01 AM »

You can't simply use the existing widget code on another site and expect it to work.

It would require developing a special API (Application Programming Interface) which communicates with your server or site where Etano is hosted and retrieves all the necessary data required to display the widget. The interface on how the data is displayed on a third party site has to be also programmed into the API and special widget code is created that's used on the third party site.

API's are what sites like Google uses to display ads or other types functions on third party sites.

The type of API widget you want to create will be rather complex and would require finding or hiring a programmer that's familiar with or specializes in API development.

You must also be careful using API's that fetches data from your server as it creates more connections to your database which is limited on shared hosting.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

onlineservices

  • Veteran Member
  • *****
  • Posts: 238
  • Karma: +0/-0
Re: Widget function in external pages
« Reply #2 on: December 23, 2017, 09:39:30 AM »
Thanks for the Nice Information. Well said.