Condition and vbnavbar for 1.4.14
#35
@Luke Beale: I guess I should have checked the code again (with the latest version) to make sure it was up to date with MyBB 1.4.x Wink My bad there as it was already available as a download (see below) and I forgot :p.

Try this instead: (will update the instructions on the other post too)

Quote:Find
$template = str_replace("\\'", "'", addslashes($template));


in inc/class_templates.php (around Line 114) and replace with

$template = str_replace("\\'", "'", addslashes($template));
$template= str_replace("<if condition=","\".iif(",$template);
$template= str_replace("<then>",",\"",$template);
$template= str_replace("<else />","\",\"",$template);
$template= str_replace("</if>","\").\"",$template);

p/s:Having just remembered that class_templates.php is already available as a download (from the first post) is it possible to find out if this file was downloaded and used to overwrite the default file on your forum?
(2009-02-05, 05:42 AM)indigored Wrote: ya, heres a screenshot:

@TomL: Thanks for the help Smile

@indigored: This is one thing I should probably point out from the inherited header. The template section that you want to look at is Header Templates/header and the specific code part is:
<div class="logo" style="background:#fff url('$theme[imgdir]/logobg.gif');">

It is (hopefully) quite self explanatory, and this is essentially the beginning of the the div (or box) where your logo sits. The default white colour of the header is set by
background: #fff
so any colour changes should be made here.

For instance, a black background would have the value
background: #000
Current motto: Cross referencing threads by providing links is a good idea!
Back-on Online - Back-on Fansite
http://www.backon-online.com/

WordPress Snippets
http://www.wpsnippets.com/
Reply


