UseBB Community

The official board for UseBB help and discussion

UseBB Community » Resources & Customization » Disable fields and certain BBcodes?

Disable fields and certain BBcodes?

Moderators: Gaia.

Page: < 1 2

Author Post
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
Only admins can use HTML. I believe you can just disable HTML use within the ACP.

Thanks :).

Yes, the rules page has been tested. All modifications in the database should be working. Else, just report any errors to the modification support topic at UseBB Zone.
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
BTW, is it normal that you can only ban a user from his profile? I tried with the Banning Management (added a test user name) and didn't work...
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Cripes, gotta go, the GF is waiting to press the play button on the DVD player, LOL!

Thanks, you're one heck of a great guy!

Gene
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
raygene wrote
BTW, is it normal that you can only ban a user from his profile? I tried with the Banning Management (added a test user name) and didn't work...


Hmm, I'm not sure on that one, that is something perhaps you should create a new topic for, for Dietrich to take a look at.

Quote
Thanks, you're one heck of a great guy!

Gene


No problem :). I am a female btw ;).
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
The undefined index notice shouldn't occur if you just change the type of real_name to hidden.

And there's a difference between banning a username and an account, the first just disallows the name to be registered, the second blocks the account itself.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Hi Dietrich,

Dietrich wrote
The undefined index notice shouldn't occur if you just change the type of real_name to hidden.


For some strange reason, I did that and it didn't work (change from text to hidden) and had to do all of the preceding in order to get it working without getting the infamous error in line 182. If you wish, I could post that part of the file to see where I went wrong. Mind you, seems to be working OK now.

Dietrich wrote
And there's a difference between banning a username and an account, the first just disallows the name to be registered, the second blocks the account itself.


OK, unserstood. Great Forum software, congrats!

Cheers,
Gene
;)
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Gaia wrote
No problem :). I am a female btw ;).


LOL, open mouth, insert foot... Sorry about that.

Let me rephrase that, you're one heck of a great lady and also a heck of a coder! Thanks for all your help.

BTW, how would I go about changing the "favicon"? Got one for my site but when I load usebb, it has it's own.

Cheers,
Gene
:D
« Last edit by Raygene on Sun Jun 24, 2007 10:06 pm. »
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
Thanks raygene ^_^.

You should be able to replace the favicon by just overwriting the one included with UseBB.
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Gaia wrote
Thanks raygene ^_^.


My pleasure and once again, sorry for the assumption.

Gaia wrote
You should be able to replace the favicon by just overwriting the one included with UseBB.


Kinda figured as much, after I posted this, I went into the GFX folder and found the culprit and replaced it with mine. This will teach me not to ask questions before investigating a little further. :oops:

BTW, had a look at your site, nice...

Take care,
Gene
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
Quote
My pleasure and once again, sorry for the assumption.


No problem, I get that a lot lol.

Again, thanks :).
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Well, wonderful little BB program, simple, secure and fast. I sure hope that a lot of other people will adopt it and get involed in writing MODS and templates for it. phpBB and SMF are great but "overkill" for people who only want a simple and effective forum solution.

I know that I will be spreading the word about this useful little program on various Webmasters forums.

Cheers,
Gene
:)
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Dietrich wrote
The undefined index notice shouldn't occur if you just change the type of real_name to hidden.


OK, now I wonder if there's a simple way to "hide" the following fields in the Edit Profile section in "Your Panel":

- Public e-mail address (defaults to hide and that's what I'd like for anti-spam reasons)
- Hide from Online list (no hidden users on my board :twisted: )
- Date format (use the board's default for all users)

LOL, looks like I'm going wacko like I did with phpBB, can't leave things alone... :roll:

Cheers,
Gene
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
For the options, you will need to edit sources/panel_options.php

But, you will need to make sure the defaults stay, so, it would probably be best to just change the input types to hidden ( It really should work ), and also their values to the defaults.

Change this:


'hide_from_online_list_input' => '<label><input type="checkbox" name="hide_from_online_list" value="1"'.$hide_from_online_list_checked.' /> '.$lang['Yes'].'</label>',


To This:


'hide_from_online_list_input' => '<input type="hidden" name="hide_from_online_list" value="0" /> ',


Change This:


'date_format_input' => '<input type="text" name="date_format" size="25" maxlength="255" value="'.unhtml(stripslashes($functions->get_config('date_format'))).'" />',


To This:


'date_format_input' => '<input type="hidden" name="date_format" value="'.unhtml(stripslashes($functions->get_config('date_format'))).'" />',


Change This:


'email_show_input' => '<label><input type="checkbox" name="email_show" value="1"'.$email_show_checked.' /> '.$lang['Yes'].'</label>',


To This:


'email_show_input' => '<input type="hidden" name="email_show" value="0" /> ',



Try with just that first, if it works, then do your template edits to remove the rows.
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Hey, thanks once again. I'm about to have dinner and I'll play around with this tomorrow.

Guess that the template changes have to be done in panel.tpl.php?

Why can't I just leave things alone... LOL!

Take care,
Gene

BTW, you seem to be here quite a lot, thanks!
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
Quote
Guess that the template changes have to be done in panel.tpl.php?


Yes, that is correct.

I usually visit here each time I am online and checking websites for an updates. So, quite a bit, yes heh. :D.
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Quote
So, quite a bit, yes heh. :D.


Lol, I like the "heh" part, guess we know our heritage, don't we, heh?

What province do you live in? I'm in Québec, hein?

Also, does the PM Mod work with this version of usebb? Tried the pre-modded files on a 2 test boards and got a bunch of SQL errors (I entered the queries using both the built in SQL function and phpMyAdmin)...

Cheers!
Gene
;)
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
^_^.

I am from PEI. I have been to Old Quebec, it is really nice. I quite liked it.

It should work, your best bet for that, is to go on over to UseBB Zone and post the error in the support topic, and I can help you from there.
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Hi Gaia,

Gaia wrote
I am from PEI. I have been to Old Quebec, it is really nice. I quite liked it.


I live in Gatineau, 10 minutes away from Ottawa (where all the BS happens, heh)

Applied the Mods you suggested and also made the changes to the tpl file, works like a charm.

Thanks,
Gene
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
LOL! With version 1.0.7 out, I'm going to have to do all of the above modifications all over again.

This patch thing looks OK but I don't really care for it. I wish this update was written out as a Mod, just like phpBB so you don't screw-up your modded board.

Cheers,
Gene
« Last edit by Raygene on Mon Jul 09, 2007 11:19 pm. »
Developer
Registered: Apr 2004
Posts: 2202
Location: Belgium
Patch files can be read manually as well.

*** original file name
--- new file name
***************
*** original line number span ****

! original code line

--- new line number span ----

! new code line

***************
*** original line number span ****
--- new line number span ----

+ added code line

***************
*** original line number span ****
--- new line number span ----

- removed code line

***************
etc.


Since we do not have a standard "mod" format there's no way of distributing changes as a "mod". There are also no plans of creating one since UseBB 2 will primarily use plug-ins instead of code modifications.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Moderator
Registered: Oct 2005
Posts: 437
Location: canada
Yup, can't wait for plugins :D
Member
Registered: Jun 2007
Posts: 122
Location: Gatineau, QC, Canada
Gaia wrote
Yup, can't wait for plugins :D


Me too, will be a charm.

Quote
Patch files can be read manually as well.


I did read the patch file and decided that applying this thread's modifications and installing the Mods I had on 1.0.6 would be quicker.

Cheers,
Gene
;)

Page: < 1 2

UseBB Community » Resources & Customization » Disable fields and certain BBcodes?

UseBB Community is powered by UseBB 1 Forum Software