Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Feedback > signature preview hack?

signature preview hack?
Thread Tools
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
May 15, 2002, 09:08 AM
 
any chance of seeing this hack, after the UBB upgrade? those "sig test" threads are pretty irritating. i know that, as much as it may pain them to do so, a lot of people on the board actually agree with me here

thank you, oh mighty glz
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Elite
Join Date: Feb 2001
Location: Washington, DC
Status: Offline
Reply With Quote
May 15, 2002, 03:39 PM
 
yeah... having this would be, as Martha Stewart says, "a good thing"

until then...

postCount++;
/Earth\ Mk\.\ I{2}/
     
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
May 15, 2002, 08:26 PM
 
I don't quite see how that would be possible to implement ... one possibility is that since post preview is built-in now, we could hack it to display your signature too.

That might work ... we'll have to check to see if it's feasible, though. First we upgrade the board and hack back in the few little things that still aren't included ("last post by" is the biggie), and then we can field some requests for additional UBB hacks.

I suspect this should not be too hard to implement, though.
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
Mac Elite
Join Date: Feb 2001
Location: Bristol, UK, living in Melbourne, Australia
Status: Offline
Reply With Quote
May 15, 2002, 10:29 PM
 
Originally posted by gorgonzola:
<STRONG>I don't quite see how that would be possible to implement ... one possibility is that since post preview is built-in now, we could hack it to display your signature too.

That might work ... we'll have to check to see if it's feasible, though. First we upgrade the board and hack back in the few little things that still aren't included ("last post by" is the biggie), and then we can field some requests for additional UBB hacks.

I suspect this should not be too hard to implement, though. </STRONG>
it might be easier just to add a 'refresh page' link on the topic view which calls some of the same functions as 'reply' b- rebuilding the page (and thus refreshing sigs/post-counts) without adding a message. Not as nice/obvious, but a ten minute hack. When are you upgrading the board - are you going to the SQL UBB? It would be great to have a decent search function. The current implementation of search is awful. It seems like the posts aren't indexed and the search reads every message looking for search terms. Dreadfully inefficient! In fact I can't believe it's that bad but it certainly isn't good!
     
Posting Junkie
Join Date: Feb 2000
Location: Washington, DC
Status: Offline
Reply With Quote
May 16, 2002, 03:33 PM
 
I think we should switch to PHPBB. I think it's much more flexable...
     
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
Reply With Quote
May 17, 2002, 01:53 AM
 
Originally posted by mitchell_pgh:
<STRONG>I think we should switch to PHPBB. I think it's much more flexable...</STRONG>
No way! UBB FOR EVER!
     
Senior User
Join Date: Mar 2001
Location: Crystal, MN
Status: Offline
Reply With Quote
May 17, 2002, 09:19 PM
 
Originally posted by mitchell_pgh:
<STRONG>I think we should switch to PHPBB. I think it's much more flexable...</STRONG>
I second this. Why pay, when you can get it for free and its a better product.
- Intel iMac 20' Core Duo - 1GB RAM
- Technology Blog) http://portalxp.org/Web/blogs/rbrynteson/
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
May 17, 2002, 09:38 PM
 
Originally posted by gorgonzola:
<STRONG>I don't quite see how that would be possible to implement ... )</STRONG>
you could always try this:

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>##################################### ########
# Script: Signature Preview <font color = blue>1.1</font> Beta A
# Author: MasterMind
# Email: ubbdev@h-realms.com
#############################################
# Note: Backup your files! Report any bugs.
#############################################

##OPEN:
#ubb_profile.cgi

find:

# convert signature
$Signature = &reverse_ubb_code(<font color = red>"$user_profile[<font color = blue>12</font>]"</font>);
$Signature =~ s/&lt;p&gt;/\n\r\n/isg;

replace with:

# convert signature
$user_profile[<font color = blue>12</font>] =~ s/(\[IMG\])(\S+?)(\[\/IMG\])/ &lt;IMG SRC=<font color = red>"$<font color = blue>2</font>"</font>&gt; /isg;
$Signature = &reverse_ubb_code(<font color = red>"$user_profile[<font color = blue>12</font>]"</font>);
$Signature =~ s/&lt;p&gt;/\n\r\n/isg;

##OPEN:
#public_edit_profile.pl

find:

print &lt;&lt;THISFIELD;

&lt;tr bgcolor=<font color = red>"$vars_style{BGColor}"</font>&gt;
&lt;td valign=<font color = red>"top"</font> width=<font color = red>"<font color = blue>45</font>%"</font>&gt;
&lt;FONT size=<font color = red>"$vars_style{TextSize}"</font> FACE=<font color = red>"$vars_style{FontFace}"</font>&gt;
$B1
$vars_wordlets{signature_field}
$B2:
&lt;BR&gt;
&lt;FONT SIZE=<font color = red>"<font color = blue>1</font>"</font>&gt;
$vars_wordlets{signatures_explained} $ImagesWording&lt;/FONT&gt;
&lt;/font&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;TEXTAREA NAME=<font color = red>"signature"</font> ROWS=<font color = red>"<font color = blue>5</font>"</font> COLS=<font color = red>"<font color = blue>35</font>"</font>&gt;
$Signature
&lt;/TEXTAREA&gt;
&lt;/td&gt;
&lt;/tr&gt;

THISFIELD

under it add:

print &lt;&lt;SIGPREV;
&lt;tr bgcolor=<font color = red>"$vars_style{BGColor}"</font>&gt;
&lt;td valign=<font color = red>"top"</font> width=<font color = red>"<font color = blue>45</font>%"</font>&gt;
&lt;FONT size=<font color = red>"$vars_style{TextSize}"</font> FACE=<font color = red>"$vars_style{FontFace}"</font>&gt;
$vars_wordlets{sig_prev}
&lt;BR&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;FONT size=<font color = red>"$vars_style{TextSize}"</font> FACE=<font color = red>"$vars_style{FontFace}"</font>&gt;
$user_profile[<font color = blue>12</font>]
&lt;/td&gt;
&lt;/tr&gt;
&lt;/font&gt;
SIGPREV

open vars_wordlets.cgi and find:

details =&gt; <font color = red>"Details"</font>,

under add:

sig_prev =&gt; <font color = red>"Signature Preview:"</font>,

#DONE#</font>[/code]
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
May 18, 2002, 06:11 AM
 
hmm. while we're on a preview theme here, how about we're able to preview our posts too?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2