HTML code similar to External Widget but for AD widget instead?
+2
SLGray
Mace Hathaway
6 posters
Page 1 of 1
HTML code similar to External Widget but for AD widget instead?
Technical Details
Forum version : #ModernBB
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
When the problem appeared : only recently
Forum link : caboodlz.forumotion.com/forum
Description of problem
Hello.Thanks in advance for any help.
modernbb
Caboodlz.forumotion.com
I was hoping to locate the html code for my "AD WIDGET"
I would like to be able to embed that widget, just like the latest topics 'external' forumotion widget. I have the later embedded on my site, and I would love to embed my scrolling AD Widget in the same manner, on my home site ..off site from forumotion.
Ive searched the back side of my admin and have had no luck finding that code anywhere.
The fact that the ads kind of already 'post as topics', makes it seem like it should be fairly easy to use the other module in the same manner as the external widget, or maybe alter the code title{Latest+Discussion} to point at the AD widget instead of the latest topics widget?
Thanks for the info. I look forward to hearing your opinions.-Mace
Mace Hathaway- Forumember
- Posts : 30
Reputation : 1
Language : English
Re: HTML code similar to External Widget but for AD widget instead?
Do you mean the top widget (classified ads) on the left side?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Mace Hathaway likes this post
Mace Hathaway- Forumember
- Posts : 30
Reputation : 1
Language : English
Re: HTML code similar to External Widget but for AD widget instead?
Embedding an Active Directory (AD) widget in HTML involves using Microsoft Graph API. Here's a concise example:
The actual code would depend on the specific requirements of the AD widget you're trying to embed. It's crucial to refer to the Microsoft Graph API documentation and the documentation of the specific widget or component you are working with.
This example assumes a simple scenario, and you might need additional configurations and considerations based on your specific use case. Ensure that your application complies with security best practices, especially when dealing with authentication and authorization.
Here are some best HTML online learning platforms:
1. W3School 2. Iqra Technology 3. JavatPoint
- Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AD Widget</title>
</head>
<body>
<div id="ad-widget-container"></div>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script>
$(document).ready(function () {
// Use Microsoft Graph API for AD integration
// Authentication and API call logic here
// Example: https://docs.microsoft.com/en-us/graph/tutorials/javascript
});
</script>
</body>
</html>
The actual code would depend on the specific requirements of the AD widget you're trying to embed. It's crucial to refer to the Microsoft Graph API documentation and the documentation of the specific widget or component you are working with.
This example assumes a simple scenario, and you might need additional configurations and considerations based on your specific use case. Ensure that your application complies with security best practices, especially when dealing with authentication and authorization.
Here are some best HTML online learning platforms:
1. W3School 2. Iqra Technology 3. JavatPoint
khanzain123- New Member
- Posts : 1
Reputation : 1
Language : English
Mace Hathaway and khanzain123 like this post
Re: HTML code similar to External Widget but for AD widget instead?
@khanzain123 as the user specified, AD is the classified ads widget by forumotion - not active directory as you intended
Mace Hathaway likes this post
Re: HTML code similar to External Widget but for AD widget instead?
if your request is completed or answered, please mark it as Solved.
Re: HTML code similar to External Widget but for AD widget instead?
It is not unfortunately....I have not had any replys with the info I'm looking for. I didn't want to repost to bump it, so I've just been waiting for someone to actually come up with a definitive yes, or no. Thanks.
Mace Hathaway- Forumember
- Posts : 30
Reputation : 1
Language : English
Re: HTML code similar to External Widget but for AD widget instead?
@Mace Hathaway Sadly there isn't a direct option to integrate it as you would like to
The only way to probably do what you'd like to do is to display the widget somewhere on your forum, and then "load it" from an external website. But the widget will always have to be visible somewhere on the forum, otherwise it cannot be retrieved.
Could this be an option?
The only way to probably do what you'd like to do is to display the widget somewhere on your forum, and then "load it" from an external website. But the widget will always have to be visible somewhere on the forum, otherwise it cannot be retrieved.
Could this be an option?
Re: HTML code similar to External Widget but for AD widget instead?
Thank you Niko....yes that would def be an option....I would love to figure out how to do that...please and thank you!
Mace Hathaway- Forumember
- Posts : 30
Reputation : 1
Language : English
Re: HTML code similar to External Widget but for AD widget instead?
@Mace Hathaway can you add the widget on your forum, and give me the link to the page where it is?
Re: HTML code similar to External Widget but for AD widget instead?
Thank you Niko....yes I will
I'm a traveling musician, I'm away from my computer a ton, and I'm just returning home...I do have it on my site already, so I just need to get you the link
Thanks for your response, and sorry on my slow response.
I'm a traveling musician, I'm away from my computer a ton, and I'm just returning home...I do have it on my site already, so I just need to get you the link
Thanks for your response, and sorry on my slow response.
Mace Hathaway- Forumember
- Posts : 30
Reputation : 1
Language : English
Re: HTML code similar to External Widget but for AD widget instead?
The Widget is in a couple plces at my site, but the easiest it is on my home page actually.... caboodlz.com which is just a redirect to the forumotion page caboodlz.forumotion.com
Classified AD Widget in the top left corner.
I already use the forumotion external widget....on my home music website mace-hathaway.com and I'd love it If I could also use the Classified AD widget there as well.
Thanks for your help...lots of driving and shows in the next few days, so I likely will not get back to this thread until next week.
Mace
Classified AD Widget in the top left corner.
I already use the forumotion external widget....on my home music website mace-hathaway.com and I'd love it If I could also use the Classified AD widget there as well.
Thanks for your help...lots of driving and shows in the next few days, so I likely will not get back to this thread until next week.
Mace
Mace Hathaway- Forumember
- Posts : 30
Reputation : 1
Language : English
Re: HTML code similar to External Widget but for AD widget instead?
Good afternoon!
The Ads widget code is not available to forum administrators.
The widgets we're talking about in this topic have different implementations.
You insert a link to the topics widget in the iframe block and it works without problems, but the ads widget doesn't have a link and the widget can only be loaded via JS.
I think we may be running into a CORS security policy that prohibits sharing data between sites of different domains.
Try pasting this code on your site. This is a trial code that loads the first slide in the ad widget.
If the CORS policy is not violated, you should get this result or something like that:
Ive searched the back side of my admin and have had no luck finding that code anywhere.
The Ads widget code is not available to forum administrators.
I already use the forumotion external widget....on my home music website
The widgets we're talking about in this topic have different implementations.
You insert a link to the topics widget in the iframe block and it works without problems, but the ads widget doesn't have a link and the widget can only be loaded via JS.
I think we may be running into a CORS security policy that prohibits sharing data between sites of different domains.
Try pasting this code on your site. This is a trial code that loads the first slide in the ad widget.
- Code:
<div class="ads_section">
</div>
<script>
window.addEventListener('load', function() {
const adsSection = document.querySelector('.ads_section');
$.ajax({
url: 'https://caboodlz.forumotion.com',
method: "GET",
data: 'topiclist',
dataType: "html",
success: function (data) {
let div = document.createElement('div');
div.innerHTML = data;
let find_el = div.querySelector('.module.borderwrap .box-content');
adsSection.append(find_el);
},
error: function (xhr, status, error) {
console.log("AJAX request error:" + error);
},
});
});
</script>
If the CORS policy is not violated, you should get this result or something like that:
Razor12345- Support Moderator
- Posts : 1477
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine
Sir Chivas™ and TheCrow like this post
Similar topics
» Can someone give me a code similar to the "About Forumotion" widget on the Portal of this site
» Created a widget but when I paste the code to embed it and add to our forum it just shows the code in the widget box.
» HTML code in a widget
» i need top posts widget html code plz ........
» Need a html code for topics widget
» Created a widget but when I paste the code to embed it and add to our forum it just shows the code in the widget box.
» HTML code in a widget
» i need top posts widget html code plz ........
» Need a html code for topics widget
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum