Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • Change Semicolon in Topic Title
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
Change Semicolon in Topic Title; created by Eureka
Tweet Topic Started: Jul 12 2008, 08:11 PM (868 Views)
Kevin Jul 12 2008, 08:11 PM Post #1
Member Avatar


Posts:
700
Group:
Former Staff
Member
#8
Joined:
Jul 2, 2008
Coding language
HTML/CSS
Title: Topic Title (Semicolon)

Author: Eureka

Placement: Above Copyright

Description: Basically replaces the semi-colon in the topic title to something else. In the previous IF and with IPB, the default it a comma.

Code:
Quote:
 
<script type="text/javascript">
var p = ":";

document.write("<script src='http://divinitycoding.net/scripts/topTitle.js'><\/script>");
</script>

Just change the red to whatever punctuation mark you want. If you want, you can use things like ยท too if you want. I chose a colon because I think it looks better with a colon rather than a comma. Just my preference. Feel free to change it to your liking.
Edited by Reid, Jun 15 2009, 08:14 PM.
Posted Image
Offline Profile Goto Top
 
Pandect Aug 29 2008, 05:33 AM Post #2


Posts:
15
Group:
Member
Member
#775
Joined:
Aug 29, 2008
Coding language
ASP.Net
But I don't get where to put it!
Offline Profile Goto Top
 
KingSingh Aug 29 2008, 01:31 PM Post #3
Member Avatar
Singh is King!

Posts:
149
Group:
Member
Member
#240
Joined:
Jul 23, 2008
Coding language
HTML/CSS
Pandect
Aug 29 2008, 05:33 AM
But I don't get where to put it!
It says...
Quote:
 
Placement: Above Copyright

When you see anything like the above, it's most likely in the Board template. ;)

Nice code, but I don't really mind the semi-colon. :)
Posted Image
Singh is King!
Offline Profile Goto Top
 
Zecht Jan 19 2009, 06:24 PM Post #4
Member Avatar
~Resistance is Flammable~

Posts:
273
Group:
Dedicated
Member
#2,062
Joined:
Jan 18, 2009
Coding language
HTML/CSS
this code does not work for me.
Looking for RP'ers whom know a bit about DnD and other Such for a ZB forum...
http://s1.zetaboards.com/Nox_noctis_Tutela/
My Newest RP forum Project.
Blighted Wilds
Offline Profile Goto Top
 
Lakster37 May 30 2009, 10:47 AM Post #5
Member Avatar
Silent Death

Posts:
43
Group:
Member
Member
#2,711
Joined:
Mar 31, 2009
Coding language
HTML/CSS
It isn't working for me, either. The .js file is still hosted though, so is it a coding error? I was trying to change it to a hyphen, - , but when that didn't work I tried a colon, : , as in the example which wouldn't work as well. :(
Quotes from Instinct:
 
"Don't judge a book till u read its cover" -2cow
"Truly a twisted society when we have to refer to the numbers above someones head to meter the respect they receive." -Strabo9
[19:44:31] Lakster37: *ducks*
[19:44:32] * Kirbypenguin has an orgasm
[19:44:38] Lakster37: phew just in time :P
[19:44:50] * Anubis_451 wipes... whatever that was off his face
[19:44:53] Kirbypenguin: LOL

"Lets, in the future, try and recruit members with names that don't sound like porn spammers." -Strabo9
"The sole purpose of this game is to get that guy in my mouth." -Kiba Tsume
Lakster37: "How'd you get in eighth place out of nine people?"
Kiba Tsume: "I passed someone."

Lost Horizon: Wtf... Someone just got eaten by a cabbage
11:38pm Ryan: Woo loo loo!!!
11:39pm Justin: my god, he's resorted to shouting like some kinda... barbarian
Offline Profile Goto Top
 
Reid May 30 2009, 11:20 AM Post #6
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Well, I coded my own version and got this:
Code:
 
<script type='text/javascript'>
// <![CDATA[
$(function(){
var _splitter = "-";
if (location.href.indexOf("/topic/")!=-1) {
var _holder = $('table.topic:first thead tr th[colspan=2]');
_holder.html(_holder.html().replace("; <small>",_splitter + " <small>"));
}})
// ]]>
</script>
To change the splitter, see the line that says
Code:
 
var _splitter = "-";
and change what's inside the quotes to what you want.

Be aware that if you change it to a hyphen/dash or something, you might want to put a space before it, like so:
Code:
 
var _splitter = " -";
Yep.
The Resource Board
Offline Profile Goto Top
 
Lakster37 Aug 1 2009, 10:46 PM Post #7
Member Avatar
Silent Death

Posts:
43
Group:
Member
Member
#2,711
Joined:
Mar 31, 2009
Coding language
HTML/CSS
Hmm... that actually didn't work for me either, Reid... Would the 3-piece H2 code be effecting it any way? That's the only code I have I can think of that would really conflict with either of these codes...
Quotes from Instinct:
 
"Don't judge a book till u read its cover" -2cow
"Truly a twisted society when we have to refer to the numbers above someones head to meter the respect they receive." -Strabo9
[19:44:31] Lakster37: *ducks*
[19:44:32] * Kirbypenguin has an orgasm
[19:44:38] Lakster37: phew just in time :P
[19:44:50] * Anubis_451 wipes... whatever that was off his face
[19:44:53] Kirbypenguin: LOL

"Lets, in the future, try and recruit members with names that don't sound like porn spammers." -Strabo9
"The sole purpose of this game is to get that guy in my mouth." -Kiba Tsume
Lakster37: "How'd you get in eighth place out of nine people?"
Kiba Tsume: "I passed someone."

Lost Horizon: Wtf... Someone just got eaten by a cabbage
11:38pm Ryan: Woo loo loo!!!
11:39pm Justin: my god, he's resorted to shouting like some kinda... barbarian
Offline Profile Goto Top
 
SlyCooperFan1 Apr 12 2010, 04:46 PM Post #8
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
Reid
May 30 2009, 11:20 AM
Code:
 
<script type='text/javascript'>
// <![CDATA[
$(function(){
var _splitter = "-";
if (location.href.indexOf("/topic/")!=-1) {
var _holder = $('table.topic:first thead tr th[colspan=2]');
_holder.html(_holder.html().replace("; <small>",_splitter + " <small>"));
}})
// ]]>
</script>
First post didn't work. But thank you, Reid, for the other one - that worked perfect!

@Lakster37: I have no clue what the 3-piece H2 code is, but if that's the only one that can affect it, it should be it. :P
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Fully Featured & Customizable Free Forums
Learn More · Sign-up Now
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 7:50 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy