Advertisement:

My forum is gone

Aloittaja TheLookBook, kesäkuu 08, 2011, 10:58:03 IP

« edellinen - seuraava »

TheLookBook

This is the message I get when trying to logg into my forum. See the attachment and please see if you can help. Have a resent download of the back up file but can't get to the forum.
Keep Your "Dreams" Alive!

mashby

Which version of SMF are you running there? What changes have you made to site files (specifically index.template.php)? This topic will likely be moved after question #1 is answered.
Always be a little kinder than necessary.
- James M. Barrie

mashby

Always be a little kinder than necessary.
- James M. Barrie

TheLookBook

Using version 1.1.13 loaded google search in line 179 the box in template area of the theme classic . Screew up I think and deleted something. Great news from the links you provided thanks thanks. Maybe it can be fixed.
Keep Your "Dreams" Alive!

mashby

Yeah, from my perspective, the "maybe not" link is now operational. What google search code were you trying to insert on the classic theme?
Always be a little kinder than necessary.
- James M. Barrie

TheLookBook

Just the standard custom search. The forum is still working with the core theme. I'll stay here if you are on line now and wait for your guidiance. Thank you very much for your help.
Keep Your "Dreams" Alive!

mashby

Well, it's almost pumpkin time for me, but could you provide the specific code that "the standard custom search" refers to? There could be some ' characters that need to be escaped \' in order for it to work properly within the PHP environment.
Always be a little kinder than necessary.
- James M. Barrie

TheLookBook

Here is the code and THANKS Again for your help. Just look at it and leave a message for tommorow. Will be notified via email when you do. My name is Michael
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
  <div class="cse-branding-form">
    <form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
      <div>
        <input type="hidden" name="cx" value="" />
        <input type="hidden" name="ie" value="UTF-8" />
        <input type="text" name="q" size="55" />
        <input type="submit" name="sa" value="Search" />
      </div>
    </form>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script>
    <script type="text/javascript" src="http://www.google.com/cse/t13n?form=cse-search-box&t13n_langs=am%2Cel%2Cml%2Cpa%2Cta%2Car%2Cgu%2Cmr%2Cru%2Cte%2Cbn%2Chi%2Cne%2Csa%2Cti%2Cen%2Ckn%2Cfa%2Csr%2Cur"></script>
  </div>
  <div class="cse-branding-logo">
    <img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
  </div>
  <div class="cse-branding-text">
    Custom Search
  </div>
</div>


<script type="text/javascript" src="http://www.google.com/cse/query_renderer.js"></script>
<div id="queries"></div>
<script src="http://www.google.com/cse/api/pub ID/queries/js?oe=UTF-8&amp;callback=(new+PopularQueryRenderer(document.getElementById(%22queries%22))).render"></script>
Keep Your "Dreams" Alive!

Joker™

It'd be much better if you can attach the complete file here. Also from next time please post the codes in [ code ] tags.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

TheLookBook

Here is the exact code Joker. Very much thanks from you guys. Got the forum fixed with some help from here last night but would love to have the Google search and more themes, avatars, social plug-ins and Goodies. Downloaded some files but when trying to upload from a file on my computer I get the message: The file is either corrupt or for the wrong version. Also get a error when trying to upgrade to a newer version of SMF. Again Thanks.

<style type="text/css">
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-bottom" style="background-color:#FFFFFF;color:#000000">
  <div class="cse-branding-form">
    <form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
      <div>
        <input type="hidden" name="cx" value="partner-pub-9099984094532243:6260513126" />
        <input type="hidden" name="ie" value="UTF-8" />
        <input type="text" name="q" size="55" />
        <input type="submit" name="sa" value="Search" />
      </div>
    </form>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script>
    <script type="text/javascript" src="http://www.google.com/cse/t13n?form=cse-search-box&t13n_langs=am%2Cel%2Cml%2Cpa%2Cta%2Car%2Cgu%2Cmr%2Cru%2Cte%2Cbn%2Chi%2Cne%2Csa%2Cti%2Cen%2Ckn%2Cfa%2Csr%2Cur"></script>
  </div>
  <div class="cse-branding-logo">
    <img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
  </div>
  <div class="cse-branding-text">
    Custom Search
  </div>
</div>
Keep Your "Dreams" Alive!

Joker™

And where do you want to add it exactly? (as screen shot can do wonders ;))

Which theme are you using on your forum?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

