471
JasonMR
Re: can i find ecards module ?
  • 2004/9/22 1:32

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Well, I re-translated everything, and added changes I wanted.

To suite my layout I've changed the acutall size of the E-Card, which forced me to make further changes to the script, as the card is rendered by the script. I had also changed the position of the horziontal lines, regarding email address from and to, as the address was placed right on the line, and visually didn't look to pleasent.

To be honest with you, I am still not happy with the look of the card, but see this as a minor issue, and are concentrating on other efforts.

There is an issue with E-Cards and full returns. The script renders a symbol with the line break, which might confuse the E-Card reciever. Duc-Tape-Solution: don't use return.

I don't know about Xcgal, but will give it a try.

By the way, E-Card has an option, that allows your users to send artwork to the admin, to use as E-Card (I've disabled that option though).

PS: Sorry VINIT for the late reply, had lots to do, and didn't notice your reply until now!!



472
JasonMR
Re: Posting news items immediately
  • 2004/9/21 6:48

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


It may have to do with your server time/location time settings (sys admin -> preferences -> general preferences).

I had the same problem, when I found, that I just needed to adjust my server time and location time setting. Not sure though, that you are experiencing the same issue. Just an experience report, that might help.



473
JasonMR
Re: can i find ecards module ?
  • 2004/9/21 6:43

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


I'm not sure where I donwloaded E-Cards, but I have uploaded the E_Cards.zip file to my server, for you to download.

Depending on your needs and site layout, you might want to make a few changes to the script. If you have an english speaking site, you will definetly need to work over all of the translations!

You can have a look at my E-Cards, and send one off if ya like



474
JasonMR
Re: Tracing Anonymous users - spammers
  • 2004/9/19 13:30

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21





475
JasonMR
IP display hack
  • 2004/9/19 13:22

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


While replying to thishttps://xoops.org/modules/newbb/viewtopic.php?forum=7&topic_id=24674, I came across a neat solution, to display a users IP on a page, by creating an image that displays the text "Your IP is xxx.xxx.xxx.xxx", using a PHP script, which I found on a web page, supposedly belonging to a MikeVL.

1- create a file in /root/modules/contact/ and name it something like ipdisplay.php.
Place the following code into the file:
Quote:

<?php
$img_number = imagecreate(275,25);
$backcolor = imagecolorallocate($img_number,102,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);

imagefill($img_number,0,0,$backcolor);
$number = " Your IP is $_SERVER[REMOTE_ADDR]";

Imagestring($img_number,10,5,5,$number,$textcolor);

header("Content-type: image/jpeg");
imagejpeg($img_number);
?>


2- Open the following template file in an editor /root/modules/contact/templates/contact_contactusform.html;
In this file you will place an img-tag, using the ipdisplay.php file as source

Place the following in an apropriate location (though you might want to change the notification text!):
Quote:

<img src="http://yoursite.com/modules/contact/ip_image.php" alt="IP Address" /> has been logged!<br />Action will be taken on any abuse on this system.


3- Go to Sys Admin -> Moudles, and update the contact module

Et voila! You should now be able to view the result.

Making Changes to the PHP created Image

$img_number = imagecreate(275,25);

-> this pair represents the X and Y lengths

$backcolor = imagecolorallocate($img_number,102,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);

-> these tupples are hex-colors (255,255,255=white;0,0,0=black)

To create a border around the image, for a more prominent look, one just needs to add this style attribute to the img tag:
style="border:1px outset #000044; vertical-align:middle;"

I have implemented this hack with the contact+ module, but it can be applied with any module really (news, wiki, blog, forums, etc...).

Hope this might be of interest to a fellow XOOPser!



476
JasonMR
Re: XFsnippet problems!
  • 2004/9/19 13:01

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


I've run into another problem while testing this module.

I can't even submit any code! Now what good is a module to share code snippets, if one can't even submit code! This is the only error code I get:
Quote:

Fatal error: Call to a member function on a non-object in /root/modules/xfsnippet/submit.php on line 28


Also, if a field is left out, after clicking submit, all data entered is lost, when user is rediredted to page.

Is there anyone else, who has installed this module? Any tips, suggestions, pointers?

Not Happy Jan! Would really like such a module! Anyone interested in getting this working?



477
JasonMR
Re: a question about Xoops' favicon
  • 2004/9/19 9:42

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Yeah Mate!

Glad that someone else feels the same excitement as I did, when I first played with this neet little (AWicon) - thanks to them, for providing a ligh(free) version

Pfew - glad to hear, that you were able to access my sites - was getting a little nervous there. Though I'm sorry about the restrictions (dough), had thought about checking how they are set, but had then forgotten all about it. Will do so right away.

Send me links to your productions/experiments

I'm just a little shortcut-icon nutter

Update: changed permission!



478
JasonMR
Re: Tracing Anonymous users - spammers
  • 2004/9/19 9:32

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


$img_number = imagecreate(275,25);

-> this pair represent the X , Y lengths

$backcolor = imagecolorallocate($img_number,102,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);

-> these tupples are hex-colors (255,255,255=white;0,0,0=black)

And if you wanted to ask: the border is a style attributed to the img tag:
style="border:1px outset #000044; vertical-align:middle;"


Having an option to select something like this to appear, would definetly be a nice thing! <caugh>developers</caugh>



479
JasonMR
Re: Tracing Anonymous users - spammers
  • 2004/9/19 7:13

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


I've found a more "playful" solution at Mike's!

1- Take this code
Quote:

<?php
$img_number = imagecreate(275,25);
$backcolor = imagecolorallocate($img_number,102,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);

imagefill($img_number,0,0,$backcolor);
$number = " Your IP is $_SERVER[REMOTE_ADDR]";

Imagestring($img_number,10,5,5,$number,$textcolor);

header("Content-type: image/jpeg");
imagejpeg($img_number);
?>

and place it in a seperate file named ip_image.php, which should be saved it in your contact module folder (though depending on the url you provide in the img-tag!).

2- Edit contact/template/contact.html and place this code in the apropriate space
Quote:

<img src="http://yoursite.com/modules/contact/ip_image.php" alt="IP Address" /> has been logged!<br />Action will be taken on any abuse on this system.


3- under Sys Admin -> Modules, you will need to update your contact module, for changes to be entered into the templates stored in the DB, which are used by XOOPS (and not the actual template file)



I use contact+, but this is how it looks like on my site, after I've made a couple of changes to the image creating script, to suite my needs.



480
JasonMR
Re: Tracing Anonymous users - spammers
  • 2004/9/19 6:33

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


You could add this to contact/index.php:
Quote:

echo "Your Ip address : ";
echo $_SERVER['REMOTE_ADDR'];
echo "&nbsp;has been logged!";
echo "<br />Action will be taken on any abuse on this system.";


But I'm not sure where to place it!

Hope it works for you.




TopTop
« 1 ... 45 46 47 (48) 49 50 51 ... 54 »



Login

Who's Online

167 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits