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
i was wondering how to modify
in the search box where now search is input,
change to : Search in +10,000 porn videos
and when it automaticly change to images that
Search through 8.800 Porn Pictures
and pornstar the same
and the rest.
greets
Offline
anyone knows how to modify this?
Offline
Edit templates/yoru-template/header.tpl.php and find:
placeholder="<?php echo __('search'); ?>"
and replace with:
placeholder="whatever you want"
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
I think he mean automaticaly
when he choose photo in select to change text in text to "8.800 Porn Pictures" etc
Offline
@thiva7. Exactly
Offline
It can be done, but via ajax and its not so simple, a lot of files need to be modified.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
maybe a nice feature for a new update in the future
Offline
This is what you want rigth
http://jsfiddle.net/b46v6trw/1/
this is very simple example of what u need.but in ASP is deferent to make it work since is not have simple select for search.
When i have time i will look at it more
Last edited by thiva7 (2015-07-23 10:49:16)
Offline
yes that is what i want
thanks.
you're very helpfull to me
thanks for that
Offline
No problem...
Btw i think i made what u ask for
demo : http://dev.scriptdevel.com/
Let me know if is what you asking for
Thanks
Offline
Nice.
That's it?
Offline
Nice.
That's it?
What you mean that's it?
Offline
yes, that is what i need for the search bar
Offline
Ok
Open header.tpl.php of your theme
in Empty space add this
<script>
$(document).ready(function(){
var $this = $(this);
$("li").click(function(){
$("#search_text").val($(this).attr('id'));
});
});
</script>
In your search Input add this
id="search_text"
inside this
<ul class="dropdown-menu pull-right" role="menu">
</ul>
add id="" to each <li>
This id will be what text u want to show in
save and test
Offline
nice !!!!!
can that be updated as standard in future versions of the script ?
Offline
i don't know how to modify it.
i'm trying but i think i add the
id="" to each <li>
not correctly
<ul class="dropdown-menu pull-right" role="menu" id="search_text">
<li <?php if ($action == 'video'): echo ' class="active"'; endif; ?>><a href="#search-videos" id="" class="search-in-video"><i class="fa fa-video-camera"></i> Videos</a></li>
<?php if (VModule::enabled('photo')): ?><li<?php if ($action == 'photo'): echo ' class="active"'; endif; ?>><a href="#search-photo" id="" class="search-in-photo"><i class="fa fa-image"></i> Photos</a></li><?php endif; ?>
<?php if (VModule::enabled('pornstar')): ?><li<?php if ($action == 'pornstar'): echo ' class="active"'; endif; ?>><a href="#search-pornstar" id="" class="search-in-pornstar"><i class="fa fa-user"></i> Pornstars</a></li><?php endif; ?>
<?php if (VModule::enabled('forum')): ?><li<?php if ($action == 'forum'): echo ' class="active"'; endif; ?>><a href="#search-forum" id="" class="search-in-forum"><i class="fa fa-comments"></i> Forum</a></li><?php endif; ?>
<li<?php if ($action == 'community'): echo ' class="active"'; endif; ?>><a href="#search-users" id="" class="search-in-community"><i class="fa fa-user"></i> Users</a></li>
</ul>
</div>
Offline
U done it wrong.
<ul class="dropdown-menu pull-right" role="menu"> <--- dont add nothnig on this line
//here is your <li>
//example LI
<li<?php if ...................
make it
<li id="SOME TEST"<?php if
</ul><--- dont add nothnig on this line
So in each LI add ID with some text that u want to show msg
Offline
like this?
<div class="search">
<?php $actions = array('video' => 'video-camera', 'photo' => 'camera', 'premium' => 'heart', 'community' => 'users', 'forum' => 'comments', 'pornstar' => 'file-image-o');
if (isset($this->menu) && isset($actions[$this->menu])): $action = $this->menu; $icon = $actions[$this->menu]; else: $action = 'video'; $icon = 'video-camera'; endif; ?>
<form id="search-form" method="get" action="<?php echo REL_URL,'/search/',$action; ?>/">
<button id="search" type="button" class="btn btn-default btn-lg pull-right btn-submit"><i class="fa fa-search"></i></button>
<div class="input-group input-group-lg">
<input name="s" type="text" class="form-control" placeholder="<?php echo __('Search'); ?>" value="<?php if (isset($this->query) && $this->query): echo e($this->query); endif; ?>">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<i id="search-icon" class="fa fa-<?php echo $icon; ?>"></i>
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu pull-right" role="menu">
<li id="SOME TEST"<?php if ($action == 'video'): echo ' class="active"'; endif; ?>><a href="#search-videos" id="" class="search-in-video"><i class="fa fa-video-camera"></i> Videos</a></li>
<?php if (VModule::enabled('photo')): ?><li id="SOME TEST"<?php if ($action == 'photo'): echo ' class="active"'; endif; ?>><a href="#search-photo" class="search-in-photo"><i class="fa fa-image"></i> Photos</a></li><?php endif; ?>
<?php if (VModule::enabled('pornstar')): ?><li id="SOME TEST"<?php if ($action == 'pornstar'): echo ' class="active"'; endif; ?>><a href="#search-pornstar" id="" class="search-in-pornstar"><i class="fa fa-user"></i> Pornstars</a></li><?php endif; ?>
<?php if (VModule::enabled('forum')): ?><li id="SOME TEST"<?php if ($action == 'forum'): echo ' class="active"'; endif; ?>><a href="#search-forum" id="" class="search-in-forum"><i class="fa fa-comments"></i> Forum</a></li><?php endif; ?>
<li id="SOME TEST"<?php if ($action == 'community'): echo ' class="active"'; endif; ?>><a href="#search-users" id="" class="search-in-community"><i class="fa fa-user"></i> Users</a></li>
</ul>
</div>
</div>
</form>
Offline
Yes just add the Id to search input
id="search_text"
And make test and let me know
Offline
thanks it works .
Offline
thanks it works .
Nice
Offline
Pages: 1