Glacier

Started by rocknroller, October 17, 2011, 11:49:05 AM

Previous topic - Next topic

Bigguy

Well there is no theme.js in this theme or in the zip file. I will try this other theme now.

Bigguy

Nova works fine. :) I would like to use Glacier though, lol. ;)

Chen Zhen

#42
Bigguy,

I was able to duplicate your issue but I need to clarify your standalone setup.

I had to create a sub-directory & put the following files into it: index.php, PortalStandalone.php, SSI.php & Settings.php.
Then I set the portal to standalone & directed it to the standalone file in the main directory. Finally I set the $forum_dir variable within the standalone file to the sub-directory.
The problem only occurs with this theme (from 3 I tested) only while logged in as a member.

Did you do something similar?
Please give exact details regarding your standalone setup (files, edits, settings.. the works).

Note: In the above scenario the SP db setting for the standalone file is not in the same directory that the $forum_dir is set to which seems to have caused the issue.  Having the standalone file residing in the same directory that $forum_dir is set to resolved the issue while testing.


My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Bigguy

My forum is in a sud domain off of the original site. It has been this exact way for 5-7 years now. all themes I have used work fine this way. My setup should be no different then anyone else really. index.php, PortalStandalone.php reside in the root public_html folder. SSI.php & Settings.php are where they are supposed to be as is with all other files. I don't know why this happens with only this theme but I am hoping for a fix if it is possible. It's a great theme. :)

Chen Zhen

#44
Quote from: Bigguy on August 11, 2012, 05:35:26 PM
My forum is in a sud domain off of the original site. It has been this exact way for 5-7 years now. all themes I have used work fine this way. My setup should be no different then anyone else really. index.php, PortalStandalone.php reside in the root public_html folder. SSI.php & Settings.php are where they are supposed to be as is with all other files. I don't know why this happens with only this theme but I am hoping for a fix if it is possible. It's a great theme. :)

So SMF is installed in a sub-folder? (<-- of public_html)
You have installed SP on that SMF site contained within that sub-folder?
If so.. SP should have added a standalone file (in the sub folder/domain).. edit this file & make sure $forum_dir is set to the sub-folder.
Please note the entry is an absolute path & not a url (backslashes). This is the proper setup as described by Sinan within the remark tags of the standalone file.
Please make sure that variable is set properly & then test in all your themes.

I understand that you want a solution that involves an edit to the theme & not any SP settings.
Please consider that an improper SP file setting could somehow cause conflict with that theme's unique js drop-down for user data. 
The js drop-down user info for that theme is somehow causing an issue with SP standalone for logged users.
Perhaps a like tag name/id controlled by js or theme attempting to load js files from parent path (instead of sub-domain path).. not sure atm but will investigate further.

My guess atm.. hmm.. SP literally writes that file during installation & sets that variable.. perhaps it set it to the parent directory & not the sub-directory/domain. Got another hunch now.. working on it.
 


My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Bigguy

All my settings in that file are fine. I have been over them a few times and really can't see anything wrong.

Chen Zhen

Quote from: Bigguy on August 11, 2012, 09:24:20 PM
All my settings in that file are fine. I have been over them a few times and really can't see anything wrong.

Bigguy,

The only way I was able to duplicate your issue (exact symptoms.. appeared for that theme only.. other themes just fine) was when the standalone url was improperly configured.

ie. Let's say the forum url in this example is: http://nfl_rocks
& the standalone file name is default (PortalStandalone.php)
if your forum (sub) path is at:  ...\public_html\my_forum

the standalone url should be:
http://nfl_rocks/my_forum/PortalStandalone.php

