• Welcome to Simple Machines Community Forum. Please login or sign up.
December 05, 2021, 12:50:18 AM

News:

Wondering if this will always be free?  See why free is better.


Box BBCode

Started by vbgamer45, March 02, 2009, 12:39:44 PM

Previous topic - Next topic

CerebralJam

Forgive me, I really know not a lot, but I want to be able to expand the rather bleak profile page to include input boxes for individuals to add information about me:  media - ie youtube embed, esnips mpg widget embed, photos etc etc - could this mod be used to give this sort of thing or am I way offline?

.LORD.

Quote from: CerebralJam on June 03, 2009, 10:06:36 AM
Forgive me, I really know not a lot, but I want to be able to expand the rather bleak profile page to include input boxes for individuals to add information about me:  media - ie youtube embed, esnips mpg widget embed, photos etc etc - could this mod be used to give this sort of thing or am I way offline?

No sorry.

But this MOD already exist, you want the Ultimate Profile:
http://custom.simplemachines.org/mods/index.php?mod=1675


Dante`


.LORD.


CerebralJam

thank you for replying and excuse my late return... I would love that mod and have looked at it several times but unfortunately it is not available for SMF 2.0 RC1/RC1-1   :)

woolly bugger

I think this mod is what i've been looking for but I need to set the style and change the name of the text box.

I need a little help in the css dept...


Here is what I would like:

1. Titlebox  replaced with Report
2. background of box set to black
3. font set to white, arial 100% bold and centered.

Thanks.

.LORD.

Quote from: CerebralJam on June 30, 2009, 08:06:48 AM
thank you for replying and excuse my late return... I would love that mod and have looked at it several times but unfortunately it is not available for SMF 2.0 RC1/RC1-1   :)

Your welcome.

And you can make the request to the author. Maybe, the author will do the upgrade.

Quote from: woolly bugger on July 08, 2009, 01:31:14 PM
I think this mod is what i've been looking for but I need to set the style and change the name of the text box.

I need a little help in the css dept...


Here is what I would like:

1. Titlebox  replaced with Report
2. background of box set to black
3. font set to white, arial 100% bold and centered.

Thanks.


1.- What version?
Search in $sourcedir/Subs-Editor.php or $themedir/Post.template.php">

[box title=TitleBox]

And change.

2&3.- Edit your custom style.css and set this rule

.box_bbcode {
font-family: Arial;
text-align: center;
background: black;
font-weight: bold;
color: white;
}

@ngel

French Translation
QuoteInsérer un cadre
I prefer this first translation than the litteral translation
QuoteInsérer une boîte

About the title in the example "More Info:", don't work with my version 2.0RC1.2; If I remove the ":", it's ok.

.LORD.

Quote from: @ngel on September 02, 2009, 10:31:53 PM
French Translation
QuoteInsérer un cadre
I prefer this first translation than the litteral translation
QuoteInsérer une boîte

Perfect, thanks for translate.

Quote from: @ngel on September 02, 2009, 10:31:53 PM
About the title in the example "More Info:", don't work with my version 2.0RC1.2; If I remove the ":", it's ok.

I will fix it. The new regex (in v1.2) seems not work for everyone.  :-\

zushiba

what are the chances of getting a RC2 version? I <3 this mod by the way.

Arantor

I'd say fairly slim given that the author hasn't been online since September.
No good deed goes unpunished
All helpful urges should be circumvented

mgrmgr

 :'(

Thanks arantor as well.

It's sad to hear but a silent hope still remains: to meet a kind soul all of a sudden which can help with a (at least interim) solution for 2.0 RC2 :)

Arantor

Actually making it work on 2.0 RC2 isn't that hard if you're prepared to do it manually.

Referring to the 2.0 RC1.2 instructions - http://custom.simplemachines.org/mods/index.php?action=parse;mod=1676;attach=94641;smf_version=2.0_RC1.2

Do the edits to Subs.php as detailed. The edits to Themes/default/style.css would now be applied to Themes/default/css/index.css

Lastly we need to change the edit for Subs-Editor.php since this was overhauled in RC2.

Code (find) Select
array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),


Code (after it, add) Select
array(
'image' => 'box',
'code' => 'box',
'before' => '[quotebox=TitleBox]',
'after' => '[/box]',
'description' => $txt['box_bbcode']
),


All edits to Modifications.****.php files would be done, then you'd empty the file cache (Admin > Maintenance > Routine > Clear file cache)
No good deed goes unpunished
All helpful urges should be circumvented

mgrmgr

November 26, 2009, 03:07:26 PM #53 Last Edit: November 26, 2009, 03:43:23 PM by mgrmgr
Quote from: mgrmgr on November 26, 2009, 01:53:54 PM
... but a silent hope still remains: to meet a kind soul all of a sudden which can help with a (at least interim) solution for 2.0 RC2 :)

Oh my - that my wish is fulfilled this way: I'd never have believed it :)

Thank you, thank you, thank you!!!

Your detailed instructions seem to make it possible to edit a new install.xml - my preferred way :)

Arantor

Let me know if you have any problems with it :)
No good deed goes unpunished
All helpful urges should be circumvented

mgrmgr

no problems at all Aranator, again thank you :)

Just to mention a little flaw(?) in your code to insert:

'before' => '[quotebox=TitleBox]',

I replaced this line with

'before' => '[box=TitleBox]',

to have the same start and ending tag :)

BTW: it looks like different start- and ending-tags are possible - is that really true? Could be a nice April fools joke :)

I made (for myself) a new package containing a separate install 2RC2.xml, a new package info and a new languages.xml (including German_informal). If someone needs them (and the modification team has nothing against that plan), I can attach them if there is demand for those files.

Only sad thing is that mod-authors tend to make install- and uninstall sections for 2.0 - 2.99 - methinks that should not be done while major overhauls might happen until the final release is stable :(

Again thank you Aranator!

Arantor

Different start and ending tags are not possible, I just copied the quote tag code for the editor edits and didn't edit it properly.

We generally don't recommend attaching packages here because the authors (if active) tend to ask for them to be removed. That said, there's nothing stopping you do it - just that it's not encouraged.


And yes, authors using such version strings is one of my ongoing issues; fortunately (IMHO) 2.0 RC2 is a little less lenient in that direction.
No good deed goes unpunished
All helpful urges should be circumvented

mgrmgr

LOL to all your answers, Arantor. I DO know lazy developers (not only for modifications) from my former job as a programmer. That's why I'm laughing.

OK - to keep your team in good mood I won't attach the modification to this posting :) (Might be I can need you guys later on :) ).

Just a small hint: I have installed a 2.0 RC2 board with the download modification myself and upload the package (for RC2 only!) there - ready to download for registered members on my board. The URI of my board is: URI of my Test board


Arantor

Tell you the truth, I'm actually somewhat lazy too, despite all my posting and so on, I write things so they're done. Classic case: I got fed up of explaining how to modify SSI's boardNews function to handle multiple boards, so I wrote a version to handle that, plus attachments, avatars, and other stuff (currently pending with the team to approve)

In the case above it was easier for me to copy/paste than to attempt to write from scratch.

That we also don't have a problem with - again provided the author doesn't ask you to remove it.
No good deed goes unpunished
All helpful urges should be circumvented

mgrmgr

Quote from: Arantor on November 27, 2009, 03:24:10 PM
Tell you the truth, I'm actually somewhat lazy too, despite all my posting and so on, I write things so they're done.
LOL - I never got to know a "Real Programmer" who was NOT lazy (even if I may say so about myself ) :)

Quote from: Arantor on November 27, 2009, 03:24:10 PM
In the case above it was easier for me to copy/paste than to attempt to write from scratch.

I think we agree that "copy & paste" belongs to the best inventions since sliced bread :)


Advertisement: