all gone...

Simple Machines Forum integration forum

all gone...

Postby Striper » Tue Jul 04, 2006 7:22 pm

...but probably someone still has a How-To anywhere to post here... and probably that file also covers how to integrate 2 different guilds in one SMF Forum !?!

i'd so appreciate it :)

best,

Striper
User avatar
Striper
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Tue Jul 04, 2006 7:06 pm
Location: Germany

all gone...

Postby Brakdûr » Tue Jul 04, 2006 8:33 pm

I don´t get you.

What would you like to do?

Integrating the roster in SMF?

Greetings
User avatar
Brakdûr
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Tue Jul 04, 2006 4:07 pm

all gone...

Postby zillah » Fri Jul 07, 2006 5:33 pm

I know I would like to
zillah
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 04, 2006 7:00 pm

Re: all gone...

Postby figarotic » Tue Jul 11, 2006 1:14 pm

asylum.guildchart.dk is also looking forward to SMF integration, as this is our preferred forum. Really nice forum and always nice people coding even more on the good stuff.
Last edited by figarotic on Thu Mar 01, 2007 10:12 pm, edited 2 times in total.
User avatar
figarotic
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Sun Jul 09, 2006 4:31 am
Location: copenhagen, Denmark

all gone...

Postby Rantoul » Sun Aug 06, 2006 10:33 am

I use the smf forum and with a little tweaking and turning things off and using the custom actions mod you can kind of integrate it into the site. Have a look here

http://wow.nullstorm.com/guilds/direstraits

Click the Guild Roster Link
Rantoul
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Sun Aug 06, 2006 2:34 am

all gone...

Postby mrmuskrat » Thu Aug 10, 2006 9:40 am

Rantoul,
I like what you've done with your guild site. My wife and I are going to try integrating our roster with SMF after seeing your site. I like your idea of posting Blizzard's fan site disclaimer as a block (and implemented the same thing after seeing it).
User avatar
mrmuskrat
WR.net Journeyman
WR.net Journeyman
 
Posts: 117
Joined: Sat Jul 29, 2006 9:50 pm

Re: all gone...

Postby Danaki » Sat Aug 12, 2006 4:59 am

Rantoul wrote:I use the smf forum and with a little tweaking and turning things off and using the custom actions mod you can kind of integrate it into the site. Have a look here

http://wow.nullstorm.com/guilds/direstraits

Click the Guild Roster Link


I know it's been some time since this was posted, but can you tell me how you did this? I am trying to do the same thing but I cannot get the roster to come up. Thanks.
User avatar
Danaki
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Mon Jul 10, 2006 8:24 pm

all gone...

Postby mrmuskrat » Sat Aug 12, 2006 10:26 pm

It feels like such a hack but I put the roster in an iframe.
User avatar
mrmuskrat
WR.net Journeyman
WR.net Journeyman
 
Posts: 117
Joined: Sat Jul 29, 2006 9:50 pm

all gone...

Postby cyberbane » Mon Aug 14, 2006 3:51 pm

I am quite new to iFrames and dont understand them well(at all). could you tell me how you did it?

Cheers,
User avatar
cyberbane
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Mon Jul 10, 2006 6:35 am

all gone...

Postby mrmuskrat » Mon Aug 14, 2006 6:20 pm

I copied the iframe that Rantoul used in his site. ;)

It's not perfect (siggen's config pages get clipped a bit) but it works well for most things.

I installed the SMF Custom Actions mod and created an action for the roster of type HTML. In the code box I used the following:
Code: Select all
<iframe SRC="http://website/roster/" width="100%" height="3000"
align="center"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>


Good luck!
User avatar
mrmuskrat
WR.net Journeyman
WR.net Journeyman
 
Posts: 117
Joined: Sat Jul 29, 2006 9:50 pm

all gone...

Postby cyberbane » Wed Aug 16, 2006 3:20 am

Well I got there in the end. Had a hell of time working out what to do with Custom actions mod.

Until I noticed a new tab in ADMIN / FEATURES AND OPTIONS

once I had gone into the custom actions tab it all made sense.

It all seems to work fine now.

Thanks very much for your help :)
User avatar
cyberbane
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Mon Jul 10, 2006 6:35 am

Re: all gone...

Postby Haiduk » Thu Nov 23, 2006 5:30 am

If your not all too concerned with a full integration with SMF, you can use the Custom Action mod to display the WoW Roster in a dynamic iframe.

Plug this into a PHP Custom Action and yer set. It sets up a dynamic iframe that resizes itself based on its contents.

Code: Select all
global $scripturl, $boardurl;
echo '
   <script language="JavaScript" type="text/javascript"><!--
      function checkAll(onOff)
      {
         for (var i = 0; i< document.searchform.elements.length; i++)
         {
            if (document.searchform.elements[i].name.substr(0, 3) == "brd")
               document.searchform.elements[i].checked = onOff;
         }
      }
   // --></script>
   <form action="', $scripturl, '?action=search2" method="post" name="searchform" id="searchform">

 <script type="text/javascript"><!--

/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don\'t support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

// --></script>

      <table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">
         <tr>
            <td class="windowbg">
            <iframe name="myframe" id="myframe" src="'.$boardurl.'/roster/index.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:novisible; width:100%; display:none"></iframe>
            </td>
         </tr>
      </table>
   </form>';



I have been working on a full blown SMF bridge for WoW Roster, you can try that too but, as it is now, it requires a fresh install of wow roster.

This code uses the globals $scripturl and $boardurl but assumes you have installed WoW roster to a folder named 'roster' within your smf forums folder. Change the path to your roster as needed (near the bottom).
Last edited by Haiduk on Thu Nov 23, 2006 5:36 am, edited 1 time in total.
User avatar
Haiduk
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Mon Nov 20, 2006 10:07 am

Re: all gone...

Postby Gnomstah » Fri Jan 05, 2007 4:55 pm

Haiduk wrote:If your not all too concerned with a full integration with SMF, you can use the Custom Action mod to display the WoW Roster in a dynamic iframe.

Plug this into a PHP Custom Action and yer set. It sets up a dynamic iframe that resizes itself based on its contents.

Code: Select all
global $scripturl, $boardurl;
echo '
   <script language="JavaScript" type="text/javascript"><!--
      function checkAll(onOff)
      {
         for (var i = 0; i< document.searchform.elements.length; i++)
         {
            if (document.searchform.elements[i].name.substr(0, 3) == "brd")
               document.searchform.elements[i].checked = onOff;
         }
      }
   // --></script>
   <form action="', $scripturl, '?action=search2" method="post" name="searchform" id="searchform">

 <script type="text/javascript"><!--

/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don\'t support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

// --></script>

      <table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">
         <tr>
            <td class="windowbg">
            <iframe name="myframe" id="myframe" src="'.$boardurl.'/roster/index.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:novisible; width:100%; display:none"></iframe>
            </td>
         </tr>
      </table>
   </form>';




I'm trying to get this dynamic iframe to work with another external page with no luck.
the width is ok, but the height is stuck at around 2cm.
any hints how to solve this ?
User avatar
Gnomstah
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Thu Jul 06, 2006 1:09 pm
Location: Germany

Re: all gone...

Postby Haiduk » Tue Jan 09, 2007 7:07 am

Make sure the URL on this line points to the script yer after.

Code: Select all
<iframe name="myframe" id="myframe" src="'.$boardurl.'/roster/index.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:novisible; width:100%; display:none"></iframe>


(this line is very near the bottom)
Last edited by Haiduk on Tue Jan 09, 2007 7:07 am, edited 1 time in total.
User avatar
Haiduk
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Mon Nov 20, 2006 10:07 am

all gone...

Postby Ohlo » Tue Jun 12, 2007 5:01 pm

Can anyone offer insight into how to modify the menu options in SMF to show a "Roster" button?

I've been messing around with it and have created a blank menu option that loads the roster but I cannot get it to display "roster" on the button.
Image
User avatar
Ohlo
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Tue Nov 28, 2006 8:59 am
Location: Knoxville, TN

Next

Return to SMF

Who is online

Users browsing this forum: No registered users and 0 guests

cron