EZPortal Block - Realm Status [How-to included]

phpBB integration forum

EZPortal Block - Realm Status [How-to included]

Postby IllusoryThrall » Wed May 16, 2007 4:34 pm

I know it's possible, I've seen it done. Now... The only question .. is how.

Anyone?
Last edited by IllusoryThrall on Thu May 17, 2007 6:11 pm, edited 1 time in total.
User avatar
IllusoryThrall
WR.net Apprentice
WR.net Apprentice
 
Posts: 22
Joined: Mon May 14, 2007 6:11 pm

EZPortal Block - Realm Status

Postby PleegWat » Wed May 16, 2007 10:22 pm

Put realmstatus in image mode, if it isn't already. Then check on the roster page what the link to it is (the whole thing should be one autogenerated image). Link to that.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: EZPortal Block - Realm Status

Postby IllusoryThrall » Thu May 17, 2007 8:07 am

lol thanks. too bad that didn't occur to me .. /smacks forehead. too much php coding lately.. the easy route didn't occur to me :thumright:
User avatar
IllusoryThrall
WR.net Apprentice
WR.net Apprentice
 
Posts: 22
Joined: Mon May 14, 2007 6:11 pm

Re: EZPortal Block - Realm Status

Postby IllusoryThrall » Thu May 17, 2007 8:46 am

for those wanting to do this.. here's EXACTLY what I did. and yes, it works.

~~FYI: I have my roster and my phpBB installed on the same directory, which allows them to integrate a bit easier. this required renaming index.php and search.php in the roster, and changing a couple links to those files in menu.php (for the index) and indexsearch.php (for search.php). However, I think this method should work even without being on the same directory.

## Pre-edting, go to your roster homepage... do a "View Source" and go find the realm status image link. it'll look something like this:

<td rowspan="2" valign="top" class="rowright"><img alt="WoW Server Status" src="http://www.your-roster-url-here.com/realmstatus.php" /></td> </tr>

## OPEN portal.php

## FIND

//
// END: Avatar On Index MOD
//

## ADD AFTER

//
// Begin Realm Status Block

$realm_img = '<img alt="WoW Server Status" src="http://mnm-guild.com/realmstatus.php" />';

//
// End Realm Status Block

## FIND

// Recent Topics
'L_RECENT_TOPICS' => $lang['Recent_topics'],

## ADD AFTER

// Realm block
'L_REALM_STATUS' => $lang['Realm_status'],
'REALM_STATUS_IMG' => $realm_img,

## OPEN templates/whatever template you're using/portal_body.tpl

## FIND
## wherever you want to put the block.. i suggest either left or right side columns..

## ADD

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<TR>
<td class="catHead" height="25"><span class="cattitle"><b>{L_REALM_STATUS}</b></span></td>
</TR>
<TR>
<td class="row1" height="25"><P><span class="genmed"><br /><center>{REALM_STATUS_IMG}</center><br /></span></td>
</TR>
</table>

## OPEN language/lang_english/lang_main.php

## FIND (which was added by installing EZ Portal)

$lang['Post_your_comment'] = 'Post your comment';
$lang['Welcome'] = 'Welcome';

## ADD AFTER

$lang['Realm_status'] = 'Realm Status'; // Realm Status

## SAVE and UPLOAD all files. .. Enjoy!
Last edited by IllusoryThrall on Thu May 17, 2007 8:47 am, edited 1 time in total.
User avatar
IllusoryThrall
WR.net Apprentice
WR.net Apprentice
 
Posts: 22
Joined: Mon May 14, 2007 6:11 pm

EZPortal Block - Realm Status [How-to included]

Postby Eldest_One » Thu Mar 06, 2008 5:54 am

Thank you very much for this tutorial it worked like a charm. :)
Eldest_One
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Thu Aug 09, 2007 11:13 pm


Return to phpBB

Who is online

Users browsing this forum: No registered users and 0 guests

cron