Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: TheLookBook - kesäkuu 08, 2011, 10:58:03 IP

Otsikko: My forum is gone
Kirjoitti: TheLookBook - kesäkuu 08, 2011, 10:58:03 IP
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.
Otsikko: Re: My forum is gone
Kirjoitti: mashby - kesäkuu 08, 2011, 11:02:17 IP
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.
Otsikko: Re: My forum is gone
Kirjoitti: mashby - kesäkuu 08, 2011, 11:11:12 IP
Here might be some good news to you:
http://bsmooth.com/thelookbook/index.php?theme=1

EDIT: OK, maybe not:
http://bsmooth.com/thelookbook/index.php/board,325.0.html
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - kesäkuu 08, 2011, 11:41:07 IP
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.
Otsikko: Re: My forum is gone
Kirjoitti: mashby - kesäkuu 08, 2011, 11:46:58 IP
Yeah, from my perspective, the "maybe not" link is now operational. What google search code were you trying to insert on the classic theme?
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - kesäkuu 08, 2011, 11:54:39 IP
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.
Otsikko: Re: My forum is gone
Kirjoitti: mashby - kesäkuu 08, 2011, 11:59:59 IP
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.
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - kesäkuu 09, 2011, 12:10:26 AP
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>
Otsikko: Re: My forum is gone
Kirjoitti: Joker™ - kesäkuu 09, 2011, 03:41:45 AP
It'd be much better if you can attach the complete file here. Also from next time please post the codes in [ code ] tags.
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - kesäkuu 09, 2011, 10:41:49 AP
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>
Otsikko: Re: My forum is gone
Kirjoitti: Joker™ - kesäkuu 09, 2011, 11:15:48 AP
And where do you want to add it exactly? (as screen shot can do wonders ;))

Which theme are you using on your forum?
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - kesäkuu 09, 2011, 02:06:31 IP
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.
Otsikko: Re: My forum is gone
Kirjoitti: Joker™ - kesäkuu 09, 2011, 03:06:11 IP
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>';
Otsikko: Re: My forum is gone
Kirjoitti: mashby - kesäkuu 09, 2011, 04:12:04 IP
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 :)
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - kesäkuu 09, 2011, 05:31:57 IP
Thanks very much. Will back the file up and get this done. Problem solved. Will need help witha next step later.
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - kesäkuu 09, 2011, 06:59:58 IP
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.
Otsikko: Re: FTP Configuration
Kirjoitti: TheLookBook - kesäkuu 12, 2011, 11:01:07 AP
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
Otsikko: Re: My forum is gone
Kirjoitti: 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.
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - heinäkuu 07, 2011, 11:56:10 AP
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.  :)
Otsikko: Re: My forum is gone
Kirjoitti: Illori - heinäkuu 07, 2011, 12:31:31 IP
take a look at How do I chmod? / what is chmod? (http://wiki.simplemachines.org/smf/What_is_chmod) you should be able to chmod in your ftp client and your file manager.
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - heinäkuu 07, 2011, 01:31:46 IP
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.
Otsikko: Re: My forum is gone
Kirjoitti: Illori - heinäkuu 07, 2011, 01:52:59 IP
please open a separate topic for your additional questions as they are not related to your prior question.
Otsikko: Re: My forum is gone
Kirjoitti: TheLookBook - heinäkuu 07, 2011, 02:06:20 IP
Got It! Thanks