Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Modification Name: User Specific Signature Disabling 6.6

Author(s): Weird Al

Description: Allows users to disable the showing of signatures in posts.

Demo: http://www.alforadmin.com

Requirements: UBB.classic 6.6.x
Download Link: here

Upgrade Procedure:

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
missed this one, thank you smile


- Allen wavey
- What Drives You?
Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
very usefull, thx. smile

one small mistake, you say:

Code
# Step 5: (in public_edit_profile.pl #
<tr bgcolor="$vars_style{AltColumnColor1}">
<td valign="top"><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
<b>$vars_wordlets{SigShow}</b>

</font></td>
but ist must be:

Code
# Step 5: (in public_edit_profile.pl #
<tr bgcolor="$vars_style{AltColumnColor1}">
<td valign="top"><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
<b>$vars_wordlets_mods{SigShow}</b>

</font></td>
you hackes vars_wordlets_mods but you referred to vars_wordlets, so that the text isn't showing....

Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
actually there is more wrong and it isnt working, whats about that here:

Code
FIND:

my $AvatarBits = "";
if($Avatar && $vars_display{UseAvatars} eq "yes") {
$AvatarBits = qq~
<script language="JavaScript1.1" type="text/javascript">
<!--
var avline = avatar_line("$Avatar");
if(avline) {
document.writeln(avline + "
")
} // end if
// -->
</script>
~;
} # end if

ADD AFTER:

my $AvatarBits = "";
if($Avatar && $vars_display{UseAvatars} eq "yes") {
$AvatarBits = qq~
<script language="JavaScript1.1" type="text/javascript">
<!--
var avline = avatar_line("$Avatar");
if(avline) {
document.writeln(avline + "
")
} // end if
// -->
</script>
~;
} # end if
seems like you mixed up the things a bit laugh

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
well technically the vars_wordlets_mods step shouldn't have worked at all, because that line is in vars_wordlets.cgi. Hack that file (vars_wordlets.cgi).


As for the first correction, don't change that, and add the line to vars_wordlets.cgi instead.

for the second bug, I meant to do that wink Just making sure you're awake. tipsy

anyhoo, keep the "Find:" step, but replace with...

Code
	my $sig_show = qq~<script language="Javascript" type="text/javascript">
<!--
var usersig = sig_line_thingy("$sig_post_body");
if(usersig) {
document.write(unescape(usersig));
} // end if
//-->
</script>
~;
I'll update the zip tomorrow

Sponsored Links
Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
yeah, now it works wink

Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
well, ehehe i have more bad news for you tipsy

now in signatures the Greek font isn't supported anymore, the coding of the page doesen't work correctly (only in the sig.)

without your hack its fine with your hack not confused

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I'm gonna need an account at your board, so could you set up a test one?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I just realized I already had an account from some previous support, and have looked at the board.

From what Charles Capps has said from previous posts, javascript doesn't support those languages, so it's not a bug in my hack, it's an issue with the actual language, so you might as well remove the hack.

I'm gonna write a new version that won't have this bug later on. I already know how to do it, but it'll be a task to rewrite everything, and I have school. Depending on the time frame, it might be released alongside 6.7

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
OK, by "alongside 6.7", I meant now tipsy

To upgrade, remove the old version by undoing it. The old instructions have been left to make that easier. Then just apply the new version.

It now uses some css so that the greek language should work. An expample of the greek sig working can be seen here: http://www.alforadmin.com/ubb/ultimatebb.php/ubb/get_topic/f/7/t/000001/p/3#000037

Sponsored Links
Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
oh well, hehe i like this signature on your test link, it remids me of sth. tipsy

i gonna try it now and i will tell you if it worked smile thx. for your support smile

Joined: Mar 2004
Posts: 1
Junior Member
Junior Member
Offline
Joined: Mar 2004
Posts: 1
Would this work on 6.7?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
no

Joined: Dec 2003
Posts: 49
User
User
Offline
Joined: Dec 2003
Posts: 49
Is there any chance this Mod could be ported to 6.7x?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)