Fork me on GitHub

Rapport de message :*
 

Re: Theme avec recherche & menu utilisateur intégrer

Titre du sujet : Re: Theme avec recherche & menu utilisateur intégrer
par eparcyl92 sur 20/07/2008 20:48:22

Bonsoir,
Quel est le thème que tu utilise?
Sinon, c'est du morphogenesis
Tu dois créer un fichier "searchbar.html" et mettre un truc comme çà:
<div id="xo-searchbar">
<
form name="search" method="get" action="<{xoAppUrl /search.php}>">
<
input type="text" id="query" name="query" class="keyword" value="" maxlength="255" tabindex="1" title="<{$smarty.const.THEME_KEYWORDS}>"/>
<!--<
input type="text" id="query" name="query" class="keyword" value="<{$smarty.const.THEME_KEYWORDS}>" onfocus="this.value=(this.value=='<{$smarty.const.THEME_KEYWORDS}>')? '' : this.value ;" maxlength="255" tabindex="1" />-->
<
input type="hidden" name="action" id="action" value="results"/>
<
input type="submit" value="<{$smarty.const.THEME_SEARCH}>" class="button" tabindex="2" title="<{$smarty.const.THEME_DESC_SEARCH}>"/>
</
form>
</
div>


et un fichier "userbar.html avec un truc du genre..

<div id="xo-userbar">
    <{if !
$xoops_isuser}>
        <!-- 
menu in anonymous mode-->
        <
form method="post" action="<{xoAppUrl /user.php op=login}>">
            <{
$smarty.const._LOGIN}><br /><input name="uname" type="text" value="<{$smarty.const.THEME_PSEUDO}>" onfocus="this.value=(this.value=='<{$smarty.const.THEME_PSEUDO}>')? '' : this.value ;" title="<{$smarty.const.THEME_DESC_PSEUDO}>"/><br /><input name="pass" type="password" value="<{$smarty.const.THEME_PASSWORD}>" onfocus="this.value=(this.value=='<{$smarty.const.THEME_PASSWORD}>')? '' : this.value ;" title="<{$smarty.const.THEME_DESC_PASSWORD}>"/>
        <
input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />
        
        <{if 
$lang_siteclosemsg}>
        <
input type="hidden" name="xoops_login" value="1" />
        <{/if}>
        <
button type="submit"><img src="<{xoImgUrl icons/users/home.png}>" alt="<{$smarty.const._LOGIN}>" /></button>
        <!--<
input id="remember"type="checkbox" name="rememberme" value="On" title="<{$smarty.const.THEME_REMEMBER}>"/><{$smarty.const.THEME_REMEMBER}>-->
            
        </
form>
        <
br /><a href="<{xoAppUrl /register.php}>" class="register" title="<{$smarty.const.THEME_REGISTER}>"><{$smarty.const.THEME_REGISTER}></a>
    <{else}>
        <!-- 
menu in recorded mode -->
        <{
$smarty.const.THEME_WELLCOME}>&nbsp;<a id="xo-uname" href="<{xoAppUrl /user.php}>" title="<{$smarty.const.THEME_PROFILE}>"><{$xoops_uname}></a>

      <!--, 
we are the <{$smarty.now|date_format:"%d %B %Y"}> if you want to display the current date it decomment is needed the line --><!-- &nbsp;: --><br />

      <!-- for 
my message box  -->
        <{
xoInboxCount assign=pmcount}>
        <
a href="<{xoAppUrl viewpmsg.php}>">
        <{if 
$pmcount}>
            <!-- if 
I have messages -->
            <
img src="<{xoImgUrl icons/users/inbox-full.png}>" alt="(<{$pmcount}>) <{$smarty.const.THEME_NOTREAD}>"/>
        <{else}>
            <!-- if 
do not have a message -->
            <
img src="<{xoImgUrl icons/users/inbox.png}>" alt="<{$smarty.const.THEME_MESSAGE}>"/>
        <{/if}>
        </
a>
        <!-- 
end my message box-->

        <
a href="<{xoAppUrl /notifications.php}>" title="<{$smarty.const.THEME_NOTIFICATION}>"><img src="<{xoImgUrl icons/users/note_view.png}>" alt="<{$smarty.const.THEME_NOTIFICATION}>"/></a>
        <
a href="<{xoAppUrl /user.php}>" title="<{$smarty.const.THEME_MYACCOUNT}>"><img src="<{xoImgUrl icons/users/profile.png}>" alt="<{$smarty.const.THEME_MYACCOUNT}>"/></a><br />
        <
a href="<{xoAppUrl /search.php}>" title="<{$smarty.const.THEME_DESC_SEARCH}>"><img src="<{xoImgUrl icons/users/find.png}>" alt="<{$smarty.const.THEME_DESC_SEARCH}>" /></a>

        <!-- 
additional link if I have rights of administration of module -->
        <{if 
$xoops_isadmin}>
            <
a href="<{xoAppUrl /admin.php}>" title="<{$smarty.const._CPHOME}>"><img src="<{xoImgUrl icons/users/configuration.png}>" alt="<{$smarty.const._CPHOME}>" /></a>
        <{/if}>
        <!-- 
end additional link-->

        <
a href="<{xoAppUrl /user.php op=logout}>" title="<{$smarty.const._LOGOUT}>" ><img src="<{xoImgUrl icons/users/exit.png}>" alt="<{$smarty.const._LOGOUT}>"/></a>
    <{/if}>
</
div>


Le tout, avec les icones adaptés dans un dossier images et inscrire les liaison dans ton fichier principal....

Bref... une prise de tête pas possible.

Tu devrais prendre un thème qui te plais et le décortiquer.

Bonne soirée
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

24 Personne(s) en ligne (20 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 24 | Plus ...