Messages In This Thread
Condition and vbnavbar for 1.4.14 - by flick - 2008-12-28, 04:12 PM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2008-12-29, 09:03 AM
RE: Condition and vbnavbar for 1.4.4 - by adigec - 2008-12-29, 09:35 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2008-12-29, 11:39 PM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2008-12-29, 11:54 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2008-12-30, 12:01 AM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2008-12-30, 12:27 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-01-01, 03:49 AM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2009-01-01, 10:37 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-01-03, 12:13 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-01-03, 03:39 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-01-07, 01:19 AM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2009-01-07, 09:36 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-01-09, 01:12 AM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2009-01-09, 09:25 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-01-09, 08:45 PM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2009-01-09, 09:12 PM
RE: Condition and vbnavbar for 1.4.4 - by bombbob - 2009-01-10, 12:18 AM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2009-01-10, 01:01 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-01-10, 01:36 AM
RE: Condition and vbnavbar for 1.4.4 - by bombbob - 2009-01-10, 12:34 PM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2009-01-10, 05:43 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-01-16, 10:45 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-02-05, 01:33 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-02-07, 12:42 AM
RE: Condition and vbnavbar for 1.4.4 - by Zayebis - 2009-02-08, 02:50 AM
RE: Condition and vbnavbar for 1.4.4 - by Zayebis - 2009-02-08, 03:26 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-02-08, 11:29 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-02-09, 07:36 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-02-10, 09:06 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-02-18, 12:25 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-02-18, 12:40 AM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-03-26, 09:52 PM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2009-03-26, 11:54 PM
RE: Condition and vbnavbar for 1.4.4 - by JohnD - 2009-03-29, 07:28 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-03-29, 09:37 PM
RE: Condition and vbnavbar for 1.4.4 - by okitai - 2009-03-29, 09:56 PM
RE: Condition and vbnavbar for 1.4.4 - by flick - 2009-03-29, 10:11 PM
RE: Condition and vbnavbar for 1.4.4 - by ghazal - 2009-04-08, 06:13 PM
RE: Condition and vbnavbar for 1.4.4 - by Miley - 2009-04-26, 03:43 PM
RE: Condition and vbnavbar for 1.4.5 - by flick - 2009-04-26, 07:42 PM
RE: Condition and vbnavbar for 1.4.5 - by ghazal - 2009-04-27, 05:07 AM
RE: Condition and vbnavbar for 1.4.5 - by flick - 2009-05-08, 11:21 PM
RE: Condition and vbnavbar for 1.4.5 - by flick - 2009-05-12, 07:45 PM
RE: Condition and vbnavbar for 1.4.5 - by faviouz - 2009-05-22, 10:55 PM
RE: Condition and vbnavbar for 1.4.5 - by flick - 2009-05-27, 07:26 AM
RE: Condition and vbnavbar for 1.4.5 - by Veziggo - 2009-06-01, 05:43 AM
RE: Condition and vbnavbar for 1.4.5 - by flick - 2009-06-01, 06:21 AM
RE: Condition and vbnavbar for 1.4.5 - by Veziggo - 2009-06-01, 08:43 AM
RE: Condition and vbnavbar for 1.4.5 - by flick - 2009-06-27, 08:17 PM
RE: Condition and vbnavbar for 1.4.5 - by Veziggo - 2009-07-01, 01:43 PM
RE: Condition and vbnavbar for 1.4.8 - by Pingo - 2009-08-04, 03:38 AM
RE: Condition and vbnavbar for 1.4.8 - by flick - 2009-08-04, 07:42 AM
RE: Condition and vbnavbar for 1.4.8 - by Pingo - 2009-08-04, 09:09 AM
RE: Condition and vbnavbar for 1.4.8 - by faviouz - 2009-08-04, 10:37 PM
RE: Condition and vbnavbar for 1.4.8 - by Pingo - 2009-08-05, 01:52 AM
RE: Condition and vbnavbar for 1.4.8 - by faviouz - 2009-08-05, 05:27 PM
RE: Condition and vbnavbar for 1.4.8 - by flick - 2009-08-16, 07:40 AM
RE: Condition and vbnavbar for 1.4.8 - by flick - 2009-08-16, 07:58 AM
RE: Condition and vbnavbar for 1.4.8 - by faviouz - 2009-08-16, 11:11 AM
RE: Condition and vbnavbar for 1.4.8 - by flick - 2009-08-17, 10:55 PM
RE: Condition and vbnavbar for 1.4.8 - by ghazal - 2009-08-18, 02:32 PM
RE: Condition and vbnavbar for 1.4.8 - by AlanB - 2009-09-27, 04:03 AM
RE: Condition and vbnavbar for 1.4.8 - by Lokki - 2009-10-11, 06:47 AM
RE: Condition and vbnavbar for 1.4.10 - by flick - 2009-12-09, 11:25 PM
RE: Condition and vbnavbar for 1.4.10 - by Lokki - 2009-12-10, 06:29 AM
RE: Condition and vbnavbar for 1.4.10 - by KaneR - 2009-12-31, 04:15 PM
RE: Condition and vbnavbar for 1.4.10 - by flick - 2009-12-31, 05:58 PM
RE: Condition and vbnavbar for 1.4.10 - by roy - 2010-02-09, 09:51 PM
RE: Condition and vbnavbar for 1.4.10 - by flick - 2010-02-11, 12:09 AM
RE: Condition and vbnavbar for 1.4.11 - by Miley - 2010-04-21, 02:17 AM
RE: Condition and vbnavbar for 1.4.13 - by flick - 2010-04-22, 10:57 PM
RE: Condition and vbnavbar for 1.4.13 - by Miley - 2010-07-17, 08:10 PM
RE: Condition and vbnavbar for 1.4.13 - by flick - 2010-07-17, 09:35 PM
RE: Condition and vbnavbar for 1.4.13 - by Miley - 2010-08-03, 05:05 AM
RE: Condition and vbnavbar for 1.4.14 - by Miley - 2010-08-04, 04:10 AM
RE: Condition and vbnavbar for 1.4.14 - by flick - 2010-08-04, 06:18 PM
RE: Condition and vbnavbar for 1.4.14 - by Miley - 2010-08-05, 02:13 AM
RE: Condition and vbnavbar for 1.4.14 - by flick - 2010-08-05, 07:41 AM
RE: Condition and vbnavbar for 1.4.14 - by Miley - 2010-08-07, 11:00 PM
RE: Condition and vbnavbar for 1.4.14 - by flick - 2010-08-08, 08:49 PM
RE: Condition and vbnavbar for 1.4.14 - by Miley - 2010-08-09, 02:56 AM
RE: Condition and vbnavbar for 1.4.14 - by flick - 2010-08-09, 08:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)