Bookworm addon for Roster 1.7

The WoWRoster interface for the WoW AddOn, Bookworm

Moderator: Sahasrahla

Re: Bookworm addon for Roster 1.7

Postby PoloDude » Mon Jul 24, 2006 6:18 am

I've saved Sahasrahla some work by changing the following things:
*Added trigger.php minimizes changes in the update.php
*Added function.php with functions for trigger.php
*Added install_db.php so tables get installed automaticly


Only thing you'll have to do:

Open /admin/update.php and here's a long list of modifications to allow it to accept a new file...

Search for:
Code: Select all
// Files that we accept for upload
$filefields[] = 'CharacterProfiler.lua';
$filefields[] = 'PvPLog.lua'

Add after:
Code: Select all
$filefields[] = 'Bookworm.lua'


Search for:
Code: Select all
                // If pvp data is there, assign it to $uploadData['PvpLogData']
                
if( isset($data['PurgeLogData']) )
                {
                    
$uploadData['PvpLogData'] = $data;
                }

                
// If CP data is there, assign it to $uploadData['myProfile']
                
if( isset($data['myProfile']) )
                {
                    
$uploadData['myProfile'] = $data['myProfile'];
                } 

Add after:
Code: Select all
                // If Bookworm data is there, assign it to $uploadData['Bookworm']
                
if( isset($data['BookwormBooks']) )
                {
                    
$uploadData['BookwormBooks'] = $data['BookwormBooks'];
                } 


If it's ok by Sahasrahla i will upload my modifications here, together with the modified update.php

Grtz
[url=http://eu.wowarmory.com/character-sheet.xml?r=Emerald+Dream&n=Calaglin]Calaglin @ Emerald Dream [EU]
User avatar
PoloDude
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 134
Joined: Tue Jul 04, 2006 3:17 pm
Location: Belgium - Gent

Re: Bookworm addon for Roster 1.7

Postby Sahasrahla » Mon Jul 24, 2006 7:29 pm

PoloDude wrote:If it's ok by Sahasrahla i will upload my modifications here, together with the modified update.php


Please do, for the good of the community... I obviously don't have as much free time as I'd like to work on this, but I'm glad the mod is getting some attention, because it has a lot of potential.
User avatar
Sahasrahla
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 46
Joined: Tue Jul 04, 2006 1:53 pm
Location: Branson, MO, USA

Re: Bookworm addon for Roster 1.7

Postby Ansgar » Mon Jul 24, 2006 9:53 pm

I tried to use this on my roster ... but in French. No problem at all to import everything in the roster database. I have some problems in order to view it using the interface.

Have a look at the following URL:

http://www.alliance-reunifiee.com/roste ... -508-18077

I have some parasite '\n' character in the beginning of each line and I'm missing the images (in this case this is a libram).

I supply the Bookworm.lua file (the DB contents look the same as the lua file)

Can someone help me with this?

Ansgar
Attachments
bookworm.lua
(3.58 KiB) Downloaded 92 times
Ansgar
WR.net Apprentice
WR.net Apprentice
 
Posts: 26
Joined: Wed Jul 05, 2006 7:12 pm

Re: Bookworm addon for Roster 1.7

Postby Averen » Mon Jul 24, 2006 10:25 pm

Averen wrote:In the file /admin/update.php in the function processBookworm($bookwormdata){} change the following line.

Code: Select all
$page_text = $bookVars["page$i"];


to

Code: Select all
$page_text = preg_replace(array("/\\\\n/","/\\n/"), "<br />", $bookVars["page$i"]);


Hope this helps.


This only changes the new ones uploaded, this second edit should fix exsisting books regarding the /n problem.

In the file addons/bookworm.php, approx line 116

Change

Code: Select all
$content .= '<div class="book_default">'.nl2br($text).'</div>';


to

Code: Select all
$content .= '<div class="book_default">'.preg_replace(array("/\\\\n/","/\\n/"), "<br />", $text).'</div>';


Hope this helps.
Last edited by Averen on Mon Jul 24, 2006 10:30 pm, edited 1 time in total.
User avatar
Averen
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 152
Joined: Thu Jul 20, 2006 5:18 am

Re: Bookworm addon for Roster 1.7

Postby PoloDude » Mon Jul 24, 2006 11:09 pm

I've saved Sahasrahla some work by changing the following things:
*Added trigger.php minimizes changes in the update.php
*Added function.php with functions for trigger.php
*Added install_db.php so tables get installed automaticly
*Added "/n"-fixes


Only thing you'll have to do:

Place bookworm in your addon-folder :d (as from roster 1.7.1)

Addon attached by post

Grtz
Attachments
bookworm.zip
Roster addon, add in addon-folder
(6.56 KiB) Downloaded 156 times
Last edited by PoloDude on Mon Oct 23, 2006 1:14 am, edited 1 time in total.
[url=http://eu.wowarmory.com/character-sheet.xml?r=Emerald+Dream&n=Calaglin]Calaglin @ Emerald Dream [EU]
User avatar
PoloDude
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 134
Joined: Tue Jul 04, 2006 3:17 pm
Location: Belgium - Gent

Bookworm addon for Roster 1.7

Postby SethDeBlade » Tue Jul 25, 2006 12:39 am

thanks Averen. your code works great :)
User avatar
SethDeBlade
WR.net Expert
WR.net Expert
 
Posts: 192
Joined: Thu Jul 06, 2006 1:02 am
Location: Germany

Re: Bookworm addon for Roster 1.7

Postby Ansgar » Tue Jul 25, 2006 10:45 pm

I still have a problem with the images. If you have libram in your inventory, those are also included in the bookworm with some reference to pictures that are not present in the images folder of roster.

Does someone have a solution for this?
Ansgar
WR.net Apprentice
WR.net Apprentice
 
Posts: 26
Joined: Wed Jul 05, 2006 7:12 pm

Bookworm addon for Roster 1.7

Postby Averen » Tue Jul 25, 2006 11:30 pm

Can you show me what it's meant to look like, eg an in-game screenshot of each page?
User avatar
Averen
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 152
Joined: Thu Jul 20, 2006 5:18 am

Bookworm addon for Roster 1.7

Postby SethDeBlade » Fri Aug 11, 2006 6:54 am

i found a new book and it includes "

it's displayed as \"

how can we fix that?

see here
User avatar
SethDeBlade
WR.net Expert
WR.net Expert
 
Posts: 192
Joined: Thu Jul 06, 2006 1:02 am
Location: Germany

Re: Bookworm addon for Roster 1.7

Postby Nenaisu » Sun Sep 03, 2006 10:52 pm

SethDeBlade wrote:
Code: Select all
$wordings['deDE']['bookworm_addon'] = 'Bücherwurm';
$wordings['deDE']['booklist'] = 'Wähle ein Buch aus:';
$wordings['deDE']['back_to_booklist'] = 'Zurück zur Buchliste';
$wordings['deDE']['book_title'] = 'Titel';
$wordings['deDE']['found_by'] = 'Gefunden durch';
$wordings['deDE']['location'] = 'Fundort';
$wordings['deDE']['num_pages'] = '# Seiten';


here the german translation. Do the stecialchars need uft-8 coding or is html-coding ok?

btw works great. but some book have /n in every beginning of a new line. is this an "error" bei wow-addon or rosteraddon??


It need special uft-8 coding in my case. I changed the localisation file in this way:

$wordings['deDE']['bookworm_addon'] = 'Bücherwurm';
$wordings['deDE']['booklist'] = 'Wähle ein Buch aus:';
$wordings['deDE']['back_to_booklist'] = 'Zurück zur Buchliste';
$wordings['deDE']['book_title'] = 'Titel';
$wordings['deDE']['found_by'] = 'Gefunden durch';
$wordings['deDE']['location'] = 'Fundort';
$wordings['deDE']['num_pages'] = '# Seiten';
Image
User avatar
Nenaisu
WR.net Apprentice
WR.net Apprentice
 
Posts: 21
Joined: Fri Aug 04, 2006 2:40 am
Location: Germany

Re: Bookworm addon for Roster 1.7

Postby Kasch » Sat Sep 30, 2006 7:01 am

Ok, I've added the tables to my database.
I've modified Update.PhP to accept Bookworm files.
I've installed the WoW mod Bookworm.

But...

Where do I actually get the mod for the roster? >.<
Did I miss it somewhere?
User avatar
Kasch
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Sat Sep 30, 2006 6:57 am

Bookworm addon for Roster 1.7

Postby Kasch » Sat Sep 30, 2006 7:05 am

omg.... I just found it. Nevermind. I got it from a few posts up by PoloDude. Thanks. But why is it in here, and not in the download section?
Image
User avatar
Kasch
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Sat Sep 30, 2006 6:57 am

Re: Bookworm addon for Roster 1.7

Postby Sahasrahla » Tue Oct 03, 2006 5:17 am

Kasch wrote:omg.... I just found it. Nevermind. I got it from a few posts up by PoloDude. Thanks. But why is it in here, and not in the download section?


Because nobody on this forum actually writes or maintains that WoW addon... The official URL to get the latest version is:

http://www.vigilance-committee.org/wow/downloads/
User avatar
Sahasrahla
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 46
Joined: Tue Jul 04, 2006 1:53 pm
Location: Branson, MO, USA

Bookworm addon for Roster 1.7

Postby PoloDude » Mon Oct 23, 2006 1:48 am

Are you ok with it if i put a download in the downloads Sahasrahla?
Got everything added besides the french localizations, so if any1 could provide those i can add the download since roster 1.7.1 works with the triggerfile i've implemented :p

This is where i need translation for in french:

$wordings['enUS']['bookworm_addon'] = 'Bookworm';
$wordings['enUS']['booklist'] = 'Select a book:';
$wordings['enUS']['back_to_booklist'] = 'Back to Book List';
$wordings['enUS']['book_title'] = 'Title';
$wordings['enUS']['found_by'] = 'Found By';
$wordings['enUS']['location'] = 'Location';
$wordings['enUS']['num_pages'] = '# of pages';
$wordings['enUS']['statistics'] = 'There are %d books with totally %d pages stored';
Last edited by PoloDude on Mon Oct 23, 2006 1:49 am, edited 1 time in total.
[url=http://eu.wowarmory.com/character-sheet.xml?r=Emerald+Dream&n=Calaglin]Calaglin @ Emerald Dream [EU]
User avatar
PoloDude
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 134
Joined: Tue Jul 04, 2006 3:17 pm
Location: Belgium - Gent

Re: Bookworm addon for Roster 1.7

Postby Sahasrahla » Tue Oct 24, 2006 7:30 pm

PoloDude wrote:Are you ok with it if i put a download in the downloads Sahasrahla?


Yes, please do :) When I 'created' this addon, I just wanted to give it a kick in the butt so somebody like you could pick it up and make it what it's supposed to be :thumleft: So many ppl were talking about it, and what they had done but nobody was posting anything... I figured if I posted the groundwork that somebody like you could pick it up and make a great addon from it, and you did just that :D
User avatar
Sahasrahla
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 46
Joined: Tue Jul 04, 2006 1:53 pm
Location: Branson, MO, USA

PreviousNext

Return to Bookworm

Who is online

Users browsing this forum: No registered users and 0 guests

cron