TheLookBook

I'm using the Classic Theme and want to put the search box and Google Translate right next to the news item shown in the screenshot at the top in the attachment.

Thanks a Million.
Keep Your "Dreams" Alive!

Joker™

Make changes in below mentioned file

themes\classic\index.template.php (Make backup of file before editing it)

Koodi (Find:) [Valitse]
<td colspan="2" valign="middle" align="center" class="tborder" style="border-width: 1px 0 0 0; font-size: smaller;">';



Koodi (replace it with:) [Valitse]
<td colspan="3" valign="middle" align="center" class="tborder" style="border-width: 1px 0 0 0; font-size: smaller;">';




Koodi (Find:) [Valitse]
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<tr class="windowbg2">
<td colspan="2" height="24" class="tborder" style="border-width: 1px 0 0 0; padding-left: 1ex;">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>
</tr>';



Koodi (Replace it with:) [Valitse]
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<tr class="windowbg2">
<td colspan="2" height="24" class="tborder" style="border-width: 1px 0 0 0; padding-left: 1ex;">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>';

echo '
<td><style type="text/css">
@import url(http://www.google.com/cse/api/branding.css); [nofollow]
</style>
<div class="cse-branding-bottom" style="background-color:#FFFFFF;color:#000000">
<div class="cse-branding-form">
<form action="http://www.google.com/cse [nofollow]" id="cse-search-box" target="_blank">
<div>
<input type="hidden" name="cx" value="partner-pub-9099984094532243:6260513126" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="55" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/jsapi [nofollow]"></script>
<script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script>
<script type="text/javascript" src="http://www.google.com/cse/t13n?form=cse-search-box&t13n_langs=am%2Cel%2Cml%2Cpa%2Cta%2Car%2Cgu%2Cmr%2Cru%2Cte%2Cbn%2Chi%2Cne%2Csa%2Cti%2Cen%2Ckn%2Cfa%2Csr%2Cur [nofollow]"></script>
</div>
<div class="cse-branding-logo">
<img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif [nofollow]" alt="Google" />
</div>
<div class="cse-branding-text">
Custom Search
</div>
</div></td></tr>';
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

mashby

You may also want to move this bit up into the <head> area of that file:
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
And do not include any of the [nofollow] things :)
Always be a little kinder than necessary.
- James M. Barrie

TheLookBook

Thanks very much. Will back the file up and get this done. Problem solved. Will need help witha next step later.
Keep Your "Dreams" Alive!

TheLookBook

Thanks and was able to place the search and other code pretty much anywhere on the board after understanding the index template from your knowledge.
Keep Your "Dreams" Alive!

TheLookBook

Please help me understand the screenshot included in this post. My FTP information is included on the screenshot. Keep getting this message (some files are not writeable) when trying to apply mods and/or upload from my computer and  sometimes get the message: wrong login information. Please advise SMF version 1.1.13 Forum address: http://bsmooth.com/thelookbook  :-\

Thanks for your help
Keep Your "Dreams" Alive!

Joker™

Chmod your all files to 644 and folders to 755.

If that solves you issue please mark this topic as solved.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

TheLookBook

Lainaus käyttäjältä: Joker™ - heinäkuu 07, 2011, 05:09:40 AP
Chmod your all files to 644 and folders to 755.

If that solves you issue please mark this topic as solved.

Hello Joker, I see this Chmod in other installation instructions in the readme files in SMF products. Is this setting change within my server settings or somewhere over here in a control panel. Very new to this, a bit confused and thanks for the response. ps. got help here yesterday concerning another issue that worked out.  :)
Keep Your "Dreams" Alive!

Illori

take a look at How do I chmod? / what is chmod? you should be able to chmod in your ftp client and your file manager.

TheLookBook

#20
Got IT! Thanks for the link. Also, I'm using SMF 1.1.14 and just uploaded 2.0 upgrade onto my server and will extract the files. I have also uploaded webinstall along with it. Got the readme and the instructions seems pretty clear. When I excecute this, will I keep all of my work done on the previous installation 1.1.14 or will I have to start over? One other thing, is this the way to install mods that match the version used for my forum and where can I find info on adding a server in the administration panel area (packages) on my forum. Thanks for all the support.
Keep Your "Dreams" Alive!

Illori

please open a separate topic for your additional questions as they are not related to your prior question.

TheLookBook

Keep Your "Dreams" Alive!

Advertisement: