Adult Script Pro Community Forums

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.

#1 2012-03-21 02:48:49

cutetallguy8
Member
Registered: 2011-06-02
Posts: 103

Put logo on mobile

Hello does anyone here know how to put logo in mobile?

Thanks

Offline

#2 2012-03-21 06:34:41

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Put logo on mobile


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#3 2012-03-21 06:58:16

ionut
Moderator
Registered: 2012-03-12
Posts: 32

Re: Put logo on mobile

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

#4 2012-03-21 07:18:58

pvh
Member
Registered: 2011-01-12
Posts: 51

Re: Put logo on mobile

not working for me

Offline

#5 2012-03-21 10:16:23

ionut
Moderator
Registered: 2012-03-12
Posts: 32

Re: Put logo on mobile

pvh wrote:

not working for me

what's your website?

Offline

#6 2012-03-21 10:40:44

pvh
Member
Registered: 2011-01-12
Posts: 51

Re: Put logo on mobile

hdvideos.xxx/mobile/

ionut wrote:
pvh wrote:

not working for me

what's your website?

Offline

#7 2012-03-21 10:45:25

ionut
Moderator
Registered: 2012-03-12
Posts: 32

Re: Put logo on mobile

pvh wrote:

hdvideos.xxx/mobile/

<h1>...</h1>

drop the h1 tag from your code.

Last edited by ionut (2012-03-21 10:45:48)

Offline

#8 2012-03-21 10:48:13

pvh
Member
Registered: 2011-01-12
Posts: 51

Re: Put logo on mobile

When I remove <h1> the top bar goes off ... still not working

Offline

#9 2012-03-21 11:07:57

cutetallguy8
Member
Registered: 2011-06-02
Posts: 103

Re: Put logo on mobile

also not working for me http://asianxvideo.net/mobile/

Offline

#10 2012-03-21 11:26:34

ionut
Moderator
Registered: 2012-03-12
Posts: 32

Re: Put logo on mobile

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

#11 2012-03-21 12:26:08

pvh
Member
Registered: 2011-01-12
Posts: 51

Re: Put logo on mobile

Working now ! Thanks for your help

ionut wrote:

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

#12 2012-03-21 16:20:35

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Put logo on mobile

I already gave you the link how to do it. lol


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#13 2012-03-22 12:32:15

cutetallguy8
Member
Registered: 2011-06-02
Posts: 103

Re: Put logo on mobile

ionut wrote:

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 sad http://asianxvideo.net/mobile/

Offline

#14 2012-03-22 12:37:38

ionut
Moderator
Registered: 2012-03-12
Posts: 32

Re: Put logo on mobile

@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

#15 2012-03-22 12:38:45

cutetallguy8
Member
Registered: 2011-06-02
Posts: 103

Re: Put logo on mobile

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

#16 2012-03-22 12:48:01

ionut
Moderator
Registered: 2012-03-12
Posts: 32

Re: Put logo on mobile

you have two lines with.

<a href="<?php echo MOBILE_REL; ?> ...

delete the second one.

Offline

#17 2012-03-22 13:15:00

cutetallguy8
Member
Registered: 2011-06-02
Posts: 103

Re: Put logo on mobile

Thanks A lot its working now tongue

Offline

#18 2012-03-22 13:21:25

ionut
Moderator
Registered: 2012-03-12
Posts: 32

Re: Put logo on mobile

cutetallguy8 wrote:

Thanks A lot its working now tongue

nice to hear that smile

Offline

Board footer

Powered by FluxBB