The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Forumotion and IPB

3 posters

Go down

In progress Forumotion and IPB

Post by Eugeo Igvalt July 13th 2015, 3:02 am

Hello Everyone, it has been a long while since I have visited here or even posted. 

I have a question regarding both Forumotion and IPB.  I have an IPS Hosted forum now, However I have affiliated with some Forumotion forums and I'm Administrator in some of them. 

I wanted to know how can I make it possible for content that's made on a Forumotion Forum appears in a Section I set up in my IPB Forum. 

Let's say I make a thread in a Forumotion Forum, How would that thread also appear in my IPB forum. I've seen this done with other sites but I dunno what it's called. I do know it's possible, however I do not know how to do it So I would like some help. 

thanks in advance.
Eugeo Igvalt
Eugeo Igvalt
Forumember

Male Posts : 289
Reputation : 17
Language : EN, SPA
Location : Puerto Rico

http://www.NewbForums.com

Back to top Go down

In progress Re: Forumotion and IPB

Post by JScript July 13th 2015, 8:08 am

@Eugeo Ayano
This is possible, you would have to use Cross Domain Ajax! Below is a code that I did for communication between different domains:
Code:

/*******************************************************************************************************
 * Application: jQuery.ajaxCORS
 * Description: Cross Domain Ajax.
 * Version: RC1
 * Using: query.yahooapis.com, based on James Padolsey (http://james.padolsey.com) project
 * Made and Optimizations by JScript - 2014/12/13
 * Copyright (c) 2014 JScript <jscriptbrasil at live dot com>
 * This work is free. You can redistribute it and/or modify it
 * under the terms of the WTFPL, Version 2
 *******************************************************************************************************/
jQuery.ajaxCORS = (function(_cors) {
   var protocol = location.protocol,
      hostname = location.hostname,
      patt = RegExp(protocol + '//' + hostname),
      YQL = 'http' + (/^https/.test(protocol) ? 's' : '') + '://query.yahooapis.com/v1/public/yql?callback=?',
      query = 'select * from html where url="{URL}" and xpath="*"';

   function isExternal(url) {
      return !patt.test(url) && /:\/\//.test(url);
   }
   return function(Obj) {
      var url = Obj.url;

      if (/get/i.test(Obj.type) && !/json/i.test(Obj.dataType) && isExternal(url)) {
         // Manipulate options so that JSONP-x request is made to YQL
         Obj.url = YQL;
         Obj.dataType = 'json';
         Obj.data = {
            q: query.replace(
               '{URL}',
               url + (Obj.data ?
                  (/\?/.test(url) ? '&' : '?') + jQuery.param(Obj.data) : '')
            ),
            format: 'xml'
         };
         // Since it's a JSONP request, then complete === success
         if (!Obj.success && Obj.complete) {
            Obj.success = Obj.complete;
            delete Obj.complete;
         }
         Obj.success = (function(_success) {
            return function(data) {
               if (_success) {
                  // Fake XHR callback.
                  _success.call(this, {
                     responseText: (data.results[0] || '')
                        // YQL screws with tag <script>, then get rid of them...
                        .replace(/<script[^>]+?\/>|<script(.|\s)*?\/script>/gi, '')
                  }, 'success');
               }
            };
         })(Obj.success);
      }
      return _cors.apply(this, arguments);
   };
})(jQuery.ajax);

Example of use:
Code:

console.clear();
$.ajaxCORS({
   type: 'GET',
   url: 'Your_URL',
   success: function(data) {
      console.log(data);
   }
});

But I realized that you need the code for IPBoard platform, in this case I can not help you because here is only for Forumotion!

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: Forumotion and IPB

Post by Eugeo Igvalt July 13th 2015, 6:32 pm

Ok, I suppose I would go to IPB's support forum and ask them for their code. That's not problem. This code you gave me it's a Javascript code right? I insert it in the Javascript area of the ACP? Also what would I choose? In all Pages, In the topics? etc and how would I edit the code what would I need to insert
Eugeo Igvalt
Eugeo Igvalt
Forumember

Male Posts : 289
Reputation : 17
Language : EN, SPA
Location : Puerto Rico

http://www.NewbForums.com

Back to top Go down

In progress Re: Forumotion and IPB

Post by Eugeo Igvalt July 14th 2015, 5:28 pm

@Jscript , I got a response from IPB's support Forum http://prntscr.com/7slqw8 Does Forumotion have an RSS export? I know IPS does but I dunno much about FM
Eugeo Igvalt
Eugeo Igvalt
Forumember

Male Posts : 289
Reputation : 17
Language : EN, SPA
Location : Puerto Rico

http://www.NewbForums.com

Back to top Go down

In progress Re: Forumotion and IPB

Post by Sir Chivas™ July 14th 2015, 5:40 pm

Eugeo Igvalt wrote:Ok, I suppose I would go to IPB's support forum and ask them for their code. That's not problem. This code you gave me it's a Javascript code right? I insert it in the Javascript area of the ACP? Also what would I choose? In all Pages, In the topics? etc and how would I edit the code what would I need to insert

Eugeo Igvalt wrote:@Jscript , I got a response from IPB's support Forum http://prntscr.com/7slqw8 Does Forumotion have an RSS export? I know IPS does but I dunno much about FM



Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead!
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6965
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: Forumotion and IPB

Post by JScript July 15th 2015, 12:05 am

@Eugeo Igvalt
The code that I posted was just one example of communication between different domains!
And as you need to read Forumotion's topics to IPB, you will have to adapt a few things in the code to make it work in forums IPB.

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum