Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BB2Nuke
Author Message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Jun 04, 2008 7:37 am Reply with quote

In what files would I comment out the images.
 
View user's profile Send private message
catweazle
Regular
Regular



Joined: Oct 14, 2006
Posts: 60
Location: Norway

PostPosted: Wed Jun 04, 2008 4:28 pm Reply with quote

I don't think this is about commenting out codes in lots of different files:

The User signature is written to the DB and therefore I would like to think that one have to strip the image tags from the User signature input before it's written to the DB. This will include both the User_Account Profile (PHP-Nuke) as well as the forum Profile (BBtoNuke)...

I don't know the right code (or the files to include that code) to strip the image tags, but I'm sure some of the greater Gurus here are able to help you Very Happy

_________________
Regards,
Catweazle. 
View user's profile Send private message
Susann







PostPosted: Wed Jun 04, 2008 4:57 pm Reply with quote

Quess I ´ll end up with a mod but I would prefer to comment this out.
 
warren-the-ape
Worker
Worker



Joined: Nov 19, 2007
Posts: 196
Location: Netherlands

PostPosted: Thu Jun 05, 2008 4:41 am Reply with quote

Susann, I use a phpbb mod on our website to display the sig only in the 1st post of a user (per page). Applied it without any changes and works for around a year now. Running; php-nuke 7.9

Here's the (very small) mod;

Code:
##############################################################

## MOD Title: Signature displayed once per page
## MOD Author: Agnostik < gmchad@redscape.com > (Chad Schroeder) http://www.redscape.com
## MOD Description: To reduce clutter, this MOD will display a poster's signature only once per topic page.
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time: ~ 1 minute
## Files To Edit:
##             viewtopic.php
##
## 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:
## Thanks to LK for providing the UBB blueprint
##############################################################
## MOD History:
##
##   2006-05-02 - Version 1.1
##      - MOD Syntax changes for the phpBB MOD Database
##      - Successfully tested with phpBB 2.0.20
##   2002-12-06 - Version 1.0
##      - BETA-Version
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
   $user_sig = ( $postrow[$i]['enable_sig']

#
#-----[ IN-LINE FIND ]------------------------------------------
#
&& $board_config['allow_sig']

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 && !$signature[$poster_id]

#
#-----[ 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 guess its not that hard to switch it off completely, but didnt look too much into it to be honest.
Hopefully this can give you some starting point Wink
 
View user's profile Send private message
Susann







PostPosted: Fri Jun 06, 2008 3:14 am Reply with quote

Cool thanks ! Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BB2Nuke

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 ©