signature Module (Released)

17 years 11 months ago #13283 by justberare
Replied by justberare on topic Re:signature Plug In (a great idea)
ok !!!!!!

I built a module for that (not a plug in). here is the code :

(you need to install jogadget last version

[code:1]<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );



global $ueConfig, $my, $mosConfig_lang, $mosConfig_absolute_path, $mosConfig_live_site, $user;

$query = "SELECT name FROM #__users WHERE id = ". $user;

$database->setQuery( $query );

$name2 = $database->loadResult();

echo "<img src='".$mosConfig_live_site."/_jgfw_/image.php?text=".$name2."&size=30&color=000000&bgcolor=ffffff&
font=demo.ttf' >";


?>
[/code:1]

Please Log in to join the conversation.

17 years 11 months ago #13285 by justberare
Replied by justberare on topic Re:signature Plug In (a great idea)
I have better :

[code:1]<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );



global $ueConfig, $my, $mosConfig_lang, $mosConfig_absolute_path, $mosConfig_live_site, $user, $task;

$query = "SELECT name FROM #__users WHERE id = ". $user;

$database->setQuery( $query );

$name2 = $database->loadResult();



if($task == 'userProfile') {
echo "<img src='".$mosConfig_live_site."/_jgfw_/image.php?text=".$name2."&size=30&color=000000&bgcolor=ffffff&
font=demo.ttf' >";
} else {
echo "";
};







?>
[/code:1]

this way it's only displayed when a profile is displayed.

Post edited by: justberare, at: 2006/05/18 23:34

Please Log in to join the conversation.

17 years 11 months ago #13734 by justberare
Replied by justberare on topic signature Module (Released)
Here is the Signature Module.

Follow the instructions. They are displayed during the module installation.
Forget the css stuff in the instruction, it's from an old module (it has nothing to do with this one).

Attachment mod_signature.zip not found



Post edited by: justberare, at: 2006/05/23 21:26
Attachments:

Please Log in to join the conversation.

17 years 11 months ago #13742 by justberare
Replied by justberare on topic Re:signature Module (Released)
The pic. (you can actually find funnier fonts.)

though i am still looking for 2 improvements for this module :

-if the cb_signature field is empty, use the name field or username

-if the cb_police field is empty, use a default font.

Post edited by: justberare, at: 2006/05/23 21:30
Attachments:

Please Log in to join the conversation.

17 years 11 months ago #13760 by redlaguna
Replied by redlaguna on topic Re:signature Module (Released)
Hi! Tanks a lot for this module :laugh:

two request:

Possiblility of write the signature in more of one rows, when the signature is very large, the templete is wrong.


and the posibility of add random colors of the signature, for the font and the background of the font.

Thanks again and yuor karma is up for this.

sorry for my very bad english men :side:

¡mas vale no saber!

Please Log in to join the conversation.

17 years 11 months ago #13763 by justberare
Replied by justberare on topic Re:signature Module (Released)
the 2 row thing is something I can't do because the big thing about this module is that it's very simple (it use the jogadget's bot and doesn't modify it).

for the color, I'll probably do something like blue for boys and pink for red or something.

maybe parameters...

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.174 seconds

Facebook Twitter LinkedIn