|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
This 'should' be an easy one. I am running 6.1.0.4 with XHTML templates installed. When I use UBB code LIST option, the font size of my list items is one size larger than the rest of the text.
Example:
http://www.netbattletech.com/forum/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=2;t=000508
What do I need to edit to bring it to the correct size?
Thanks in advance!!!
The Dark Phoenix Has Risen
|
|
|
|
Joined: Sep 2000
Posts: 4,211
Master Hacker
|
Master Hacker
Joined: Sep 2000
Posts: 4,211 |
I can't see the example because I need to be logged in.
|
|
|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
quote: Originally posted by Matt Jacob: I can't see the example because I need to be logged in.
Put a diff example up. Was late last night. Not too bright.
http://www.netbattletech.com/forum/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=2;t=000508
The Dark Phoenix Has Risen
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
It's a bug in one of XHTML templates' older versions, IIRC. (maybe it's also in the newest one) I suggest you to upgrade to 6.2.0.
|
|
|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
quote: Originally posted by LK: It's a bug in one of XHTML templates' older versions, IIRC. (maybe it's also in the newest one) I suggest you to upgrade to 6.2.0.
Yuck. Just finished the upgrade to 6.1.0.4 I inherited this board when I joined this league. It was running an early 6.0.x version orginally.
Is there anyway to verify that the latest XHTML (in 6.2) fixes this problem. Not that I don't mind spending an entire weekend recoding my board, but I want to make sure it is worth it. 
The Dark Phoenix Has Risen
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
If it works here, it works in every 6.2 board:
|
|
|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
OK, I found the extra in ubb_lib.cgi It posts properly. The second bug having to do with this is in the reverse_ubb_code script. When you go to edit a post that has bullits in it, it does not convert it back properly. It leaves all the HTML code in place.  This ONLY applies to bullits, the rest of the UBB code converts. All of this is located in ubb_lib_posting.cgi But it is writtin in code that is above my head. I'm playing with it, but am having no luck. Any ideas? I zipped up the .cgi file here: www.netbattletech.com/ubb_prob.zip Go ahead and post in that thread and edit your post. http://www.netbattletech.com/forum/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=2;t=00050 8#000002
The Dark Phoenix Has Risen
|
|
|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
OK, I'm editing the following lines of code:
$_[0] =~ s/ /[*]/isg; $_[0] =~ s//[ ]/isg;
The second line I added. Question: On the second line I want to replace the "[ ]" with nothing (it is causing [ ] to come up in the edited post). What code do I need to put in to either enter a space or enter nothing?
The Dark Phoenix Has Risen
|
|
|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
OK, next question:
What is the code for a line break to show up.
Right now I have it edited to read:
$_[0] =~ s///isg;
That makes it so that everything shows up on one line. Not a big deal, but what is the code I need for a line break? is the HTML code, but if I type that in, then " " shows up in the page. Is there a $?? code that allows it?
The Dark Phoenix Has Risen
|
|
|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
OK, this should be it: I need to tell it to convert: quote:
to the BEGIN UBB QUOTE CODE
And
to the END UBB QUOTE CODE
Any ideas? There are extra at the beginning of each one. That prevents the regular reverse_ubb_code from working with it. 
The Dark Phoenix Has Risen
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
quote: Originally posted by LK: Delete this ZIP file!
Deleted. What's the problem?
The Dark Phoenix Has Risen
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
1. Get sub UBBCode and reverse_ubb_code from 6.2.0's zip.
2. Uncomment the [code] line in sub UBBCode.
I told you to remove the ZIP because it's not allowed to post UBB files/long code from them.
|
|
|
|
Joined: Jan 2002
Posts: 27
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 27 |
LK you are my unconditional HERO!!!!!
Where do I mail the 6-pack?!?!?!
The Dark Phoenix Has Risen
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|