[REL] - Next Raids Block (Raidplanner|EQDKP+)
Posted: 9. August 2009 13:31
MOD: Next Raids Block V.1.
Description: Fetch data from EQDKP+ database and the raidplanner plugin, so it displays the next 5 upcoming events in a portal block. Clickable link on the event name, that takes you into the raidplanner page for that particular event, plus it shows how many confirmed members that particular raid has.
Version: 1.0.0
Installation Level: Easy
Installation Time: ~15 minutes
Author Notes: This is the first release, and I currently have it working both on my kin's live website, and my test portal. So it should work granted you change everything I tell you to change. This is a custom script that we made from scratch, so the code is mostly tailored to our website, but a quick modification here and there, could get it to work in any website.
Must Have:
- Board3 Portal 1.0.3
- EQDKP+ Installation & RaidPlanner Plugin Active
Download:
http://www.lotro-latino.com/NextRaids.rar
Demo:
http://prueba.lotro-latino.com/portal.php
Installation Steps:
Files to Modify:
.../portal.php
.../styles/yourstyle/template/portal/portal_body.html
.../portal/block/db.php
.../portal/block/list_raid.php
New Files to Add:
.../portal/block/db.php
.../portal/block/list_raid.php
.../styles/yourstyle/template/portal/block/list_raid.html
==== Modifications ====
Open: .../portal.php
Find:
Add Before:
Open: .../styles/yourstyle/template/portal/portal_body.html
Add anywhere you want (whether right, left, or center section the include of the new block):
Special Notes:
- Before or after uploading the file "Db.php" you should edit it, and input the correct information for your database, the one that EQDKP+ uses.
- Open: .../portal/block/list_raid.php
Find:
In-Line Replace:
[With the address to your EQDKP installation - Have to do it in 2 places]
===================
Find:
Replace:
[With the address where your event ICONS are stored in your server.]
==================
- The file "list_raid.php" queries a particular prefix in the database (ours is lotroeqdkp_), so if you have a different one, you should open the file, and replace every instance of lotroeqdkp_ with whatever prefix your EQDKP+ database uses.
- Myself and my Kin are latinamericans, hence we speak spanish, so a few things in the script are in spanish, but the code is really so simple, that it shouldn't take people too much time to figure out what to change
If you have any questions, let me know.
Next on the list, is pulling a TOP 10 DKP list (Current Standings) and display it on a custom block such as this. I'll post it once it's done. Enjoy.
Description: Fetch data from EQDKP+ database and the raidplanner plugin, so it displays the next 5 upcoming events in a portal block. Clickable link on the event name, that takes you into the raidplanner page for that particular event, plus it shows how many confirmed members that particular raid has.
Version: 1.0.0
Installation Level: Easy
Installation Time: ~15 minutes
Author Notes: This is the first release, and I currently have it working both on my kin's live website, and my test portal. So it should work granted you change everything I tell you to change. This is a custom script that we made from scratch, so the code is mostly tailored to our website, but a quick modification here and there, could get it to work in any website.
Must Have:
- Board3 Portal 1.0.3
- EQDKP+ Installation & RaidPlanner Plugin Active
Download:
http://www.lotro-latino.com/NextRaids.rar
Demo:
http://prueba.lotro-latino.com/portal.php
Installation Steps:
Files to Modify:
.../portal.php
.../styles/yourstyle/template/portal/portal_body.html
.../portal/block/db.php
.../portal/block/list_raid.php
New Files to Add:
.../portal/block/db.php
.../portal/block/list_raid.php
.../styles/yourstyle/template/portal/block/list_raid.html
==== Modifications ====
Open: .../portal.php
Find:
Code: Select all
include($phpbb_root_path . 'portal/block/additional_blocks.'.$phpEx);
Code: Select all
//Listado de raids.
include($phpbb_root_path . 'portal/block/list_raid.'.$phpEx);
Add anywhere you want (whether right, left, or center section the include of the new block):
Code: Select all
<!-- INCLUDE portal/block/list_raid.html -->
- Before or after uploading the file "Db.php" you should edit it, and input the correct information for your database, the one that EQDKP+ uses.
Code: Select all
function ejequery ($consulta)
{
$serverSql="db host address here";
$usuario="db username";
$contrasena="db password";
$base="db name";
Find:
Code: Select all
http://www.lotro-latino.com/dkp/plugins/raidplan/viewraid.php?r=
Code: Select all
http://www.lotro-latino.com/dkp
===================
Find:
Code: Select all
http://www.lotro-latino.com/dkp/games/LOTRO/events/
[With the address where your event ICONS are stored in your server.]
==================
- The file "list_raid.php" queries a particular prefix in the database (ours is lotroeqdkp_), so if you have a different one, you should open the file, and replace every instance of lotroeqdkp_ with whatever prefix your EQDKP+ database uses.
- Myself and my Kin are latinamericans, hence we speak spanish, so a few things in the script are in spanish, but the code is really so simple, that it shouldn't take people too much time to figure out what to change
If you have any questions, let me know.
Next on the list, is pulling a TOP 10 DKP list (Current Standings) and display it on a custom block such as this. I'll post it once it's done. Enjoy.