Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Modification Name: DT's Extra (Custom Display Category/Item) v1.02
Author: Dark Templar - [email protected]
Description: A hack that adds DT's Extra field next to location on the bottom of each post. DT's Extra consists of a category and an item, both are set in each user's profile. Created to formally support what people informally did at UBBDev. Hope you all enjoy it!
Compatibility: UBB6.1
Demo: n/a
Link: http://ultimagamers.com/ubbhacks/dtsextra61.txt

Comments: Well, you know how a lot of people have those little things down below the body of the message? I have my "Updating UBB Hacks: YES!", other people have a variety of things. I figured that so many people do it, it should be a feature. So, I wrote it.

I have finished testing it, works without a hitch (Download version 1.02 if you have a previous version).

[ 01-05-2002 08:02 PM: Message edited by: Dark Templar ]


-DT
Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Very nice DT. Good work.

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
This post is only relevant if you downloaded the documentation to DT's Extra 1.01 before the time of this post. 1.02 fixes this problem and a small problem in the Wordletâ„¢ modifying step (I listed the wrong wordlet to put the new text under).

Documentation error, there's a blank "above it, add" in the docs.

It said:
Code
[/code]
Somehow that code block got missed. Properly, it should say:
[code]

It's not a critical error, but you will lose your 'show custom display category/item fields or not' setting every time you go back to set your display variables if you do not fix this.

[ 01-05-2002 08:04 PM: Message edited by: Dark Templar ]


-DT
Joined: Jun 2001
Posts: 62
Eel Offline
Member
Member
Offline
Joined: Jun 2001
Posts: 62
Can I see your test board for the demo? I dun want to install it til I see a visual..

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
You don't really need a visual, it looks like what people do here at UBBDev. It makes it look like below my post does here at UBBDev, but the category is unbolded so it blends in with the rest of the info.


-DT
Sponsored Links
Joined: Jun 2001
Posts: 62
Eel Offline
Member
Member
Offline
Joined: Jun 2001
Posts: 62
Updating UBB Hacks: Affirmative. - that thing? =

And yes, I know I'm a frickin retard, but bear with me... ;P

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Yes, that. It makes it a pair of fields you can fill out in your profile (category, item).


-DT
Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
Hi DT,

I downloaded the hack and installed it.

In the CP, Registration Settings I Believe its the one call: Custom/Display Catagory Item above the Location Field. This shows up ok.

In the General Display Settings I believe its under Author Information Display: Display Cusotm Display Catagory Item. This shows up ok.

I set both, cleared cache and went into a user profile. Here the two fields are marked on as:
:
:

I put test1 in 1 and test 2 in the second.

When I go back to the board and try to go anywhere I get error:
-----------------------------
[Hack attempt logged or corrupt/altered member file found with extra fields. ('00000003')]
-----------------------------
This is the user number I used in changing the profile.

Also, trying to get in the board from anywhere else or any other user, the same message appears.

Suggestions and which maybe needs a re-hack?

Thanks

Rainner

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Ah, this means you have not installed my star/status hack, I forgot to mention the maxmemfields change.

>>>In ubb_lib_files.cgi:

>>>Find:

my $maxmemfields = 31; #total fields permitted in member file

>>>REPLACE with:

my $maxmemfields = 100; #total fields permitted in member file

>>>You're done. Save and upload it.

Sorry about that, I wrote this after stars/status, so I didn't notice that needed changing.


-DT
Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
Hey DT,

That did it, Thanks...

Nice hack hey!

Just wounder is there anyway to "label" the fiels under the user profile section insted of just
:
:

?

Thanks

Rainner

Sponsored Links
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
They are labeled...They use wordlets in the vars_wordlets_mods.cgi; make sure you hacked the wordlet file properly and uploaded it.


-DT
Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
Thanks DT

Rainner

again Nice job!

Joined: Jun 2001
Posts: 62
Eel Offline
Member
Member
Offline
Joined: Jun 2001
Posts: 62
Meh, haven't installed this yet...

we need your status hack installed in order to use this?

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
No, you don't need my status hack to install this. The only required hack is the mods_wordlets. If you don't have star/status installed, you have to do the step that I posted in my previous message about $maxmemfields. I'll update the docs this weekend.


-DT
Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
HI DT

I rehacked vars_wordlets_mods.cgi twice, set perm 777 and cleared cache. I still get the
:
:

maybe you can spot something, heres my wordlets file :

%vars_wordlets_mods = (
q~last_reply_by~ => q~Last reply by~,
mod_wordlets => "Modifications Wordlets",
dtextra_field_cat => q~Custom Display Category~,
dtextra_field_item => q~Custom Display Item~,
_ => q~~,
);
1;


Any clues?

Thanks

Rainner

Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
Hi DT,

Also, since I rehacked it and ran it, it installed 3 files in my cgi-bin call

q~Custom
q~Last
Modifications Worlets,

All with permissions of -rw-r--r--

Maybe a clue?

Rainner

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
You say you re-hacked and ran 'it'; what exactly are you referring to?

As for the :'s, my best idea is that the mods wordlets may not be installed properly, so it doesn't understand how to access the vars_wordlets_mods from the hash. Need to leave now, so I have to cut this message short. I'll post again in about 7-8 hours, when I get back home.


-DT
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
DT, MyStyle hack is already using [56]. I don't have copyright or anything on it, but I suggest you to change it to prevent problems.

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
When did your style hack come out? I say this because I did already reserve 56 a long, long time ago for this...looking for the URL to the thread right now...


-DT
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Yeah...Just checked, I did reserve it before you, LK.

My proof:

https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=10&t=001392

This was posted 10/14/01.

Your MyStyle Thread:

https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=30;t=000094

Your modification was posted on 11/12/01.

Clearly, I reserved field 56 prior to your hack, and therefore have a greater right to use it.


-DT
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
quote:
Originally posted by Dark Templar:
I did reserve it before you, LK.
...
have a greater right to use it.

Couldn't you just say 'I had it since October, take a look here , can you change it please?'. I said in my post there is no such thing as 'reserve'/'right'. I'll change mine later, but when you want someone to do something, ask nicely. In my post I said I have no rights, and I suggest you to change it. Don't be so aggressive!

[ 01-11-2002 03:59 AM: Message edited by: LK ]

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Sorry about that...It's not so much that I'm 'aggressive,' I suppose, it's that I'm just very formal about stuff...I should try to lighten up.


-DT
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
As for changing it, I'll be happy to go ahead and change mine since your hack was already released and mine just came out recently with very few installs/posts. It'll use 57 and 58 instead, no big deal. The way I see it, It was my own fault for not releasing the hack right after I wrote it, but waiting a little while for reasons I don't wanna talk about.


-DT
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Thanks for suggesting it, but I can change mine to 55 now, after Calendar Hack is using 32

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Alrighty then


-DT
Joined: Mar 2001
Posts: 80
Member
Member
Offline
Joined: Mar 2001
Posts: 80
Hey Rainner Did you fix this ?

%vars_wordlets_mods = (
q~last_reply_by~ => q~Last reply by~,
mod_wordlets => "Modifications Wordlets",
dtextra_field_cat => q~Custom Display Category~,
dtextra_field_item => q~Custom Display Item~,
_ => q~~,
);
1;

If not Try adding the q~ at the front of the extra lines and a ~ before the " =>" IE:

q~dtextra_field_cat~ => q~Custom Display Category~,
q~dtextra_field_item~ => q~Custom Display Item~,

It worked for me !!

Paul


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)