collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 642
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: missing graphic and  (Read 7176 times)

0 Members and 1 Guest are viewing this topic.

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
missing graphic and
« on: November 27, 2011, 03:00:41 PM »
Hi

After I installed 2.3.4, i have a little problem on the portal. First, the corner of the top bar, I cant seem to get it right. In 2.3.3 i need to change something in portal.css from 160 - 130. But cant find that one now.

And in every left and right block, there ain't any space betweem the blocks.

Any suggestions?

the site is, www.scalerace.dk

Offline Tricky

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #1 on: November 27, 2011, 03:20:24 PM »

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #2 on: November 27, 2011, 03:28:10 PM »
Tried, but didnt do the job. :(

Last time, i need to change the highlighted to 130. That did the job, but that line, I cant find in the new portal.css even though, it shows up there. I have used the View Page Source to find it, in Chrome.

Quote
         </script>
   <link rel="stylesheet" type="text/css" id="portal_css" href="http://www.scalerace.dk/Themes/DinolightV/css/portal.css" />
   <script type="text/javascript" src="http://www.scalerace.dk/Themes/default/scripts/portal.js?234"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var sp_images_url = "http://www.scalerace.dk/Themes/DinolightV/images/sp";
      function sp_collapseBlock(id)
      {
         mode = document.getElementById("sp_block_" + id).style.display == "" ? 0 : 1;
         smf_setThemeOption("sp_block_" + id, mode ? 0 : 1, null, "7a1a0df967a5f8cb5e67239e7dadab5e");
         document.getElementById("sp_collapse_" + id).src = smf_images_url + (mode ? "/collapse.gif" : "/expand.gif");
         document.getElementById("sp_block_" + id).style.display = mode ? "" : "none";
      }
      window.addEventListener("load", sp_image_resize, false);
   // ]]></script>
   <style type="text/css">
      h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
      {
         background: url(http://www.scalerace.dk/Themes/DinolightV/images/theme/main_block.png) no-repeat 0 -160px;
      }
      h4.titlebg span.left, h3.titlebg span.left
      {
         background: url(http://www.scalerace.dk/Themes/DinolightV/images/theme/main_block.png) no-repeat 0 -200px;
      }
   </style>
« Last Edit: November 27, 2011, 04:04:12 PM by Kyian »

Offline Eudemon

  • Jr. Member
  • **
  • Posts: 91
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: missing graphic and
« Reply #3 on: November 27, 2011, 08:11:09 PM »
just to say i'm getting the same problem

This Topic will help you

http://simpleportal.net/index.php?topic=6885.0

:)

i have looked into 2.3.4's files n i see portal.css is removed
btw the post in the link is based off 2.3.3 which has portal.css

since i didn't change my theme after i upgraded simpleportal so the portal.css from last install was still there in my custom theme
but that messed up the page even more (all the spaces between blocks disappeared and the corner issue)

so i have a feeling that we need a new solution
i will look into some codes once i have time
nvm i was looking at the wrong directory

to the thread author

go to ur portal.css in ur custom theme's css directory
open it
look for
Code: [Select]
h4.titlebg span.left, h3.titlebg span.leftchange the width around until it fits
this depends on the custom theme's image size so sometimes it's not the same
« Last Edit: November 27, 2011, 09:24:08 PM by Eudemon »

↑also offer free SMF support and customization↑

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #4 on: November 28, 2011, 11:48:33 AM »
Did Eudemon's advice help you customize portal.css for your custom theme?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #5 on: November 28, 2011, 01:03:16 PM »
Did Eudemon's advice help you customize portal.css for your custom theme?

Nope didnt do the job, its like, its having problem locating inside the main_block where the pixels are.

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #6 on: November 28, 2011, 03:28:30 PM »
for some odd reason it works in the side bars now.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #7 on: November 28, 2011, 03:30:28 PM »
Does that mean the problem is solved?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #8 on: November 28, 2011, 03:38:31 PM »
Nope, or part of. In the Left and Right side blocks it works perfect now. But in the Top/Middle block it doesnt work.

And I have no clue of what i did, I tried the thing in the other topic, it didnt work, and went back to the original.

But I find it pretty odd, that its only in the side blocks it works now.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #9 on: November 28, 2011, 03:48:51 PM »
That is odd.  I looked at the website linked from your profile.
It seems that something about the blocks template or portal template does not get along well with your  theme.
I do not know what the problem is -- the obvious things I tried did not fix it.

Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #10 on: November 28, 2011, 03:50:46 PM »
well, it was the exact same problem in 2.3.3, there I needed to change something from -160 to -130, so it could locate the right part of the main_block, thats probably still the problem, in some way.

But doing it in 2.3.4 didnt work. But guess I'll bee looking in to it, with a friend of mine tomorrow.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #11 on: November 28, 2011, 04:00:18 PM »
Please let us know what you find out.

I'll make sure Sinan learns about it.

If there is a simple way to make SimplePortal compatable with more themes, you can be sure it will get on the list for a future version.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #12 on: November 28, 2011, 04:02:12 PM »
I will, but will the tip for the 2.3.3 help you? it was a small thing.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #13 on: November 28, 2011, 04:03:16 PM »
Sure. Some of the CSS for 2.3.4 has changed, but it might help.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #14 on: November 28, 2011, 04:10:09 PM »
In the following css it says.
//Themes/default/css/portal.css

Code: [Select]
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
    float: left;
    display: block;
    width: 9px;
    height: 31px;
    background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}

In the index.css for the custom theme, it says a different thing for the cordinates, for the main block, it comes here.

//Themes/DinolightV/css/index.css

Code: [Select]
div.cat_bar
{
    background: url(../images/theme/main_block.png) no-repeat 0 -130px;
    padding-left: 9px;
    height: 28px;
    overflow: hidden;
    margin-bottom: 0px;
}

The difference between them is

no-repeat 0 -160px;
and
no-repeat 0 -130px;

When the -160 in the portal.css was changed to -130, it fixed the problem with the little square that is missing. Also I needed to copy the main_block.png to the default theme.

To me, it looks like its the same problem, but in 2.3.4 this little trick didnt work. Seems like its more hardcoded then the CSS.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #15 on: November 28, 2011, 07:48:36 PM »
The biggest difference is the way Simple Portal's block templates are using catbg.  It is different from how dinolite uses them, and different, actually, from how Curve (SMF 2.0 final) uses them.

Simple Portal does things in a way that work fine with curve, but not so much with variants like dino lite v. 2.
I've brought this issue up.

The fix would have to be something fairly similar, I think. I cannot figure out why it looks different in the center block than it does in the side blocks.  I tried looking, using IE F12 developers tools, too.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Fog

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: missing graphic and
« Reply #16 on: November 28, 2011, 09:48:18 PM »
This goes hand in hand with my topic on how many different places does the main_block png file show up on.

There must be a default main_block png -160px in the "block php" or somewhere that we're over looking....

I'm not all that trick in PHP but understand it enough if someone can point me to the block php code?

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #17 on: November 29, 2011, 10:21:28 AM »
You can see the block template in Portal.template.php
For the SMF 2.0 version of SP 2.3.4, you will see that function template_block calls one of two functions depending on the type of theme.  That decision (which type of theme) is made in function sportal_load_compat, in file Subs_Portal.php.

Sinan has tried to accomodate all those themes which have not quite come up to compatability with the SMF 2.0 version of CURVE. This solution matches perfectly with both the new CURVE, and with the older CURVE, but does not work perfectly with every custom theme.

It is difficult to support everything under the sun.

Here is another place where this issue is being discussed:
http://simpleportal.net/index.php?topic=10241.msg53115
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #18 on: November 29, 2011, 10:28:35 AM »
Here's the thing, Kyian
Your left blocks are using cat_bar in the title. And they look fine.

The right blocks though -- they are not using cat_bar.  They are using simple portal's default <h3 class=catbg>, with a <span class=left>.  That's why they look different.

The fix is EXACTLY the kind of fix you had before.

If you look in index.css for h3.catbg (I found this all out using Ie's developers tools F12), you'll see
background-position-y: -130px;

but you will also see, under h3.catbg span.left, background-position-y: -160px;

Those two pieces are never going to match up.

To make the span.left part match up with the catbg part, you need to change the catbg part to -130px;

Then it will work perfectly.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Kyian

  • Semi Newbie
  • *
  • Posts: 11
    • Scalerace
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: missing graphic and
« Reply #19 on: December 07, 2011, 10:34:44 AM »
I ended up doing as in this post

http://simpleportal.net/index.php?topic=10269.msg53397#msg53397

and changing it to 130, then it works now :)

Offline Fog

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: missing graphic and
« Reply #20 on: December 07, 2011, 09:15:20 PM »
I'm glad that helped and thanks for letting us know.

Fog

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: missing graphic and
« Reply #21 on: January 05, 2012, 12:49:23 PM »
Thanks for letting us know, Kyian

I've marked this one solved for you.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?