Rabbitoshi Pet Mod

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Einste1n
Mitglied
Beiträge: 520
Registriert: 09.06.2004 18:54

Rabbitoshi Pet Mod

Beitrag von Einste1n »

Moin!

ich sitze seit Stunden an diesem Mod um die Fehler zu finden, allerdings bin ich nicht gerade ein PHP Guru, daher ist das nicht ganz einfach.
Aber hab mir ein paar fixes aus dem phpbb2 zusammengesucht, nur leider reicht das nicht.
Ich kann immer noch keine neuen items hinzufügen oder editieren, weils da einen Bug gibt und anscheinendet gibts da noch einen bug, wo man tausende pns kriegt von dem mod.
Ich wäre dankbar wenn mir jemand helfen könnte, weil der mod kommt riesig an! Hier mal der code zum ausbessern der ersten Fehler

PS : macht der Entwickler nicht mehr weiter ? Der thread ist im phpbb2 forum schon 4 wochen geschlossen :(

Code: Alles auswählen

############################################################# 
## MOD Title:        Update Mod for Rabbitoshi 
## MOD Author:        kv83 < vincent@wateringelaan.demon.nl > (Vincent Jünemann) http://www.greenfirezone.com 
## MOD Description: This mod will enhance the Rabbitoshi Mod 
##          aswell fix some bugs 
##           
## MOD Version:     0.0.2 
## 
## Installation Level: Easy 
## Installation Time:  10 Minutes 
## Files To Edit: 5 
##      rabbitoshi_shop.php 
##      tempaltes/subSilver/rabbitoshi_shop_body.tpl 
##      admin/admin_rabbitoshi.php 
##      admin/admin_rabbitoshi_shop.php 
##      rabbitoshi.php 
## 
## Included Files: 0 
## 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
##   The mod was written for personal use, but I felt that 
##   other people would find this handy aswell. 
##   Note that this is not a mod on it's own. It's required 
##   that you installed Rabbitoshi 1.0.0! 
##   The is what the mod will do: 
##      * The shop will get a new colum with power. 
##       * Items can have another name than the name of the image 
##        (Although the feature should be in 1.0.0 of Rabbitoshi 
##                            * The items are now ordered on a better way 
##         it didn't worked right). 
##      * The bug with the edit pet (health=hunger) is fixed. 
##      * The hotel bug is fixed (I think) 
############################################################## 
## MOD History: 
## 
##   2004-06-29 - Version 0.0.2 
##      - Fixed a bug in the last update version in change for not ordering the shop on a new way. 
##   2004-06-25 - Version 0.0.1 
##      - Initial release 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
# 
#-----[ OPEN ]------------------------------------------ 
# 
rabbitoshi_shop.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
         if (!(file_exists("images/Rabbitoshi/$pic")) || !$pic ) 
# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
         if (!(file_exists($phpbb_root_path."images/Rabbitoshi/".$pic)) || !$pic ) 
# 
#-----[ FIND ]------------------------------------------ 
#    
   "PRIZE" =>  $rabbitoshi_shop[$k]['item_prize'], 
# 
#-----[ AFTER, ADD ]------------------------------------ 
# 
   "POWER" =>  $rabbitoshi_shop[$k]['item_power'], 
# 
#-----[ FIND ]------------------------------------------ 
#    
   'L_PRIZE'        => $lang['Rabbitoshi_shop_prize'], 
# 
#-----[ AFTER, ADD ]------------------------------------ 
# 
   'L_POWER'        => $lang['Rabbitoshi_shop_power'],    
# 
#-----[ OPEN ]------------------------------------------ 
# 
tempaltes/subSilver/rabbitoshi_shop_body.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
   <th class="thHead" align="center">{L_PRIZE}</th> 
# 
#-----[ AFTER, ADD ]------------------------------------ 
# 
   <th class="thHead" align="center">{L_POWER}</th> 
# 
#-----[ FIND ]------------------------------------------ 
# 
   <td class="{items.ROW_CLASS}" align="center"><span class="gensmall">{items.PRIZE}</span></td> 
# 
#-----[ AFTER, ADD ]------------------------------------ 
# 
   <td class="{items.ROW_CLASS}" align="center"><span class="gensmall">{items.POWER}</span></td> 
# 
#-----[ FIND ]------------------------------------------ 
# 
   <td class="row2" align="center" colspan="7" ><span class="gen">{L_OWNER_POINTS} : <b>{POINTS}</b> {L_POINTS}</td> 
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
7 
# 
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
# 
8 
# 
#-----[ FIND ]------------------------------------------ 
# 
      <td class="row3" align="center" colspan="7"><input type="submit" value="{L_ACTION}" name="shop_action" class="liteoption" /></td> 
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
7 
# 
#-----[ IN-LINE REPLACE WITH ]------------------------------------------ 
# 
8 
# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_rabbitoshi.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
"RABBITOSHI_RHEALTH" => $field_data['creature_max_hunger'], 
# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
"RABBITOSHI_RHEALTH" => $field_data['creature_max_health'], 
# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_rabbitoshi_shop.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
require($phpbb_root_path . 'extension.inc'); 
# 
#-----[ BEFORE, ADD ]------------------------------------ 
# 
$phpbb_root_path = "./../"; 
# 
#-----[ FIND ]------------------------------------------ 
# 
         if (!(file_exists("images/Rabbitoshi/$pic")) || !$pic ) 
         { 
            $pic = $rabbitoshi_shop[$i]['item_name'].'.gif'; 
         }          
# 
#-----[ REPLACE WITH ]---------------------------------- 
# 

# 
#-----[ FIND ]------------------------------------------ 
# 
         if (!(file_exists("images/Rabbitoshi/$pic")) || !$pic ) 
# 
#-----[ REPLACE WITH ]---------------------------------- 
# 
         if (!(file_exists($phpbb_root_path."images/Rabbitoshi/".$pic)) || !$pic ) 
# 
#-----[ OPEN ]------------------------------------------ 
# 
rabbitoshi.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
      if ( $Hotel_out ) 
      { 
# 
#-----[ AFTER, ADD ]------------------------------------ 
# 
         $sql = " SELECT creature_hotel 
            FROM " . RABBITOSHI_USERS_TABLE . " 
            WHERE owner_id = ".$userdata['user_id']; 
         if ( !($result = $db->sql_query($sql)) ) 
         { 
            message_die(CRITICAL_ERROR, 'Error Getting Rabbitishi Config!'); 
         } 
         while ( $row = $db->sql_fetchrow($result) ) 
         { 
            $time = $row['creature_hotel']; 
         } 
# 
#-----[ FIND ]------------------------------------------ 
# 
            SET creature_hotel = 0 
# 
#-----[ AFTER, ADD ]------------------------------------ 
# 
            SET onwer_last_visit = " .$time. " 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
# EoM
Einste1n
Mitglied
Beiträge: 520
Registriert: 09.06.2004 18:54

Beitrag von Einste1n »

hab da jetzt einige Bugs gefixt und alles eingedeutscht, also wenn intresse besteht pn an mich, oder gibts irgendwo nen kleinen web wo man solche files hosten lassen kann ?
Benutzeravatar
Amalthea
Mitglied
Beiträge: 28
Registriert: 31.07.2004 21:57
Wohnort: Wernau
Kontaktdaten:

Beitrag von Amalthea »

Der ursprüngliche Modder Dr_DLP hat die Weiterentwicklung aufgrund Zeitmangels eingestellt und diese Aufgabe an jemande anderen übertragen...
Der hat ein Supportforum für den Rabbitoshi MOD und den Advanced Dungeons and Dragons MOD aufgemacht....
Finden tut man es HIER
Ist allerdings ein englischsprachiges Forum, aber dort findet man eigentlich jede Hilfe die man brauchen kann wenn man Probleme hat mit dem MOD

Was den Webspace angeht, einfach mal nach Free Webspace googeln :wink:
Einste1n
Mitglied
Beiträge: 520
Registriert: 09.06.2004 18:54

Beitrag von Einste1n »

ah super :)
na dann hoffen wir mal, das es bald ne neue Version gibt, denn die jetzige hat mehr Bugs als mir lieb ist ... komme mit den Bugfixes kaum noch hinterher ;-)
Antworten

Zurück zu „phpBB 2.0: Mod Support“