Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 623

PostPosted: Fri May 25, 2007 7:53 pm Reply with quote

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
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri May 25, 2007 9:33 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
Doulos
PostPosted: Sat May 26, 2007 10:06 am Reply with quote

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
PostPosted: Sun May 27, 2007 7:32 pm Reply with quote

grrr.
 
Doulos
PostPosted: Mon May 28, 2007 11:28 pm Reply with quote

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
Worker


Joined: Feb 18, 2006
Posts: 155
Location: Virginia

PostPosted: Sun Jul 15, 2007 7:55 am Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun Jul 15, 2007 9:03 am Reply with quote

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 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©