Realtime Avatars user images on Forum
Moderator: TheHogNL
Realtime Avatars user images on Forum
It's now possible to set an Avatar 64x64 pixels(userimage)
You can edit your user profiles and fill your picture URL
You can upload a image by starting or edit a topic and directly upload the image. Then abort the topic and paste the image URL.
Update 5-3-2008
It would be great to add a realtime avatar see for example the Bwired avatar which is displaying the weatherforecast en realtime temperature.
I do it with a little VB6 prog which collects all kinds of data from my database and creates a JPG file with the data in it. These Avatars are 84x111 pixels.
If you want this size please contact me, so i can adjust the size of the avatar.
Regards Pieter
You can edit your user profiles and fill your picture URL
You can upload a image by starting or edit a topic and directly upload the image. Then abort the topic and paste the image URL.
Update 5-3-2008
It would be great to add a realtime avatar see for example the Bwired avatar which is displaying the weatherforecast en realtime temperature.
I do it with a little VB6 prog which collects all kinds of data from my database and creates a JPG file with the data in it. These Avatars are 84x111 pixels.
If you want this size please contact me, so i can adjust the size of the avatar.
Regards Pieter
Realtime Avatars user images on Forum
I'm doing this with Imagemagick, some PHP and Perl code (home made stuff).
This all is running on one of my linux servers.
---
Never start anything you can't fi
This all is running on one of my linux servers.
---
Never start anything you can't fi
Realtime Avatars user images on Forum
I am trying to add an avatar, but it is constantly resized to 64x64 pixels by the forum software, even if I create it with the size of 84x111 (Size of some other avatars).
Whether or not I generate the avatar dynamically, the forum resizes it to 64x64.
The picture shows temp, humidity and barometric pressure. The data is at a maximum 0,5 hours old.
When I create an picture in Microsoft Paint and configure the forum to use that as my avatar, it also gets resized.
So, whatever I configure in my profile, I get 64x64 pixels.
Any idea what is going wrong?
Whether or not I generate the avatar dynamically, the forum resizes it to 64x64.
The picture shows temp, humidity and barometric pressure. The data is at a maximum 0,5 hours old.
When I create an picture in Microsoft Paint and configure the forum to use that as my avatar, it also gets resized.
So, whatever I configure in my profile, I get 64x64 pixels.
Any idea what is going wrong?
Realtime Avatars user images on Forum
You will need to ask Bwired to set your 'custom' size of the avatar
---
Never start anything you can't fi
---
Never start anything you can't fi
Realtime Avatars user images on Forum
Great Jfn,
You are the third realtime Avatar.
For now I have to customize the bigger Avatar to 84x111 for each user, I'm making a fix in the user profile that will deal with that but for now this will do
I'm thinking about doing some more on the realtime part. I think we have now like 10 persons who can upload some data to a mysql server.
We can do some nice things with that and make it a more domotica home automation forum
For example plot the temperature on a google map for every user etc.
Regards Pieter
You are the third realtime Avatar.
For now I have to customize the bigger Avatar to 84x111 for each user, I'm making a fix in the user profile that will deal with that but for now this will do
I'm thinking about doing some more on the realtime part. I think we have now like 10 persons who can upload some data to a mysql server.
We can do some nice things with that and make it a more domotica home automation forum
For example plot the temperature on a google map for every user etc.
Regards Pieter
Realtime Avatars user images on Forum
For those interested, attached to this message the PHP code I use to generate my Avatar. I host it on my own server.
I query a MySQL database for the most up-to-date info from my weatherstation. Data is updated every 0,5 hours.
In my profile I link to this PHP script which outputs JPEG data.
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] plaatje.php.txt<br />1.71 KB
I query a MySQL database for the most up-to-date info from my weatherstation. Data is updated every 0,5 hours.
In my profile I link to this PHP script which outputs JPEG data.
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] plaatje.php.txt<br />1.71 KB
Realtime Avatars user images on Forum
My avatare now not only displays realtime weather info, but also has animation in it. Have a look at the attached PHP code to learn how I did this.
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] plaatje.php.txt<br />3.39KB
Als het niet kapot is, niet repareren!
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] plaatje.php.txt<br />3.39KB
Als het niet kapot is, niet repareren!
Realtime Avatars user images on Forum
Jfn,
If you create a .htaccess file with the code shown below you can point it to any_name_here.gif file instead of the plaatje.php
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">RewriteEngine On
RewriteRule ^([a-zA-Z0-9=_.!-]+)\gif$ plaatje.php
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">The URL to show your avatar when using the .htaccess will be http://pe1pqf.mine.nu/avatar/any_name_here.gif
It's not really needed on this forum as it takes the .php as avatar extension, but some forums need to have .gif or .jpg as avatar extension.
One more thing (as you probably know) .htaccess files only work with Apache
---
Never start anything you can't fi
If you create a .htaccess file with the code shown below you can point it to any_name_here.gif file instead of the plaatje.php
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">RewriteEngine On
RewriteRule ^([a-zA-Z0-9=_.!-]+)\gif$ plaatje.php
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">The URL to show your avatar when using the .htaccess will be http://pe1pqf.mine.nu/avatar/any_name_here.gif
It's not really needed on this forum as it takes the .php as avatar extension, but some forums need to have .gif or .jpg as avatar extension.
One more thing (as you probably know) .htaccess files only work with Apache
---
Never start anything you can't fi
Realtime Avatars user images on Forum
Tried that, but it does not work.
The RewriteLog shows that the request from the forum for my avatar is redirected, but then the forum does not show any output:
<i>internal redirect with /home/www/avatar/plaatje.php [INTERNAL REDIRECT]</i>
I changed my profile back to .php for now.
The RewriteLog shows that the request from the forum for my avatar is redirected, but then the forum does not show any output:
<i>internal redirect with /home/www/avatar/plaatje.php [INTERNAL REDIRECT]</i>
I changed my profile back to .php for now.
Realtime Avatars user images on Forum
It works!
Turned out that the ReWriterule was not correct.
The correct rule: <i>RewriteRule ^([a-zA-Z0-9=_.!-]+)\gif$ <b>/avatar/</b>plaatje.php [PT]</i>
In my profile I configured my avatar to be 'plaatje.gif' and it is displays correctly.
Als het niet kapot is, niet repareren!
Turned out that the ReWriterule was not correct.
The correct rule: <i>RewriteRule ^([a-zA-Z0-9=_.!-]+)\gif$ <b>/avatar/</b>plaatje.php [PT]</i>
In my profile I configured my avatar to be 'plaatje.gif' and it is displays correctly.
Als het niet kapot is, niet repareren!
Realtime Avatars user images on Forum
Okay.. I'm sorry about that error. I did not know your "true" directory.
---
Never start anything you can't fi
---
Never start anything you can't fi
Realtime Avatars user images on Forum
I have updated the .PHP code for my realtime avatar (See attachment).
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] plaatje.php.txt<br />4.42 KB
Als het niet gerepareerd kan worden dan is het niet kapot!
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] plaatje.php.txt<br />4.42 KB
Als het niet gerepareerd kan worden dan is het niet kapot!
Realtime Avatars user images on Forum
Realtime avatar is working again.
Data is now being retrieved from a textfile which is updated every 5 minutes by the weathersoftware (http://www.wviewweather.com).
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] avatar.php.txt<br />1.61 KB
Data is now being retrieved from a textfile which is updated every 5 minutes by the weathersoftware (http://www.wviewweather.com).
<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] avatar.php.txt<br />1.61 KB