Customizing SMF > Theme Site Themes
Curve Mobile
BGH:
Hi, thanks for this theme & mod, it's working very well for my purposes!
I have a little problem, though. I have images showing in the top menu; in other words, buttons for every each option in the menu (one for Home, another for Help, another for Login, another for Register, and so on). The problem is that whenever someone browses the forum through a mobile device, the images path changes from my custom theme to ./Theme/curve-mobile/images/., and for someone who isn't browsing the forum with mobiles, still shows that last path, so the images don't print themselves.
For example, this is what I have in Subs.php for the Home button:
--- Code: --- 'home' => array(
'title' => '<img style="margin-top:12px;" src="'. $settings['images_url']. '/custom/IMAGE.png" alt="'.$txt['home']. '" width="66" height="25" />',
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
--- End code ---
Summarizing:
Browsing the forum normally shows this path →
http://mysite.com/forum/Themes/my_theme/images/custom/IMAGE.png (which is RIGHT)
Browsing the forum via mobile devices will change to the following path for EVERYONE, with mobiles or without 'em →
http://mysite.com/forum/Themes/curve-mobile/images/custom/IMAGE.png (which is WRONG)
Clearing the admin cache fix this issue, but it sucks doing it everytime this happens.
Is there any way to fix this problem?
Thanks in advance and sorry for my english!
Navigation
[0] Message Index
[*] Previous page
Go to full version