News:

Wondering if this will always be free?  See why free is better.

Main Menu

Anecdota

Started by Crip, July 07, 2008, 12:53:38 PM

Previous topic - Next topic

GlitchPC

Crip...

I'm thinking of replacing the search box in the header with Google Search...mind you...just thinking about it.

Now...I've searched the index.template.php file and found the following code:

echo '
<div id="searcharea">';
  echo '
  <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
  <input class="inputbox" type="text" name="search" value="', $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" />';

  // Search within current topic?
if (!empty($context['current_topic']))
echo '<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
 
  // If we're on a certain board, limit it to this board ;).
  elseif (!empty($context['current_board']))
echo '<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
echo '
</form>';
echo '
</div>';


Google provides code for the search button...

Where would I replace the code in your template?

I hope you can help me with this...if not...I can trial and error it, I guess.  I'm not much of a coder...heh...not one, at all.  Just enough to get myself into trouble.

I appreciate anything you can give me that points me in the right direction...

Crip

I haven't ever used Goo search , i suppose u could replace it with the code you posted..? => mix n match i reckon?
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

GlitchPC

Crip...

Haven't heard from me in a few days, huh?   ;D

Anyway...I've been looking through the CSS to see if I can modify it so when an image is linked, there's no line underneath it.

I know the CSS has an entry to prevent the border (for images) but, is there a way to code it so a line doesn't appear underneath the image when the image is linked?  If there is...will this have an affect on text links?  What would the code be?


Thanks, in advance...

Crip

not sure , none that I know of right off??

..? maybe ? :;

text-decoration: none;

or::

test-decoration: 0;
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

GlitchPC

Crip...thanks for the reply....

I had already looked into those codes in CSS...yet, no luck.  This is an inherent issue with linked images...and although there is CSS to fix it...I've found out it can be rather involved and not always a real workable solution.

Guess I can live with it...just thought I'd ask.

Crip

That's cool , i've just never saw or heard of it until now??
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

ravoron

#406
Привет всем!
Тема понравилась, под цвет сайта и нашего общества авиаторов!
Логотип сменил сам, радовался как ребенок!
Корень www/forum/Themes/Anecdota_20g/images/img/logo.png , файл logo.png удалил, создал файл logo.png, закачал свой логотип. Благодаря Темно-волк  в  /forum/Themes/Anecdota_20/css/index.css исправил  width: 98%; height: 98%; а вот дальше у меня код другой
}
/* BANNER / LOGOS */
#logo a {
    position: absolute;
    top: 5px;
    left: 300px;
    display: block;
    width: 98%;
    height: 98%;
    cursor: pointer;
         background: url(../images/img/logo.png) no-repeat!important;
Логотип закрывает Новости. Уважаемый Темно-волк под размер доски у меня не выходит. Подскажите мой сайт hxxp:www.99011.ru [nonactive], на платном хостинге
      

ravoron

Прошу прощения, Crip
код

   background: #002A5C;
   font: 78%/130% Verdana, sans-serif;
   margin: 0;
   padding: padding: 10px 0 10px 0;
не меняется логотип

Crip

I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

ravoron

Dear!
The situation is this: Forum SMF 2.0.2, downloaded the theme Anecdota (versions 12 and 20g) in the color theme site. Worked well, changed the logo forum, set up partitions. He worked a week, then a section of the first format and dropped the old logo (my community) in the norm of the remaining sections.
In the admin set up, dropped to the user - after all sections were broken. And most importantly admin menu and all were gone. So went to the ISP, thought that the themes of conflict with each other and took a deleted version of topic 12 (_20g was the default). and all the forums gone, Can not load 'main_above' pattern.
Restore from backup does not want to tell me-.

ravoron

Quote from: Crip on April 20, 2012, 06:31:49 AM
English Please?
Hi all!
Topic liked the color of the site and in our society aviators!
Logo changed myself, happy as a child!
Root www/forum/Themes/Anecdota_20g/images/img/logo.png, deleted file logo.png, has created a file logo.png, upload your logo. Thanks to Dark wolf / forum/Themes/Anecdota_20/css/index.css fixed width: 98%, height: 98%, but then I have a different code
}
/ * Banner / LOGOS * /
# Logo {
     position: absolute,
     top: 5px;
     left: 300px;
     display: block;
     width: 98%;
     Height: 98%;
     cursor: pointer;
          background: URL (.. / photos / IMG / logo.png) is important not to repeat;
News logo covers. Dear Dark wolf the size of the boards I have not come out. Tell my site hxxp: hxxp:www.99011.ru [nonactive] [], on a paid hosting

Crip

I do not understand 'what  your asking' ??
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

ttatoto

#412
Hi, I'm new to SMF and don't have much experience in php editing :)

I'm currently using this theme on SMF version 2.0.2 and want to change the hyperlink of the logo from its own to somewhere else? How can I do that?

Thanks in advance,

Crip

1st Back Up Index.template.php
"[ index.template.php ]"
Find this:

   echo '
          <div id="logo">
               <a href="'.$scripturl.'" title=""></a>
                    </div>';
               echo '



  • Then Add  your link Like:

       echo '
              <div id="logo">
                   <a href="http://www.yourotherlink.com" title="Your Link" target="_blank"></a>
                        </div>';
                   echo '
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

ttatoto

Quote from: Crip on July 31, 2012, 03:06:13 PM
1st Back Up Index.template.php
"[ index.template.php ]"
Find this:

   echo '
          <div id="logo">
               <a href="'.$scripturl.'" title=""></a>
                    </div>';
               echo '



  • Then Add  your link Like:

       echo '
              <div id="logo">
                   <a href="http://www.yourotherlink.com" title="Your Link" target="_blank"></a>
                        </div>';
                   echo '

Thanks a lot!

RoyalMess

Hi there, i just started using your theme and it is working very well and looks nice but i cannot seem to add a button, tried finding the lines from the very first few posts in this topic but no luck.

Running the latest SMF version, hopefully you know how :)

Crip

Quote from: RoyalMess on December 11, 2012, 01:39:09 PM
Hi there, i just started using your theme and it is working very well and looks nice but i cannot seem to add a button, tried finding the lines from the very first few posts in this topic but no luck.

Running the latest SMF version, hopefully you know how :)

You need to go here and read......
http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

RoyalMess

Quote from: Crip on December 11, 2012, 03:25:25 PM
Quote from: RoyalMess on December 11, 2012, 01:39:09 PM
Hi there, i just started using your theme and it is working very well and looks nice but i cannot seem to add a button, tried finding the lines from the very first few posts in this topic but no luck.

Running the latest SMF version, hopefully you know how :)

You need to go here and read......
http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0

Ah cheers, figured it out but only one problem.
Whenever i choose it it doesn't stay highlighted like the forum or index button.
However the index button gets highlighted when the button (page) called Chat is opened.

Crip

You also must set whether or not the link is Active.
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

gp10

Hi,

Fantastic theme but i have a question.

How can I change the background color: blue to a picture? I want the search espace, the news space, everything like original but change the color to a picture.

[/URL]

Advertisement: