Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Farjo
406
Features: Miscellaneous / Re: Improvements to Hooks
« on May 23rd, 2011, 05:22 PM »
Thanks for the reply.
The hook is as you say integrate_menu_buttons and the list of hooks is here: http://wiki.simplemachines.org/smf/index.php?title=Integration_hooks&oldid=5972 So there's another mini-project for me - to write a mod  :wow:
Quote
There are more features that deserve their own topic, but I was too lazy in the end so they're just in the Minor Features topic ;)
Yes that's a massive topic which I'm still only halfway through reading :)
407
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 09:19 PM »
Sorry, I meant if my club switches to wedge how it could be done. From experience, the SMF way that you show would take me a while as there's plenty for the inexperienced fool to get wrong - a missing single-quote, a misspelt word... But the wedge way would be simple - even I could only make a maximum 1 mistake ;)

Anyway thanks for your time. Another reason to look forward to its release - best you get on with it instead of answering my stupid questions :)
408
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 08:15 PM »
Yes, even I can see that's much neater. The original post now makes more sense and I can see why it's got an entire thread dedicated to it.


What about the additional menu items (buttons) that I have on my SMF installation - this is just a code hack. Would I be able to make my own hook function? This would be cool as at present I must re-edit the code with each upgrade. Perhaps:
Code: [Select]
add_hook('menu_items', 'farjo_add_menu_items', 'farjo_code_changes');

where menu_items would be substituted for the correct name of the hook that controls the buttons, farjo_code_changes.php contains the code that I currently paste into Subs.php but wrapped within the function farjo_add_menu_items.
And if so will there be a idiot-readable list of hooks so that someone like me would be able to make  this type of minor changes to their set-up? I know that this change is aimed at proper modders, but it would also encourage others with my limited coding skill to make changes (changing the actual source code is something I wouldn't have the confidence to do, but making a separate file.... well what's the harm?).
409
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 06:51 PM »
Cor look at this old dog learning new coding tricks :P  I'm having afternoon tea to celebrate :eheh:

Thanks again Arantor for your time, patience and explanations.
410
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 06:32 PM »
Well that's quite clever then :) So the other bits:- integrate_bbc_codes and integrate_bbc_buttons... they're hooks are they? And they call / load (again sorry for my mis-usage of coding terms) the functions in her Subs-SimpleSpoiler file?
411
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 06:23 PM »
I hope this isn't copyright and that Miss All Sunday takes this copying as flattery  :)
Code: [Select]
$hooks = array(
'integrate_bbc_codes' => 'spoiler_bbc_add_code',
'integrate_bbc_buttons' => 'spoiler_bbc_add_button',
'integrate_pre_include' => '$boarddir/Sources/Subs-SimpleSpoiler.php',
);


foreach ($hooks as $hook => $function)
add_integration_function($hook, $function);
"You have an install script, it calls existing SMF functions to add to the list of files to load. No edits required."
Is that the "integrate_pre_include" bit?
412
Features: Miscellaneous / Re: Improvements to Hooks
« on May 22nd, 2011, 05:33 PM »
Thanks for the reply Arantor. I don't understand all of it but it sounds very clever  :P


I presume that you have to make an edit to the file that lists the files (/functions?) to be loaded? And if we don't fully understand now I guess it will become apparent when mods start to become available and do much more than on SMF?
413
Features: Miscellaneous / What's a hook?
« on May 22nd, 2011, 02:16 PM »
In many of the new features threads there is reference to programming hooks. As a non-coder I have only a vague idea what these are and why they are so important to demand so many threads.


My best guess is:
Code: [Select]
hook(a)
codeblock_1{code...

..
..
..
}
hook(b)
codeblock_2{code...
etc.
So someone can write a mod so that, say, hook(b) executes[1] their code after the codeblock_1. Thus the actual wedge code does not need to be changed as it is with SMF where a chunk of code would be inserted.


Is this anywhere near reality  :blush:
 1. sorry for my poor programming grammar if I use incorrect terms
414
Features: Upcoming / Re: Language tags
« on May 14th, 2011, 11:06 PM »
Having read the private tag post I realise what I've written is a pile of [en]poo[/en][fr]merde[/fr][cockney]pony[/cockney] and my beginner / advanced stuff could be handled by that tag and groups :blush:
415
Off-topic / Re: Post count fever
« on May 13th, 2011, 10:30 PM »
My thirteenth post on Friday 13th of a month beginning the 13th letter in a year adding up[1] to 13 :)
 1. Well it does if you do 2+0+11 :whistle:
416
Features: Upcoming / Re: Language tags
« on May 13th, 2011, 10:25 PM »
If you're looking for outside opinion, then I think it'll be useful to some but irrelevant to most and maybe should be a mod instead of core.

As for being [en] or [lang=en] I agree with TE and Aaron that lang would be more extensible, not only to other languages but perhaps other opt-in opt-out comments.

For example, on my motorcycle forum we have a lot of 'how-to' posts relating to maintenance. The poster of one of these might like to put certain paragraphs of extra instruction into a lang=beginner tag so that those with more advanced skill / experience don't have to read them. Of course for this you'd need an admin language-maintenance screen to add tags, and a user profile screen to add themselves to one / many.

Maybe that's too complicated for users, and the best way to meet your 'Spanish joke' scenario is to use the spoiler tag, maybe add a reason why it's hidden.

However, like you say it will be really useful for those who can post in more than one language.
417
Other software / Re: It's been released today!!!
« on May 12th, 2011, 08:37 PM »
Thanks for your comments on the timing Nao, very interesting. Not sure what "spending years full-time on something I'm not getting on, I don't know. Do you?" means but like Sisyphus everyone wants some achievement from their work.

I've briefly looked at Wordpress today and must say it's a bit pony. Is it really the best blog software around?
418
Other software / It's been released today!!!
« on May 12th, 2011, 12:18 PM »
No not SMF  :angel:


Wordpress 3.2 Beta 1 is out. They won't support IE6 any more which ties in with Wedge's policy.


They report wanting to release the full version end-June, and I was wondering if Wedge will be like most (or all?) other free messageboards, having the line "it'll be out when it's ready", which I entirely understand, or if there will be public knowledge of planned releases.
419
Off-topic / Re: generating interest
« on May 5th, 2011, 12:54 PM »
When I was looking at forum software the assumption in my mind was that vB would be best purely because the others were free. I imagine most people think like this in most aspects of life e.g. I used to have a market stall selling perfumes and cosmetics. We were selling a mascara for 65p and it wouldn't shift - I increased the price to 95p and it sold out quickly. Why? Because people assumed that a 65p product was cheap & nasty but a 95p product was quality NB these are 1980s prices!

Also the expression "Nobody got sacked for buying IBM" rings true here. When we switch over to SMF 2 there will be plenty of pseudo-geeks spouting how I should have chosen vB (because it's the best), or xenforo, IPB etc. Whilst it would be easy to defend vB against SMF ("SMF if just free software so not as good as vB") it's less simple to defend SMF ("I did many hours of testing and found SMF to be the best in these features 1...... 2...... 3...... ").

Finally, vB only allow you to look at their product for 24 hours so whilst you have time to find the faults on SMF and phpBB, you may miss them on vB.
420
Plugins / Re: Mods - no not *that* question!
« on May 3rd, 2011, 02:16 PM »
This maybe comes under "we haven't thought too much about that just yet" - will you have a team? I've noticed there are other modérateurs here, will they (and maybe others) be marshalled to provide support, mod+theme approval, bug documentation, general documentation, etc, leaving you two to get on with the development?

ps feel free to say we haven't thought too much about that just yet - I'd prefer you to work on Wedge than answer my stupid questions  :)