http://www.icyphoenix.com/viewtopic.php?f=28&t=4566
-----------------------------------
Lopalong
Wed 20 Aug, 2008 16:03

[DEPRECATED] ECards
-----------------------------------
[color=red][b][u][size=16]This MOD is deprecated and no longer supported for IP version 1.2.*  [/size][/u][/b][/color]

Please upgrade your Icy Phoenix to version 1.3.*


-----------------------------------
TheSteffen
Wed 20 Aug, 2008 18:13

Re: [MOD] ECards
-----------------------------------
Looks nice. Thanks for your work.

Do you think its easy possible to combine that with Full Album Pack.
So that normal pics could be send as eCard?


-----------------------------------
Lopalong
Thu 21 Aug, 2008 01:12

Re: [MOD] ECards
-----------------------------------
I think it would be better to migrate the other way and add eCards to FAP. 

But then it would have to re-size the images etc, because if it's just going to be an extension of FAP as it is, with a URL to a full-size image and appended message - Then the purpose of the eCards is already lost.  :| 

If any eCard application was to be integrated with FAP, I would go for "Maian eCards". It's GPL and handles more than just pics - It would be a lot of work to add it. - I've had Maian working to a point with IP, but it's far too much for my knowledge of PHP and Icy-P ;)

[b]Edit:[/b]

Thinking about it some more.  :mryellow: I now don't think it's a good idea to combine eCards with anything else because the cards need to be mainly for occasions and maybe some funny things in general.

If anything, I would just like to see Maian bridged with IP because of its superior functions.

It will be interesting to see what MG has to say about it.  :mrgreen:


-----------------------------------
TheSteffen
Thu 21 Aug, 2008 03:23

Re: [MOD] ECards
-----------------------------------
OK, thanks for yor answer.


-----------------------------------
Mighty Gorgon
Thu 21 Aug, 2008 12:57

Re: [MOD] ECards
-----------------------------------
Before saying anything regarding eCards in IP I need to make some tests of this mod and the other proposed.

In the past I wanted to create an eCards plugin for FAP, but there was low interest in that... so I have never coded it.

What FAP misses is at least a link to send the picture link by email, just like the topics have.


-----------------------------------
Lopalong
Thu 21 Aug, 2008 14:59

Re: [MOD] ECards
-----------------------------------
The low interest in eCards is probably a good enough reason not to include it in IP. Lord knows, Icy-P is getting heavy enough as it is. ;)

That's why I suggested Maian as a stand alone app with a bridge file, because it does more than just images; and someone else can look after it in much the same way as Coppermine is "Nursed" by others.  :mricy: 

[b]Off Topic:[/b]

@MG. Speaking of MODS etc, would it not be advantageous to include a $lang_extend_mods file in the next release, so that the core lang files could be left untouched by MODS?

Just a thought.  :roll:


-----------------------------------
TheSteffen
Thu 21 Aug, 2008 17:22

Re: [MOD] ECards
-----------------------------------
[quote user="Lopalong" post="30875"]The low interest in eCards is probably a good enough reason not to include it in IP.[/quote]

I agree... 

But if it would not need so much time to code it, it would be a nice plugin. But only than  :!:


-----------------------------------
Mighty Gorgon
Fri 29 Aug, 2008 22:08

Re: [MOD] ECards
-----------------------------------
[quote user="Lopalong" post="30875"]@MG. Speaking of MODS etc, would it not be advantageous to include a $lang_extend_mods file in the next release, so that the core lang files could be left untouched by MODS?

Just a thought.  :roll:[/quote]
There is no need to add that by default...

Every lang_extend_*.php will be included in Icy Phoenix pages regardless to its name.

Let me make an example to clear things...

Suppose you are creating a mod to say HELLO MG on forum index...

If you don't want to edit any existing lang file, then you can just create a new file called [b]lang_extend_*.php[/b] (use what you like instead of *) and add all the vars you need. The name isn't important because all files which begins with lang_extend will be imported by Icy Phoenix and vars used in it will be accessible in templates by adding L_ in front of the var.

So back to the example... once you have created the file you can add a var like this:
[codeblock]$lang['HI_MG'] = 'Hello MG';[/codeblock]

If you add the file in the language/lang_english folder then you will be able to use the var wherever you like.

For example in index_body.tpl you can add this:
[codeblock]{L_HI_MG}[/codeblock]

and you will see the text showing up, regardless if you call the file lang_extend_lopalong, lang_extend_mods or lang_extend_hi_mg (with php extension of course).

Is that clear enough?

Is there someone that is willing to create a new topic to be added in Docs section with these instructions? :wink:


-----------------------------------
Lopalong
Tue 13 Jan, 2009 02:47

Re: [MOD] ECards
-----------------------------------
First Post updated with the download file.  :mrviolet: 

@ MG,

No what I really meant was to create an empty lang_extend.php file and include as a default file in the next release; so that all mods could add their lang vars to the one file rather than have different lang_extend_this mod, * that_mod etc.

I don't suppose it really matters either way. ;)


-----------------------------------
Mighty Gorgon
Sat 17 Jan, 2009 12:51

Re: [MOD] ECards
-----------------------------------
Since every lang_extend_*.php file is included by default, I guess there is no need to create a new one for mods... each user is free to customize it any way he likes... avoid wrong replacements and duplications with some mods.

:)