When the above is configured correctly (for a forum's specifics) the issue was resolved for me.
However, I did not install all your other listed mods to see if something else is causing a conflict.
btw fyi my tests involved updated versions for both mods.

My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Chen Zhen

#47
Bigguy,

With the theme installed, uninstall SimplePortal & install the latest version (v2.3.5) and then clear the browser cache.
If you haven`t already tried that. It will add a few files to this theme's folder & also edit the display template.

Another possible option you could try is to ignore the top info center function for that theme on your home uri.
It's not a solution but more of a patch.

(Default unedited) File:
/Themes/Glacier/Toppanel.template.php

find:

function top_panel_dn()

{
    global $context, $settings, $options, $txt, $scripturl, $modSettings, $event, $childbutton, $button, $sourcedir;


replace with:

function top_panel_dn()

{
    global $context, $settings, $options, $txt, $scripturl, $modSettings, $event, $childbutton, $button, $sourcedir;

if ('http://www.smfhelper.info/index.php' == strtolower($_SERVER['REQUEST_URL']) || 'http://www.smfhelper.info' == strtolower($_SERVER['REQUEST_URL']))
return false;


My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Bigguy

 I will give your ideas a try and report back. Thank you. You have been a great help. :)

Bigguy

I tried your fix in reply 47 but no go.

Bigguy

Actually with your fix in place (reply 47) and the LGF mod uninstalled the front page now works fine.This is what I used though, just added $boarddir:

function top_panel_dn()

{
    global $context, $settings, $options, $txt, $scripturl, $modSettings, $event, $childbutton, $button, $sourcedir, $boarddir;

if ('http://www.smfhelper.info/index.php' == strtolower($_SERVER['REQUEST_URL']) || 'http://www.smfhelper.info' == strtolower($_SERVER['REQUEST_URL']))
return false;

Chen Zhen

#51
Quote from: Bigguy on August 13, 2012, 07:47:46 PM
Actually with your fix in place (reply 47) and the LGF mod uninstalled the front page now works fine.This is what I used though, just added $boarddir:

function top_panel_dn()

{
    global $context, $settings, $options, $txt, $scripturl, $modSettings, $event, $childbutton, $button, $sourcedir, $boarddir;

if ('http://www.smfhelper.info/index.php' == strtolower($_SERVER['REQUEST_URL']) || 'http://www.smfhelper.info' == strtolower($_SERVER['REQUEST_URL']))
return false;


That's why I put this statement before the code:
Quote
(Default unedited) File:

.. as I was not sure if you left the previous edit I gave you in place or if it is even necessary with this patch that now ignores that glacier drop-down on your home page.

You should not have had to uninstall the LGF mod. That theme & mod go together since the glacier js info center only displays 1/2 of its data without it. Leaving it installed should work for you on any page other than home (because using the patch should disallow it to show there).





Edit ->
  When I look at your forum now, it seems as though you did not have to use the patch? 
Did you only uninstall & reinstall SP ?

The drop-down now works on both the home page & forum if I am logged in or not.
Although it is not showing all its info & I assume this is because the LGF mod remains uninstalled?





Also...

If you are going to leave the edit I gave you from reply #26 make sure to change the require_once path to contain a backslash.
I posted a forward slash in error whereas file paths require a backslash.

ie.

<div class="panel p_left online_box">
<h2 class="title avatar_img">', $txt['lgf_who_online'],'</h2>';
                require_once($boarddir.'\SSI.php');             
/*
Block: Who's Online with Avatar
*/


My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Bigguy

#52
SP has been updated yes. The minute I install LGF Mod the front page goes down. I still have to change this last edit here but I do not think that will make a difference.

EDIT: I changed that last edit to a backslash and must have already changed it before or something. When I do change it the whole site goes down.

Chen Zhen

Quote from: Bigguy on August 14, 2012, 12:37:11 AM
SP has been updated yes. The minute I install LGF Mod the front page goes down. I still have to change this last edit here but I do not think that will make a difference.

EDIT: I changed that last edit to a backslash and must have already changed it before or something. When I do change it the whole site goes down.

Oh?? Absolute path's require backslashes as far as I know. (ie. if you echo $boarddir.. should be backslashes used) Oh well.. if it works with the forward slash prior to SSI.php just use that. Atm can't duplicate your LGF issue. Clear your error log, toggle between home & forum & then check the error log again.. post any errors here please.


My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Bigguy

This would be the only error and it has been here since I installed the theme.

http://community.smfhelper.info/index.php?action=admin 8: Undefined variable: bannerCode  File: index.template.php
Line: 498


Bigguy

With the mod uninstalled but the file LGFBlocks.php put in place, the site goes down again. Not just the front page but the forum as well. With that file gone then all works fine.

Chen Zhen

Quote from: Bigguy on August 14, 2012, 09:05:11 AM
With the mod uninstalled but the file LGFBlocks.php put in place, the site goes down again. Not just the front page but the forum as well. With that file gone then all works fine.

The file itself (or another from the theme) could be corrupt somehow by edit or otherwise.
Imo download the mod anew extract that file & replace it.. or uninstall & delete the LGF mod you got & install the more recent.
Eliminating that possibility. Apply edits discussed here yet again if need be.

Remember that some of these issues require clearing your browser history/cache with every test. (display issues I mean)
Also SP would need to be unstalled & re-installed for it to edit the theme files again if you go that route.

My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Bigguy

I will test it again today and report back. :)

tMicky

Is there a way to not have "Forum Stats" showing in the drop down, top panel?

rocknroller

Quote from: tMicky on September 03, 2012, 06:59:34 PM
Is there a way to not have "Forum Stats" showing in the drop down, top panel?

Please visit our main site for theme support http://www.logooff.net . All is possible but question is, how much that will take time from our of team member to adapt it. That is taken into consideration can we do it for free.  I don't know what you exactly want, so best way is register there and follow this instructions. http://www.logooff.net/index.php?topic=3563.0 Thanks.

Advertisement: