It is currently 15 Nov 2018, 08:24
   
Text Size

Error with Titles and Italics

by Nate and Snacko

Moderators: Snacko, CCGHQ Admins

Error with Titles and Italics

Postby BaconCatBug » 16 Jan 2011, 03:50

Hey there Snacko, thought I'd make a new thread rather than carry on off-topicing the old one.

In any case, I got me a Garamond Italic font, and configured it to use it for the Title Italics. However, it is replacing all instances of "en" and "il", not "en-" and "il-", which leads to funny results for anything with the word "Omen" Or "Genesis" in it (for example). :P
User avatar
BaconCatBug
Apprentice
 
Posts: 252
Joined: 17 Dec 2010, 12:13
Has thanked: 6 times
Been thanked: 39 times

Re: Error with Titles and Italics

Postby Snacko » 16 Jan 2011, 14:05

I patched this at some point, but I guess didn't attach it in the updated package.
just find
Code: Select all
 str_replace('en', '#en#', $title);
 str_replace('il', '#il#', $title);
in Card.php and replace with
Code: Select all
 str_replace('en-', '#en#-', $title);
 str_replace('il-', '#il#-', $title);
it will then only italic the hyphenated en and il
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 73 times


Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form