Messages - colby67
16
Off-topic / Re: A short script to remove unused, useless globals in PHP.
« on November 16th, 2013, 12:02 PM »
Come to think of it - I am illiterate at this really - the use of objects, they also take up memory..so could Elkarte with so few globals in fact be using just as much memory as SMF due to them? Maybe some benchmark/resource meter for PHP will show this, I need to investigate further.
17
Off-topic / Re: A short script to remove unused, useless globals in PHP.
« on November 16th, 2013, 11:57 AM »
Very interesting! I have been lazy with this..well, some time ago I started being more observant in my own functions, but I haven't touched any of the SMF native in this manner.

The results I got..(differs from yours? could be my changed script..?
Protendo    2088     its built on SMF 2.0.x so to be expected I guess. Still bad though.
Wedge    542     but I suspect your current working copy have even fewer.
Elkarte    83     Could be from using more OOP perhaps?
SMF2.1    1231     not bad really, but still behind Elkarte/wedge
Silvercircle    1316     not bad
SMF 2.0.6    2500     this I expected hah!


(is there some styling in the table tag in wedge btw? I added a few basic color schemes in Protendo,in  a new table-like tag with headers and title as well, very useful for me at least :D ).

Having unused globals takes memory, right? Thats the main point in removing them?

oh, and I added some to the script to read the results better(for me) so it now just reads:
Code: [Select]
<?php

$i 
0;
find_unused_globals(dirname(__FILE__));
echo 
'<hr>total: '.$i.'';


function 
find_unused_globals($dir)
{
global $i;
$files scandir($dir);
foreach ($files as $file)
{
if ($file == '.' || $file == '..' || $file == '.git')
continue;
if (is_dir($dir '/' $file))
{
find_unused_globals($dir '/' $file);
continue;
}
if (substr($file, -4) != '.php')
continue;
$php file_get_contents($dir '/' $file);
preg_match_all('~\n(\t*)function ([\w]+)[^\n]+\n\1(.*?)\n\1}~s'$php$matches);
foreach ($matches[3] as $key => $val)
{
preg_match_all('~global ([^;]+);~'$val$globs);
$glos = isset($globs[1]) ? implode(','$globs[1]) : '';
preg_match_all('~\$[a-zA-Z_]+~'$glos$there_we_are);
$val str_replace($globs[0], ''$val);
if (isset($there_we_are[0]))
foreach ($there_we_are[0] as $test_me)
if (strpos($val$test_me) === false)
{
echo '<div style="margin: 1px 0; border: solid 1px #aaa;background: #eee; padding: 5px 10px;">Unused global in '$file':'$matches[2][$key], ' -- '$test_me"</div>";
$i++;
}
}
}
}
18
Features / Re: One theme to rule them all?
« on November 14th, 2013, 01:14 PM »
Y'know, I started something similar for Protendo, renaming and changing that is..but it was too much work lol.

But, I have actually made folders = name, same as you have done. Also, Protendo just reads all theme folders at startup, then check if its installed and show the thumbs so one can see what theme it is easily. Those that are not installed will have a install checkbox.

You are right - themes are a real confusing feature in SMF, even if I spent most of my time with them, I still have lots of things I want to change internally. It just shows that the theme feature was a highpoint from Unknown - but less attention have been given to it since(internally that is).

But I have not the patience for rewriting that from scratch, so change bits in turns. :)

On another note: I have installed and tried out Wedge latest. I have to be honest though, its quite another way to work for me. I am not sure where the border between whats user-adjustable, whats auto-generated and whats left to a themer in the skins/themes code. Of course, the skins and its css..but the skeleton, if you change that in a theme, what are the chances it will not be changed by a plugin or the core..or the user? It seems, to me, and pardon me again for being forward :) that theres less "to do" for a themer other than provide the "look" of it. Maybe shift things around - but thats as much the job for the admin as for a themer. This is a bit difficult atm..but I will persevere in it, although it may take some time to then come up with good designs - without being too much alike each other. ;) Thats my drive in it anyhow, it may not be that for others of course.
19
Features / Re: One theme to rule them all?
« on November 12th, 2013, 08:02 PM »
lol, fun times it seems, for you removing that. :)

About series, I like some of them you mention, but most of them is too light for me , Agents of Shield was promising, but now I just see it of curiosity. Person of interest is kind of silly, true..but I love the characters in them, well, most of the time. Spader acting I am mostly unaware of, apart from the old Stargate movie, but then I rarely watch cop series anyway, so Boston legal I haven't seen.

Sherlock is great, look forward to new season, others I follow now are CSI and Supernatural, still exciting! but I started and ended alot of series..lately i saw Broadchurch though, that was a keeper. Another more quirky english series is Utopia, quite excellent :) and of course Walking Dead, whom you know ..but did you know about another, similar but less bloody, called "Les revenants"? :D It was slow at first(well, first episode was quite fascinating), but it soon got me hooked all the way in. And yes, its indeed true what they say about french girls :) Look forward to second season of that too.

My bitbucket account is bloc67 - I think you mentioned it a bit back.

As for the fixed header..uhm, I haven't even checked on mobiles yet. I might get rid of it again, its a fad really, maybe not worth doing "hacks" for it. I'll make my mind up soon hah. :)
20
Features / Re: One theme to rule them all?
« on November 12th, 2013, 07:37 AM »
Oh, I changed it last night. :) Yes, with negative margins..I first added a "relative" class to the anchor in the template, then added "position: absolute" and top: -145px" which is roughly the height of the header. Not optimal since you have to change that if the header is higher, but still. Also, the "#new" id got the same treatment, as well as the "#top" one. Seems to work for now.

Homeland is great. :) Only a few series I look forward with excitement nowadays: Homeland, Person of Interest and the Blacklist.

(click to show/hide)
Quinn is the mystery now, wondering if he might have something to do with the delivering of the bomb at Langley..but at least his ghost of earlier kills are haunting him it seems. Remains to see, the infidelity scene at the end was also painful. But Saul is strong, he'll survive once he finds out..or she just tells him.
21
Features / Re: One theme to rule them all?
« on November 12th, 2013, 01:18 AM »
Hm, I wasn't aware of the masking of anchors..does it do it now, still? You may need a hard refresh. And no, I am not using JS for that, only CSS.

Sure, I have an account on bitbucket already, but no problem getting another.

Heh, just watched latest "Homeland" (s3e7), time for bed me think, if I am to function at work tomorrow. :D
22
Features / Re: One theme to rule them all?
« on November 11th, 2013, 08:22 AM »
Thanks, likewise. :) The fact that you stuck with your vision and haven't not given up, is commendable.

True, I did more experiments in ViennaBBS as it were..but I thinks thats mainly because I've been more focused on having Protendo going in the right direction under the hood - so less time for graphical things. The current theme is on the minimalist side - its my current "phase" :D - but I see that it needs more themes, more diverse ones. And that I can do easily, but the old fashion way of replacing themes rather than skins/variations only. But, I am doing somewhat similar to Wedge in that some elements are built-in, my guess is that themers most likely want to replace the templates, but not so much the js or support css. (I have gone a bit back on my goal to be js-independant, its more Mootools based now, so any JQuery based theme will need to a bit of changing :P Hey, if Joomla can use the Moo, so can I lol)

In any case - theres a lot of freedom for themers in Protendo, the css is been transformed to much more use of classes - which is the IMHO only way to make sure one change reverberate back into default templates. Its also using a basic "frame" for building layouts in the form of simple grid CSS styles (which again, simplifies making css files from scratch, just include that and most templates still look nice, although bland.) Its also means better use in mobiles, as a responsive design, but I've not done enough there yet..on my todo-list though.

Making Wedge skins? I know I mentioned it before, and that it didn't pan out to anything then, but I think I need to really use Wedge for a while, see its way of working, under and over the hood, before dreaming up new designs. But I also know, I will prob. want to shift so much around that it might not be possible...but, can't say no until you tried - as the saying goes. ;)

Is the alpha 2 from 2012 the latest release? I am not asking you to heighten my involvement or anything, because honestly, I will prob. be poor on feedback(due to working also on my own things) but it would be great to try stuff with the latest code - or what you deem close enough to make skins for.
23
Features / Re: One theme to rule them all?
« on November 11th, 2013, 01:51 AM »
Seems the logical way to go for Wedge since you put so much power into the skins feature.

For me its the other way around though - I like being able to scratch *almost* everything from default, and just write new and exciting things. Most others don't , heh. :P With the functions provided it will be a tweakers dream in Wedge I think: replace this function, carefully build that section up...and still run as solid as default theme does. But thats also wherein the challenge lies, how to make that easy enough for anyone to try, and where I suspect that Wedge skins will *maybe* be the playground for those that can code foremost - and second for those can design.

I know how important examples are though, so if you provide good ones showing the real power with skins - then people will copy and expand upon that. If not..well, then it will be like SMF, just default theme color versions. (I looked once again at SMF site for themes yesterday, and found a couple flat color projects, with more or less the default layout used. Sigh(..))

That said..SMF never became the "wordpress" of forum software graphically, so maybe it doesn't matter at all. I am not sure where you see Wedge in that respect.
24
Off-topic / Re: feline hiccups
« on October 29th, 2013, 06:31 PM »
Quote from BurkeKnight on October 29th, 2013, 02:22 PM
Everyone's a comedian... :P
+1

Who needs enemies when some people do such a good job of it themselves. :eheh:
25
Off-topic / Re: feline hiccups
« on October 25th, 2013, 12:02 PM »
Oh, I know who she is and whats been going on.

I don't agree to use physical appearance as an argument though, to anyone. This is internet, for all I care you could all be 90-year ladies with bad complexion. :D Well, maybe not..but its unfair to use it when so few reveal how they actually look. Words are everyones playground, and thats in the end all you have to relate to. IMHO anyway.
26
Off-topic / Re: feline hiccups
« on October 25th, 2013, 01:46 AM »
Well, she's got a point - stooping to criticizing looks doesn't become anyone.
27
Other software / Re: Arantor back on SMF Team!
« on October 11th, 2013, 01:23 AM »
IMO its fair to say that it is a bit surprising that you criticized the SMF team for so long, Arantor, then when asked suddenly joined them. That jump there - regardless of what have/have not happened between Nao and you - is the part where it could almost seem like it was a revenge kind of thing. Good if it isn't, a bit low if it is...wouldn't you agree?

But hey, there are several things that echo back to my own choices and actions, so I am personally not that upset about it. :) But as mentioned - from this side: the Wedge side and of course Nao's side - it would seem upsetting indeed. On the outside, at least, it did look as if Wedge was the *both* of you right from the start.

But in the name of peace-making..is it really a race game? Does one have to be *better* than the other(not talking actual coding etc. but simply whos the "better" forum software) ? The way I see it, Wedge and SMF will be 2 different directions(or any other fork for that matter),and  not taking each others place.(or in this case, SMF place since its of course most used) anyway.

EDIT: typos
28
The Pub / Re: Not So Mixed Signals
« on September 18th, 2013, 06:06 PM »
Tried several editors, including SublimeText..but always return to editPlus. It just suits me fine, and have been *very* stable.

29
Off-topic / Re: This is why I complain about tracking hits
« on August 31st, 2013, 04:43 PM »
Yes, Its really just how you look upon it, and "relative" is exactly the right term here, as opposed to the members count which is a confirmed tracking.

If I need to track guests in detail I would use something like GA anyway.But I'd like a quick indicator if there IS really something to track down in GA - if I wanted to lol.
30
Off-topic / Re: This is why I complain about tracking hits
« on August 31st, 2013, 04:20 PM »
I don't feel like removing guest tracking either(in my fork or Wedge really) since while its inaccurate, its still a useful indication of activity. Maybe you need to look at the tracking itself abit,or as suggested to word it differently, but removing it seems a unnecessary big move IMHO.