Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: victory1935 - syyskuu 18, 2013, 03:54:20 IP

Otsikko: my forum not showing well scattered themes
Kirjoitti: victory1935 - syyskuu 18, 2013, 03:54:20 IP
hellow sorry i gat to use fullstops the space key of my pc has problem
pls i need help my forum site when been accessed in ucbr owser the themes will be scattered and all the tags used to code the site will appear
please i need help my members are complaining

tnx   sorry for the fullstops
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: kat - syyskuu 18, 2013, 04:43:51 IP
A URL, so that we can see, would be helpful. ;)
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: victory1935 - syyskuu 19, 2013, 12:21:04 AP
kk. Boss. My site name is http://anonymouszone.nazuka.net     please view it with UC browser
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: Shambles - syyskuu 19, 2013, 03:42:21 AP
Maybe the browser makers (http://forum.ucweb.com/forum.php) should be alerted... site looks fine on non-mobile browsers.
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: victory1935 - syyskuu 19, 2013, 05:43:32 AP
so how can i make the site also look good on ucbrowser, because that is the browser most of my members like using
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: Shambles - syyskuu 19, 2013, 05:52:58 AP
Have any members of the ucbrowsers forums (http://forum.ucweb.com/forum.php) reported similar issues?
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: victory1935 - syyskuu 19, 2013, 11:13:28 AP
no,... But if i am able to use wap2 will it solve the problem?
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: margarett - syyskuu 19, 2013, 11:36:08 AP
You probably will, but WAP sucks :P in today's mobiles, to use WAP is almost a crime :P

PS: your forum is unavailable --> maintenance mode = 2
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: victory1935 - syyskuu 19, 2013, 07:50:43 IP
Yes.. But it is available now, how can activate wap2?
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: Arantor - syyskuu 19, 2013, 07:51:45 IP
Click on the barely readable WAP2 link in the footer of your theme.
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: victory1935 - syyskuu 20, 2013, 04:39:20 AP
I want it to redirect users automatically to wap2
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: margarett - syyskuu 20, 2013, 05:33:08 AP
I wouldn't advise you to do that... But if you're perfectly sure you want it, you need to change index.php where the wap detection is made.
I'm not with the computer right now but I can help you later
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: victory1935 - syyskuu 20, 2013, 08:24:42 AP
kk...tnx.. will be expecting a reply
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: margarett - syyskuu 20, 2013, 09:05:11 AP
A rough solution is

Find:

if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));


Add before:

$_REQUEST['wap2'] = 1;


If you want to go back (you will do it, sooner or later :P ) just remove that line ;)
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: Arantor - syyskuu 20, 2013, 10:49:12 AP
(That will make *everyone* only ever see the WAP2 version, whereupon most mods won't work properly because most mods never ever touch the Wireless template.)
Otsikko: Re: my.forum.not.showing.well.scattered.themes
Kirjoitti: margarett - syyskuu 20, 2013, 10:51:03 AP
Yup. I noticed what a bad idea this was :P
Otsikko: Re: my forum not showing well scattered themes
Kirjoitti: victory1935 - syyskuu 20, 2013, 02:05:42 IP
Thanks bro.. Sorry for bugging u..... mobile detect is it similar to wap2?
Otsikko: Re: my forum not showing well scattered themes
Kirjoitti: Arantor - syyskuu 20, 2013, 02:21:12 IP
Not really... WAP2 is a theme built into SMF with a bunch of special features, Mobile Detect doesn't actually make it work on mobile, it just figures out if the device *is* mobile and redirects to an existing mobile theme...
Otsikko: Re: my forum not showing well scattered themes
Kirjoitti: victory1935 - syyskuu 20, 2013, 06:27:47 IP
Kk.. Thanks for the support.., but the case here is that, whevever i view any website that uses the smf script via ucbrowser in a mobile device the codes used in designing d script are not scattered but mine is scattered,, that is what i was supprised
Otsikko: Re: my forum not showing well scattered themes
Kirjoitti: Arantor - syyskuu 20, 2013, 06:43:22 IP
I have no idea what you mean by 'scattered'. Pictures would probably help explain what problem you seem to be having.
Otsikko: Re: my forum not showing well scattered themes
Kirjoitti: victory1935 - syyskuu 21, 2013, 12:30:07 AP
What am trying to say is that all those codes, used in creating the smf script are appearing in the forum index when ever a user access my forum site using uc browser
Otsikko: Re: my forum not showing well scattered themes
Kirjoitti: Arantor - syyskuu 21, 2013, 12:31:12 AP
Please, can you take a screenshot of what you're talking about?

I fail to believe that a web browser can't render code that's been standard HTML for most of the last decade.
Otsikko: Re: my forum not showing well scattered themes
Kirjoitti: victory1935 - syyskuu 21, 2013, 11:56:39 AP
Sir.. This are the screenshots...  [img=http://s22.postimg.org/4xxsll2p9/screenshot_5.jpg] (http://postimg.org/image/4xxsll2p9/)     


[img=http://s24.postimg.org/qycawyppd/Screenshot1.jpg] (http://postimg.org/image/qycawyppd/)





<a href='http://postimg.org/image/dvw8v3305/' target='_blank'><img src='http://s2.postimg.org/dvw8v3305/Screenshot2.jpg' border='0' alt="Screenshot2" /></a>      thanks
Otsikko: Re: my forum not showing well scattered themes
Kirjoitti: kat - syyskuu 21, 2013, 01:06:26 IP
You have a file, somewhere, that doesn't have "<?php" as the opening line, I suspect. Or, perhaps, doesn't have "?>" as the closing line.

From those pictures, I'd suspect Profile.template.php and/or Register.template.php. Both files are in the default theme's directory.

Maybe you could attach both files to your next post, so that we can take a look at them?