Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Ok. I've finally made that hacks. I hope it works fine. It did for me on 5.44a, but i might have left some things out.

Ok. Here it goes:
In ubbmisc.cgi find:
Code
code:
Right after that add
Code
code:

Then find
Code
code:
and after that add
Code
code:

Then in postings.cgi find
Code
code:
and right after that add
Code
code:
adn replace
Code
code:
with
Code
code:

Do those 2 last steps twice.

Now, in "Preferences" you can select whether you want signature prechecked by default. Option will be stored in cookies, so users's browser must support cookies!

Hope that works [Linked Image]

Sponsored Links
Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
hey, great idea/hack! i am thinking of doing this on the FONT SIZE. do you think it's possible?


<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
You mean, what font UBB will be displayed in for that user?
Possible, but takes a lot of work, since you'd have to change almost everyother line of each file [Linked Image].
But IS possible.

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Nevermind, I'm just stupid. The hack is perfect. =)

------------------
Troy(Trekkan)
RPG-Files Webmaster & Owner http://www.rpg-files.com

Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
i don't know if the hack is working or not, but i have a add-on [Linked Image]


Well, it's will display the "Show Signature" only if the user has not yet
set the preferences, else it won't display the "Show Signature" if the user
has already set it to included signature. Humm, did i make it clear? anyway,
here it is:

ilya's code:
Code
code:


replace with my code:
Code
code:


ilya's code:
He told you to replace
Code
code:

with
Code
code:


well, just replace this:
Code
code:

Do those 2 last steps twice.

Now, in "Preferences" you can select whether you want signature prechecked by default. Option will be stored in cookies, so users's browser must support cookies!

Hope that works [Linked Image]


<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>
Sponsored Links
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
I was thinking about doing it that way, but decided to go with original one, since it would be more clear to the user, i think.
But nice addon anyways

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Very nice hack, thanks for posting it. I recently changed so that the sig was checked
by default, but then started to notice how many people were leaving it checked off
without having a sig in thier profile. This hack will solve that nicely [Linked Image]

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc. http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Glad you like it [Linked Image]
This is like my 3rd hack only. [Linked Image]

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Ilya -- yes, and EXCELLENT hack...

Quote
quote:
I will be installing this right now [Linked Image]

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Joined: Mar 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 3
ilya, i'm using 5.44 and it only autochecks when i'm posting replies not topics.

Sponsored Links
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Ilya - was that really only your 3rd hack? I thought you were a UBB veteren.

Just a thought [Linked Image]

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
I've been dealing with UBB for quite a whil (installed it a lot of times, modified, translated), but didn't write many hacks. The ones I write:
"Last post by" in Ultimate.cgi
Signature preferences
Greetings by time

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Aaah - Very good hacks!

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 116
Member
Member
Offline
Joined: Feb 2000
Posts: 116
I wish UBBMaster used this hack

------------------
Please Join My UBB

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
[Linked Image]
I'll tell him about it.

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
I don't need it personally, but it would be a nice addition.

Just a thought [Linked Image]

Joined: Jan 2000
Posts: 64
Member
Member
Offline
Joined: Jan 2000
Posts: 64
here's something that was missed. after doing this hack, if a user goes to set prefrences, no default item is checked. this will fix it

a little further down in ubbmisc.cgi
you'll find this
Code
code:

change it like this
Code
code:

thats it

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Actually, my code checks the checkbox. At least it's suposed to
I have this in it:
&get_cookie; if ($cookie{Signature} eq "yes") { $SigPref="CHECKED"; } else { $SigPref=""; }

And then I put .
I thought that would work, and it did for me..

Joined: Jan 2000
Posts: 56
Member
Member
Offline
Joined: Jan 2000
Posts: 56
ilya:

What I think Mutt is refering to is that when you go back to the preferences page it does not show that it has been enabled or not.

Mutt:

Quote
quote:
is not in version 5.39c. I really don't want to upgrade. Any other ideas how to get this to keep the choice checked?
Parker

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Parker,

Its not in 5.44a either. =) But Mutt is right, I came back to this thread to specifically report this bug, but of course it was already mentioned.

Anyone have any ideas as to a fix(Since I can't find the code either)? Maybe its not in ubbmisc but another file?



------------------
Troy(Trekkan)
RPG-Files Webmaster & Owner
http://www.rpg-files.com

Joined: Jan 2000
Posts: 64
Member
Member
Offline
Joined: Jan 2000
Posts: 64
I'd say that the code is there somewhere
i'm on 5.44

at the bottom of the prefrences page after the submit button and before $footer is this code

Code
code:

this is my modified version and you don't need all this. i posted the whole thing so that you could search for different parts.

if you can't find it do it like ilya said would work fine.

Joined: Jan 2000
Posts: 43
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 43
This hack didnt work at all when i tried it, i followed every step and all, still didnt do the trick, don't know whats wrong but I got no errors either. It just wouldn't show in the profile.

Also how do you change the background and title image in the profile area, its driving me crazy!


Sometimes being dead to someone is a good thing.
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
It's not in profile, it's in Preferences!

Joined: Jan 2000
Posts: 43
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 43
goodness what a fool I am, thanks, i will try it again, can't believe i didnt figure that out!


Sometimes being dead to someone is a good thing.
Joined: Feb 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 2
I can't seem to get it to work. I did everything posted in this thread every way possible, tried everyones ideas. It started out with not saving which option i checked "yes" or "no" and not effecting anything in my forum. Then I tried Anonymous's code and still not working, although not exactly sure what to do with that last part but i tried it anyhow by just replacing that line with the $SigPref. Then I did Mutt's code, that made it save what option i picked in the prefrences, but it still doesnt do anything when I post a message.

Any ideas??

------------------
NekdDrgn

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Does your browser support cookies?
Do you have them turned on?

------------------
Thanks for reading!
Ilya
Administrator of Ubb Code Hackers Hideout
Moderator of UBB Hacks Finished

Joined: Feb 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 2
Yes, I'm using IE5 and cookies work everywhere else. I had a few people that are registered on my board try it and it didn't work for them either. Is there anything specific I could check that you would know of? I've tried reinstalling the hack 3 times and this what I come to each time.

Joined: Feb 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 3
i cannot see if i set on or off now. nothing is checked! and the both addons above didnt work for me! i have ubb 5.44a and ie 5 (accepting cookies)

------------------

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Worked Great Ilya...
version # - 5.39c

Good Job...

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
HMM seems not to work to well on 5.45b. I followed the steps and get no errors and even am able to switch it around in preferences but the damn thing just wont show up. And now my option to check it myself is gone so anyone get it to work in 5.45b+ yet let me know thanks
Cracka

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Is this a good assumption then? This is not doable in version 5.45b?

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I like the idea of this add-on to the hack but I get a 500 error when I add this part of it and the error-loge reports
Code
code:
Any suggestions?

Also I wanted to add the option for new registrants so did the first step of the orignal instructions for register_lib.pl - top tip [Linked Image]

Code
code:


replace with my code:
Code
code:


ilya's code:
He told you to replace
Code
code:

with
Code
code:


well, just replace this:
Code
code:

Do those 2 last steps twice.

Now, in "Preferences" you can select whether you want signature prechecked by default. Option will be stored in cookies, so users's browser must support cookies!

Hope that works


------------------
TheNexus.co.uk - Freephone: 0800 458 2770 - ICQ#: 3303890
UK domains £15 and TLDs £20 from Domain4u.co.uk

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Ilya:

Thanks for the great signature hack, it works fine in 5.45C code. But, I'm trying to modify it to automatically place a check in the radio button that was the users preference. Say when you select "preferences" again after making your selection it doesn't show what choice you made before. It does check the box according to what you selected in the postings just like you said, but doesn't leave a check box on the preferences setting once it's been made. I tried the code on ubbcodehacking.com made by a user, but didn't find the code mentioned in the ubbmisc.cgi file. Could you shed some light on this and maybe give a hand in doing this? I'm new to code so I'm a little lost right now but learning a lot as I go.

Do you have the code for the other mods you wrote or can point to the threads where they are? There are so many of them that it's hard to find and I'm not sure if it's the latest version you wrote. If you want to send them in an e-mail to me you can as well.

Thanks for your help.

Jeff

Joined: May 2001
Posts: 50
Member
Member
Offline
Joined: May 2001
Posts: 50
I fixed the bug where the set status of the signature doesn't appear set when you re-enter the preferences area.

It used pure CGI and it's working flawlessly.

If you need the hack, pm me for it.

Joined: Jan 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 7
Check out the re-documented hack below to make the check boxes stay checked after you set preferences.

Joined: Jan 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 7
Hello everyone,

This is a re-documentation of the hack I listed yesterday. I left out some code. Sorry. [Linked Image]

I figured out how to show it selected in your preferences after you choose an option for version 5.45c. (The mod Mutt was talking about.)

In ubbmisc.cgi FIND:
Code
code:

REPLACE that with:
Code
code:


Then AFTER that add:
Code
code:

Then change ilya's code from this:
Code
code:

TO This:
Code
code:

Basically your adding the $SigOn and $SigOff variables to the INPUT fields to tell the script whether or not to CHECK the checkbox if the preference is turned on.

You can change the else statement by making on of the variables to CHECKED to make "signatures checked" or "Signatured unchecked" a default value.

Hope I explained that ok, been a long day of coding.

I hope this helps. [Linked Image]

------------------
James L. Murray
VirtueTech, Inc.
EMAIL: info@virtuetech.com
WWW: http://www.virtuetech.com

Joined: Jul 2000
Posts: 10
Net Offline
Junior Member
Junior Member
Offline
Joined: Jul 2000
Posts: 10
Hi VirtueTech,
I follow ur document of hack for sign precheck box at prefernece. I have tested so i went to preference click yes for signture is work BUT I found that i select NO then it wont work to save it. Then i check on Preference signture still YES. You can check on http://test2k.virtualave.net/cgi-bin/Ultimate.cgi?action=intro

I believe something wrong VirtueTech's code. Please fix it.
Thank you.

Joined: Sep 2000
Posts: 101
Member
Member
Offline
Joined: Sep 2000
Posts: 101
does this work with 5.46?

------------------
kaak
[email protected]
icq# 4032410


kaak
[email protected]
icq# 4032410
Joined: Jul 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 5
Quote
quote:
it works on UBB 5.47e with a bit of reworking in my board.


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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 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)