Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1340 Posts in 347 Topics- by 435 Members - Latest Member: vtran4270

Pages: 1 [2]   Go Down
Print
Author Topic: Theme parsing problem  (Read 1749 times)
0 Members and 1 Guest are viewing this topic.
Squizz
New Member
*

Karma: +0/-0
Offline Offline

Posts: 4


« Reply #15 on: July 09, 2008, 12:33:35 AM »

No theme for me either.

I tried the code above as well to no avail.

Quote
Troubleshooter:

    * PHP version: 5.2.3 (Should be PHP 5.0.0 or above)
    * PHP Safe Mode is off
    * eTicket version: 1.7.2
    * Webserver: Apache/2.0.59 (Win32) DAV/2 PHP/5.2.3
    * Database: MySQL 5.0.41-community-nt (Should be MySQL 4.1 or above)
    * GD version: bundled (2.0.34 compatible)
    * Multibyte String is installed
    * iconv version: 1.9
    * IMAP is not installed eTicket will not work correctly if you use automail.php.
    * Socket support enabled.
    * Operating System: Windows_NT
    * User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15
    * Character set: UTF-8
    * Link: http://localhost/eticket/troubleshooter.php
Logged
melophat
New Member
*

Karma: +0/-0
Offline Offline

Posts: 3


« Reply #16 on: August 07, 2008, 08:58:18 AM »

This fix did not work for me either.. I found that in firefox 3(and possibly earlier versions?) the slashes were still wrong after this fix...but were correct in IE.. the following code change fixed it for me.. 
basically using browser detection, the code will use the original code for IE but will switch the separator to / in firefox

in init.php, replace lines 178 - 181 with the following code.  hopefully this will be a more universal fix..  let me know if it works for you guys too..

Code:
$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
if(strpos($user_agent, 'Gecko') !== false)
{
    $themes_dir = add_trailing_slash($themes_dir, "/");
$theme_dir = add_trailing_slash($themes_dir . $theme, "/");
$image_dir = add_trailing_slash($theme_dir . $image_dir, "/");
$buttons_dir = add_trailing_slash($image_dir . $buttons_dir, "/");
}
elseif(strpos($user_agent, 'MSIE') !== false)
{
    $themes_dir = add_trailing_slash($themes_dir, DIRECTORY_SEPARATOR);
    $theme_dir = add_trailing_slash($themes_dir . $theme, DIRECTORY_SEPARATOR);
    $image_dir = add_trailing_slash($theme_dir . $image_dir, DIRECTORY_SEPARATOR);
    $buttons_dir = add_trailing_slash($image_dir . $buttons_dir, DIRECTORY_SEPARATOR);
}
Logged
beven
Project Manager/Developer
Global Moderator
Super Member
*****

Karma: +9/-3
Offline Offline

Posts: 761


WWW
« Reply #17 on: August 08, 2008, 06:21:07 PM »

Also just a FYI. Win32 servers do have some issues with eTicket. The forums have been starting to pop up alot of issues with windows servers.
Logged

Not to be confused with Bob Evans.
Ask not what eTicket community can do for you - ask what you can do for eTicket community.

Version 2 coming out shortly.
kronos5150
New Member
*

Karma: +0/-0
Offline Offline

Posts: 1


« Reply #18 on: September 05, 2008, 12:00:26 PM »

Issue is that Firefox adheres to html standards. If you look at the sourcecode the relative path is using a "\" instead of a "/" which will mess up your reference to themes and your image links for Firefox but not IE. Go to \inc\header.php and correct the following line:

if (isset($theme_dir)) $temp = preg_replace('/( href=")([^>]*?eticket\.css")/is', '$1' . $theme_dir . '$2', $temp);

with this:

    if (isset($theme_dir)) $temp = preg_replace('/( href=")([^>]*?eticket\.css")/is','$1'.$theme_dir . 'eticket.css"', $temp);   
   
    if (isset($theme_dir))$temp = str_replace('\\','/',$temp);

Please excuse the rough code but it works :-)

« Last Edit: September 05, 2008, 12:07:38 PM by kronos5150 » Logged
Raijin
New Member
*

Karma: +0/-0
Offline Offline

Posts: 5


« Reply #19 on: September 12, 2008, 01:22:27 PM »

Works fine Kronos, thank you very much Smiley
Logged
eTicket Community
   

 Logged
Pages: 1 [2]   Go Up
Print
Jump to: