Author |
Message |
Doulos
Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005
Posts: 732
|
Posted:
Fri May 25, 2007 7:53 pm |
|
I am trying to get this phpbb hack modified to work with RN2.10
Only registered users can see links on this board! Get registered or login!
I think I made the changes correctly when trying to convert it to phpnuke format. Then I was getting a sql error saying a table did not exist. I think I got that fixed since that error ceased, but the icons to change execute the mod don't show up anywhere.
I don't know php well enough to figure out what I did wrong.
If someone could look at this hack I would appreciate it. Alternatively, if someone know where to get the hack Raven uses to only show the avatar/sig once per thread I would prefer to use that.
Thanks |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Fri May 25, 2007 9:33 pm |
|
Code:
CREATE TABLE phpbb_ignoresigav (
user_id mediumint(9) NOT NULL default '0',
hid_id mediumint(9) NOT NULL default '0'
) TYPE=MyISAM;
|
is the table that it is trying to generate
My suggestion is to turn it into a Nuke-forum name.. ala
Rename phpbb_ignoresigav to nuke_bbignoresignav
In includes/constants.php, you also need to rename it there. |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
Doulos

|
Posted:
Sat May 26, 2007 10:06 am |
|
I already tried this:Code:
CREATE TABLE nuke_ignoresigav (
user_id mediumint(9) NOT NULL default '0',
hid_id mediumint(9) NOT NULL default '0'
) TYPE=MyISAM
|
and changed includes/constants.php entry to:Code:
define('HIDE_TABLE', $prefix.'_ignoresigav');
|
Placing the icons here:
Quote: | /modules/Forums/templates/subSilver/images/icon_hide.gif
/modules/Forums/templates/subSilver/images/icon_unhide.gif |
This combination doesn't seem to be working - supposed to show an icon to ignore sig/av below each post.
Oh well, I'll keep at it, but thanks for looking at it, Evaders99
Edit: This may require modifications at the theme level as all the other icons at the bottom of each post seem to be stored in the themes/themename/images/lang_english folder. I fear this is beyond me. |
|
|
|
 |
Doulos

|
Posted:
Sun May 27, 2007 7:32 pm |
|
|
|
 |
Doulos

|
Posted:
Mon May 28, 2007 11:28 pm |
|
Ezekiel wrote: | ... Alternatively, if someone know where to get the hack Raven uses to only show the avatar/sig once per thread I would prefer to use that.
Thanks |
I found a hack that only allows the signature once per topic. Now I just have to figure out how to make something like this work for the avatars.
Code:##############################################################
## MOD Title: Signature once per page
## MOD Author: LK + Agnostik for the minor conversion
## MOD Description: Signatures only appear once per topic page.
##
## Installation Level: easy
## Installation Time: 1 Minute
## Files To Edit: viewtopic.php
##############################################################
## Author Notes:
## Thanks to LK for providing the UBB blueprint
##
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig']) ? $postrow[$i]['user_sig'] : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] && !$signature[$poster_id]) ? $postrow[$i]['user_sig'] : '';
#
#-----[ FIND ]------------------------------------------
#
$user_sig = '<br />----------------<br />' . str_replace("\n", "\n<br />\n", $user_sig);
#
#-----[ AFTER, ADD ]------------------------------------
#
$signature[$poster_id] = 1;
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM
|
I works !! |
|
|
|
 |
utssace
Worker


Joined: Feb 18, 2006
Posts: 155
Location: Virginia
|
Posted:
Sun Jul 15, 2007 7:55 am |
|
Thanks for this hack Ezekiel. I will try it soon.
I wonder if this will strip out signatures in old posts. I hope so in order to reduce the size of my database. |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Sun Jul 15, 2007 9:03 am |
|
I don't think the signatures are stored with the posts. Have you ever noticed that when you change your signature all your old posts suddenly have the new signature? |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
|