Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
Hi! im new about this but i want to say i installed Icy Phoenix and really love it.  Ok im going to explain my problem, sorry about my bad english :p.

Few days ago i installed a Icy Phoenix to make a website about Some games. Now im tryng to install a mod called Itemstats. This have compatibility for forums phpbb. But im tryng to get it work in the Icy Phoenix.

Basically when i use  [ item]Object[ /item ] search in some databases in some pages, and link the item in a tooltip.

Really i dont know how to do it, but im tryng to insert.

Code: [Download] [Hide]
  1. include($phpbb_root_path . '/phpbb_config_itemstats.php');  
  2. include($phpbb_root_path . path_itemstats . '/phpbb_itemstats.php');  
  3.  


from the modifed bbcode.php in  Itemstats_phpbb
didnt get problem with that, bah, no error in the page :p.

After that i insert

Code: [Download] [Hide]
  1.     include_once($phpbb_root_path . "phpbb_config_itemstats.php");  
  2.     include_once($phpbb_root_path . path_itemstats . "/phpbb_itemstats.php");  
  3.     $itemstats_ref = '<link rel="stylesheet" href="' . $phpbb_root_path . path_itemstats . getStrCssStyle() . '" type="text/css">  
  4. <script type="text/javascript" src="' . $phpbb_root_path . path_itemstats . getStrTooltipStyle() . '"><!-- overLIB (c) Erik Bosrup --></script>';  
  5.  
  6. $template->assign_vars(array(  
  7.     'ITEMSTATS_REFS' => $itemstats_ref,  
  8.  


from the modified page_header.php in the Icyphoenix /includes/page_header.php

Fatal error: Cannot redeclare itemstats_parse() (previously declared in /www/xxxxl/mydomain.com/html/itemstats/phpbb_itemstats.php:18) in /www/xxx/mydomain.com/html/itemstats/phpbb_itemstats.php on line 18

so i go to the phpbb_itemstats.php  

Code: [Download] [Hide]
  1. function itemstats_parse($message)  
  2.  


Im disoriented. Dont know if the problem is that file, or what im doing wrong. I need to change the overall_header.tpl and posting_body.tpl but that arent the problem for the moment i think.


Any chance i can adapt that mod  to Icy Phoenix?

Again sorry about my terrible english and thanks so much for your time. Dont know if this is posted in the right section.
 



 
JojeSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
Try to replace all the inserted INCLUDE with INCLUDE_ONCE and then let me know.

If it isn't working then we will try in another way...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
Hi.
I have problem similar (or not?) to the one above.
I'm, trying to install one relativelly simple mod that worked perfectly in phpbb2. It is called "post edit time", and it forbid user to delete or modify his post after certain amount of time post is written (code posted below). Until now, I added sql changes and it went ok:
Code: [Download] [Hide] [Select]
INSERT INTO phpbb_config (config_name, config_value) VALUES ('edit_time', '10')

After that, I modified lang_admin.php,  lang_main.php and posting.php files (my modded files attached). What i can't do (because i'm not php expert ), is to modify admin_board.php file, because in Icy's admin_board.php I can't find:
Code: [Download] [Hide] [Select]
"L_ENABLE_PRUNE" => $lang['Enable_prune'],

 or anything similar. Maybe i was looking in wrong file? Do Icy still uses admin_board.php the way phpbb uses it? Anyway, I think mod should work even without that last part (modifying sql manually should do the trick, correct me if I'm wrong), but it isn't. I don't get any errors, it simply doesn't work. User can edit or delete his post anytime.
Is there any chance someone of you guys check this out and give me at least a hint   . Or point me to right direction. Maybe Icy Phoenix already have this ability? I didn't manage to find it in ACP.
Thanks (post edit time mod code below)

Code: [Download] [Hide] [Select]
## EasyMod 0.2.1a compliant
#################################################################
## MOD Title:       Limited Post Edit time
## MOD Author:       Shannado <sven@shannado.nl> (Sven) http://www.shannado.nl/forumorg
## MOD Author:  kulinar <ptomoff@gmail.com> (Plamen) http://addurl.start.bg
## MOD Description:  With this MOD the admin is able to set through the board configuaration, the time (in minutes) a user has
##                        to edit his/her post. When the value is set to '0', the time is unlimited.
##                        The check occurs only when the user hits the 'edit'button in the post.
##                        NOT when the user hits the submit button.
##                        Moderators & Admins can always edit the post
## MOD Version:    1.0.1
##
## Installation Level:    Easy
## Installation Time:    10 - 20 Minutes
## Files To Edit:       posting.php,
##               language/lang_english/lang_main.php,
##               language/lang_english/lang_admin.php,
##               admin/admin_board.php,
##               templates/subSilver/admin/board_config_body.tpl
## Included Files:    N/A
## License: http://opensource.org/licenses/GPL-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## ------------
## 01-01-2002 - 0.9.0 beta
##   - Beta
##
## 01-01-2002 - 1.0.0 FINAL
##   - Final
##
## 01-01-2002 - 1.0.1 FINAL
##   - Made phpBB v2.0.2 compliant and EasyMod 0.0.7 compliant
##
## 05-12-2003 - 1.0.2 FINAL
##   - Made phpBB v2.0.6 compliant and EasyMod 0.0.10a compliant
##   - Adjusted to the new Template
##
## 19-09-2005 - 1.0.3 Final
##  - Made phpBB v2.0.17 complaint and EasyMod 0.2.1a complaint
##  - Added License Statement
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ SQL ]-------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('edit_time', '10')

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
#
//limited post edit time MOD
$lang['edit_time'] = 'Post Edit time';
$lang['edit_time_explain'] = 'The time (in minutes) the user has to edit his/her post. Setting this value to 0, the time is unlimited.';

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
#

//limited post edit time MOD
$lang['edit_time_past'] = 'You are not allowed to edit your post. You have to edit your post within <b>%d</b> minutes, after you posted your message.';

#
#-----[ OPEN ]------------------------------------------
#
posting.php

#
#-----[ FIND ]------------------------------------------
#
    $select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';

#
#-----[ REPLACE WITH ]------------------------------------------
#
     $select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, p.post_time, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';

#
#-----[ FIND ]------------------------------------------
#
   else if ( $mode != 'newtopic' && $post_info['topic_status'] == TOPIC_LOCKED && !$is_auth['auth_mod'])
   {
      message_die(GENERAL_MESSAGE, $lang['Topic_locked']);
   }

#
#-----[ AFTER, ADD ]------------------------------------------
#
   //
   // BEGIN - Limited post edit time MOD
   //
   if ( $mode == 'editpost' && !$is_auth['auth_mod'] && $board_config['edit_time'] != '10' && !$submit)
   {
      $current_time = time();
      $difference_sec = $current_time - $post_info['post_time'] ;
      $difference_min = ($current_time - $post_info['post_time']) / 60;
      if ($difference_min > $board_config['edit_time'] )
      {
         $message = sprintf($lang['edit_time_past'],$board_config['edit_time']) . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
         message_die(GENERAL_MESSAGE, $message);
      }
   }

   //
   // END - Limited post edit time MOD
   //

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]------------------------------------------
#
  "L_ENABLE_PRUNE" => $lang['Enable_prune'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
   "L_EDIT_TIME" => $lang['edit_time'],
   "L_EDIT_TIME_EXPLAIN" => $lang['edit_time_explain'],

#
#-----[ FIND ]------------------------------------------
#
   "PRUNE_NO" => $prune_no,

#
#-----[ AFTER, ADD ]------------------------------------------
#
   "EDIT_TIME" => $new['edit_time'],

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


lang_main.zip
Description: modded lang_main.php file 
Download
Filename: lang_main.zip
Filesize: 30.04 KB
Downloaded: 243 Time(s)
lang_admin.zip
Description: modded lang_admin.php file 
Download
Filename: lang_admin.zip
Filesize: 33.43 KB
Downloaded: 213 Time(s)
posting.zip
Description: modded posting.php code 
Download
Filename: posting.zip
Filesize: 13.83 KB
Downloaded: 222 Time(s)

 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
"L_ENABLE_PRUNE" => $lang['Enable_prune'],

it is presents in admin_board.php

"PRUNE_NO" => $prune_no,

this one too
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
Joje wrote: [View Post]

Fatal error: Cannot redeclare itemstats_parse() (previously declared in /www/xxxxl/mydomain.com/html/itemstats/phpbb_itemstats.php:18) in /www/xxx/mydomain.com/html/itemstats/phpbb_itemstats.php on line 18



it means to do same work twice
same script presents in two positions [files]
 
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
Thanx, difus.
But now that i added in admin_board.php
Code: [Download] [Hide] [Select]
      'L_ENABLE_PRUNE' => $lang['Enable_prune'],
    'L_EDIT_TIME' => $lang['edit_time'],
    'L_EDIT_TIME_EXPLAIN' => $lang['edit_time_explain'],
and
Code: [Download] [Hide] [Select]
'PRUNE_NO' => $prune_no,
    'EDIT_TIME' => $new['edit_time'],
, it still doesnt work. File is domain.com/adm/admin_board.php, right? No errors, user just go in and delete/edit his posts. I forgot to mention it earlier, when user edit his post, there is no time of last edit (last edited by....), below post text, that space is empty. Can this mod work at all in Icy? What am I doing wrong?
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
I don't know this mod
but maybe you have to enable or config it in ACP => users
did you make changes for all languages ?
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
Yes, i have changed English and Serbian which are only 2 languages that i have installed on my Icy. However, in mod source there are one more file mentioned, templates/subSilver/admin/board_config_body.tpl, which is default template of phpbb2. I haven't found traces of editing this file in mod source. This is only visual, right? Shouldn't make a difference if sql part is done righ (which i think it is).
Anyway, if you know some other way to block user from deleting or changing his post after some time, share it, it will help me too.
Thanx again.
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Tryng To Install A Phpbb Mod In Icy Phoenix. 
 
omarska wrote: [View Post]
Yes, i have changed English and Serbian which are only 2 languages that i have installed on my Icy. However, in mod source there are one more file mentioned, templates/subSilver/admin/board_config_body.tpl, which is default template of phpbb2. I haven't found traces of editing this file in mod source. This is only visual, right? Shouldn't make a difference if sql part is done righ (which i think it is).
Anyway, if you know some other way to block user from deleting or changing his post after some time, share it, it will help me too.
Thanx again.


It might, templates can crash your forum (I had to upload XS twice because of a corrupt template) Try doing the change to the IP default template.
 




____________
CivUnited
 
tonyf12Send private messageVisit poster's website  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events