Recent Posts

Pages: [1] 2 3 ... 10
Graphics and Templates / Re: Star Trek Enterprise Theme
« Last post by Sir Osis of Liver on Today at 01:48:03 AM »
Can a moderator remove attachment from my previous post?  Has some code in it shouldn't be public.
Graphics and Templates / Re: Star Trek Enterprise Theme
« Last post by Sir Osis of Liver on Today at 12:45:58 AM »
One of the customizations I did was removing the dropmenu that selects the upper right header image, and doing a random select that rotated images with every page load.  There was an additional starship pic (Voyager?) in the theme that wasn't an option, cleaned it up a bit and added it to the rotation.  Wonder if I still have that theme somewhere.

Found it, attached.
Theme Previews / Re: Tsunami [theme]
« Last post by iMiKK on Today at 12:43:16 AM »
Nice work! :)
Damn. I had an idea. :P

Obviously the function in Subs.php knows whether there's a next or previous page. So, I can use that to append a class to the page index wrapper. Something obvious and idot-proof like .pageindex_wrapper.first and .pageindex_wrapper.last would be ok.

That way it becomes stylable in the CSS without any extra logic shenanigans. You'd just do it like this:

Code: [Select]
.pageindex_wrapper. {
    margin: 0 40px;
.pageindex_wrapper.first {
    margin-left: 0;
.pageindex_wrapper.last {
    margin-right: 0;

The reason you will need the switchable margins is that the anchors are absolute positioned, which means they don't have any ability to push other things sideways. All the pushing has to be done by the wrapper, so the margins have to be on that, and they have to be wide enough to keep things clear of the anchors when those are displayed (there will always be at least one).

Why not just static or relative position the anchors? Two reasons. First, absolute lets them hide default select ends if you can't style those away in whatever browser. Second, form elements like selects are notorious for inconsistent cross-browser and cross-platform behaviour.

Basically everyone just implements them in their own way, which makes predicting the height with any given font-size and line-height very tricky (read damned near impossible). But, if the anchors are absolute positioned they can be set to top: 0; and bottom: 0; and that makes them automatically stretch to the height of the wrapper, and the wrapper will be the height of the select, so it will always work.

Always work is good. :)
Theme Site Themes / Re: Lazarus
« Last post by Xpresskonami on Yesterday at 09:48:24 PM »
All "Fa icon" in the theme suddenly stop showing... how can i fix this

icon listed

Once I get my hands on it, I'll see what I can do to make it look more pleasant to my eyes.

Thanks for the explanation
Theme Site Themes / Re: Lunarfall
« Last post by m4z on Yesterday at 05:24:03 PM »
Good to know, I'll shut up about it then (the 0.6.5 changelog says "rc2 ready" tho). ;)
Looking great. Can't wait to install!

Haven't looked @ the code yet, but the empty space after "Page 2" sort of bugs me, can that be removed?

It probably can, if you're prepared to throw enough code and determination at it. I'm not prepared to do that.

Obviously there's no point displaying a "next page" link when there's no next page, so the page index in Subs.php is coded to not echo it to the browser in that situation. I could recode it to echo an anchor with no href instead, but that will confuse somebody sooner or later.

The way it works is that the select has 40px padding left and right, and the anchors sit over that. This keeps it nice and compact if the browser doesn't allow styling of selects, and insists on forcing the default dropdown arrow. But obviously when there's no anchor you see the padding. It doesn't bother me. I'm happy with the overall size of that bullet staying consistent.

If you're not happy with it then you (meaning not me) are welcome to code something you prefer.

ETA: Hmm. Stuff it. Now I'm thinking again, and that always means trouble.

Personally I use a Gecko-based browser (or whatever they're calling Gecko these days) and that allows styling of selects. I think Webkit will also allow it if you declare -webkit-appearance: none; but since I've not been coding for a while I haven't tried that recently. No idea what Android does either. I could charge the battery in the old Android tablet I never use and see how it goes, but frankly cannot be bothered at the moment (serious dedication is a thing, y'know).

However, since I personally only give a rat's about Gecko (do they still call it that?) then I could style the selects up with a much smaller side padding. The anchors can still be positioned where I want them by simply changing the left and right declarations, so that's easy.

Naturally, if I do this, someone will rock up using a browser that does not allow styling of selects, and will demand that I sort a solution for them. :P At which point I may refer them to my previous answer. :)
Bosanski/Hrvatski/Srpski (Bosnian/Croatian/Serbian) / Odgovori u temama
« Last post by Francuz-7021 on Yesterday at 03:59:44 PM »
Vrlo je jednostavno, npr:

Code: [Select]
// Do the censor thang.

Zameni sa:
Code: [Select]

// Do the censor thang.
$message['subject'] = preg_replace('/^' . preg_quote($txt['response_prefix']) . '/', '', $message['subject']);

Hvala, a gdje se to to─Źno nalazi?
SMF 2.0.x Support / Re: New here and struggling
« Last post by nidec on Yesterday at 03:57:35 PM »
Thank you Lurkalot!
Pages: [1] 2 3 ... 10