The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
Hello does anyone here know how to put logo in mobile?
Thanks
Offline
Offline
copy the logo yourdomain.com/mobile/templates/default/images/logo.png
then edit yourdomain.com/mobile/templates/default/header.tpl.php and add on line 19 just after
<div data-role="header">
this code
<a href="<?php echo RELATIVE_URL; ?>/" class="logo"><img src="<?php echo TPL_REL; ?>/images/logo.png" alt="<?php echo e($this->cfg['site_name']); ?>" /></a>
Offline
not working for me
Offline
not working for me
what's your website?
Offline
hdvideos.xxx/mobile/
pvh wrote:not working for me
what's your website?
Offline
hdvideos.xxx/mobile/
<h1>...</h1>
drop the h1 tag from your code.
Last edited by ionut (2012-03-21 10:45:48)
Offline
When I remove <h1> the top bar goes off ... still not working
Offline
also not working for me http://asianxvideo.net/mobile/
Offline
both of you removed the <h1><?php echo e($this->title); ?></h1> after the code inserted for logo and the logo is covered by the button that changes language because you have data-role="dialog" instead of data-role="button".
the final code should look like:
<a href="<?php echo RELATIVE_URL; ?>/" class="logo"><img src="<?php echo TPL_REL; ?>/images/logo.png" alt="<?php echo e($this->cfg['site_name']); ?>" /></a>
<h1><?php echo e($this->title); ?></h1>
<a href="<?php echo MOBILE_REL; ?>/language/?url=<?php echo base64_encode(CURRENT_URL); ?>" data-icon="gear" data-role="button" data-rel="dialog" data-transition="pop" data-theme="b" class="ui-btn-right"><img src="<?php echo MEDIA_REL; ?>/flags/<?php echo $this->flag; ?>.png" /></a>
also do a smaller logo, that is way to big.
Offline
Working now ! Thanks for your help
both of you removed the <h1><?php echo e($this->title); ?></h1> after the code inserted for logo and the logo is covered by the button that changes language because you have data-role="dialog" instead of data-role="button".
the final code should look like:
<a href="<?php echo RELATIVE_URL; ?>/" class="logo"><img src="<?php echo TPL_REL; ?>/images/logo.png" alt="<?php echo e($this->cfg['site_name']); ?>" /></a> <h1><?php echo e($this->title); ?></h1> <a href="<?php echo MOBILE_REL; ?>/language/?url=<?php echo base64_encode(CURRENT_URL); ?>" data-icon="gear" data-role="button" data-rel="dialog" data-transition="pop" data-theme="b" class="ui-btn-right"><img src="<?php echo MEDIA_REL; ?>/flags/<?php echo $this->flag; ?>.png" /></a>
also do a smaller logo, that is way to big.
Last edited by pvh (2012-03-21 12:26:26)
Offline
I already gave you the link how to do it. lol
Offline
both of you removed the <h1><?php echo e($this->title); ?></h1> after the code inserted for logo and the logo is covered by the button that changes language because you have data-role="dialog" instead of data-role="button".
the final code should look like:
<a href="<?php echo RELATIVE_URL; ?>/" class="logo"><img src="<?php echo TPL_REL; ?>/images/logo.png" alt="<?php echo e($this->cfg['site_name']); ?>" /></a> <h1><?php echo e($this->title); ?></h1> <a href="<?php echo MOBILE_REL; ?>/language/?url=<?php echo base64_encode(CURRENT_URL); ?>" data-icon="gear" data-role="button" data-rel="dialog" data-transition="pop" data-theme="b" class="ui-btn-right"><img src="<?php echo MEDIA_REL; ?>/flags/<?php echo $this->flag; ?>.png" /></a>
also do a smaller logo, that is way to big.
I already done what you said. and also make my logo smaller. But still the logo wont show http://asianxvideo.net/mobile/
Offline
@cutetallguy8 don't ignore
the logo is covered by the button that changes language because you have data-role="dialog" instead of data-role="button".
you still have that
Offline
I am sure my code if ok
<?php defined('_VALID') or die('Restricted Access!'); ?>
<!DOCTYPE html>
<html>
<head>
<title><?php if (isset($this->meta_title)): echo e($this->meta_title); else: echo e($this->mcfg['site_name']); endif; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?php if (isset($this->meta_desc)): echo e($this->meta_desc); else: echo e($this->mcfg['meta_desc']); endif; ?>" />
<meta name="keywords" content="<?php if (isset($this->meta_keys)): echo e($this->meta_keys); else: echo e($this->mcfg['meta_keys']); endif; ?>" />
<link rel="stylesheet" href="<?php echo TPL_REL; ?>/css/jquery.mobile-1.0b2.css" />
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(document).bind("mobileinit", function () { $.mobile.ajaxLinksEnabled = false;});
</script>
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/jquery.mobile-1.0b2.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<a href="<?php echo RELATIVE_URL; ?>/" class="logo"><img src="<?php echo TPL_REL; ?>/images/logo.png" alt="<?php echo e($this->cfg['site_name']); ?>" /></a>
<h1><?php echo e($this->title); ?></h1>
<a href="<?php echo MOBILE_REL; ?>/language/?url=<?php echo base64_encode(CURRENT_URL); ?>" data-icon="gear" data-role="button" data-rel="dialog" data-transition="pop" data-theme="b" class="ui-btn-right"><img src="<?php echo MEDIA_REL; ?>/flags/<?php echo $this->flag; ?>.png" /></a>
<a href="<?php echo MOBILE_REL; ?>/language/?url=<?php echo base64_encode(CURRENT_URL); ?>" data-icon="gear" data-role="dialog" data-rel="dialog" data-transition="pop" data-theme="b" class="ui-btn-right"><img src="<?php echo MEDIA_REL; ?>/flags/<?php echo $this->flag; ?>.png" /></a>
<div data-role="navbar"><ul><?php echo p('menu_main', $this->menu); ?></ul></div>
<form method="get" action="<?php echo MOBILE_REL; ?>/search/">
<div data-role="fieldcontain">
<center><input type="search" name="query" id="search" data-theme="c" value="<?php if (isset($this->query)): echo e($this->query); endif; ?>" /></center>
</div>
</form>
</div>
<?php echo p('adv', 'mobile-header'); ?>
Offline
you have two lines with.
<a href="<?php echo MOBILE_REL; ?> ...
delete the second one.
Offline
Thanks A lot its working now
Offline
Thanks A lot its working now
nice to hear that
Offline
Pages: 1