Pages: [1] 2
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-10-16 03:56:17

There are already a lot of BOINC signature graphics available, but one more doesn't hurt anyone. To get a BOINCstats signature of your own, use this piece of HTML code:
<img src="http://www.boincstats.com/stats/banner.php?cpid=12345">
Replace the numbers after cpid= with your own CPID number. You can find this number on your BOINC detailed statistics page.
Guest

2004-10-21 20:30:58

Any chance of getting the sig to work on the phpBB package?
Guest

2004-10-24 07:44:18

I am having trouble generating the code to make a sig block.

How do I show my accounts from the different projects like S@H and the Boinc Seti?

My Boinc ID # is fbdfe9f5f718825470a1bc44044905e3 is this the correct type of account number?

Sorry, but I need step by step instructions in layman terms. I am not a programmer.

Thanks
John
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-10-24 07:46:08

This is your sig:

Code:
&#60;a href="http://www.boincstats.com/">&#60;img src="http://www.boincstats.com/stats/banner.php?cpid=c34dc6eeead52fe61a342d771353fb0a" border="0">&#60;/a>


The CPID on the project site is not identical to the one on BOINCstats.
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-10-24 07:47:40

Any chance of getting the sig to work on the phpBB package?


Not unless the PHPBB code is changed.
Guest

2004-10-24 07:53:01

This is what I have entered but I do not show any results. The box and logo does appear in the correct position.

<img src="http://www.boincstats.com/stats/banner.php?cpid=fbdfe9f5f718825470a1bc44044905e3">

Also, when I go to my stats page, I do not have a CPID number. The space is empty. How do I get CPID?

Again, how do I generate a sig block with my stats from S@H and S@H Classic?

Thanks
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-10-24 07:59:40

When I enter
Code:
http://www.boincstats.com/stats/banner.php?cpid=c34dc6eeead52fe61a342d771353fb0a
directly into the Address bar, I get the correct sig for your account with the correct numbers.

Please verify that you use the correct code.
Guest

2004-10-24 08:40:08

Thanks Willy,
Yes it does work!
Is there a way to also show S@H Classic achievements?
How would I code that?

Thanks Again
John
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-10-24 17:03:14

BOINCstats doesn't track SETI classic.
Guest

2004-10-26 04:06:43

Any chance of getting the sig to work on the phpBB package?


Not unless the PHPBB code is changed.


Thanks Willy. I don't suppose you could supply a little more info on that? We are just a small team and still learning a lot of this. Not the SETI stuff, the BB end of things.

Any help would be greatly appreciated!

Link.
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-10-26 04:13:18

Thanks Willy. I don't suppose you could supply a little more info on that? We are just a small team and still learning a lot of this. Not the SETI stuff, the BB end of things.

Any help would be greatly appreciated!

Link.


I'm not to big a hero in PHPBB code, I just noticed it didn't work.

PHPBB doesn't recognize a .php file extension as an image file, and only displays the link. I suppose a hack in the PHPBB source code could change this, but then every PHPBB based forum should use this hack.

This is from the changelog of PHPBB:
Limited allowed images in img bbcode tag to jpg, jpeg, gif and png
Guest

2004-10-27 22:51:05

I'm not to big a hero in PHPBB code, I just noticed it didn't work.

PHPBB doesn't recognize a .php file extension as an image file, and only displays the link. I suppose a hack in the PHPBB source code could change this, but then every PHPBB based forum should use this hack.

This is from the changelog of PHPBB:
Limited allowed images in img bbcode tag to jpg, jpeg, gif and png


Thanks for that. It is Open Source so I guess I'll just add it to my TODO list. <!--emo&-->

Thanks again Willy.

Link.
Guest

2004-10-28 03:07:58

My little graphic refuses to display any of my project stats. Any ideas?
John McLeod VII
 
BAM!ID: 23
Joined: 2006-02-27
Posts: 171
Credits: 19,000,102
World-rank: 36,134

2004-10-28 03:23:02

My little graphic refuses to display any of my project stats. Any ideas?


ARe you using 3c0bb11a71fc102981f18d7a552e1e36 as the CPID?
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-10-28 04:16:41

I found the piece of PHP that is responsible for showing graphics in PHPBB. This is the part that checks for the correct file extension:
Code:
// code..

$text = preg_replace&#40;"#[img]&#40;&#40;http|ftp|https|ftps&#41;://&#41;&#40;[^ ?&=#"nrt&#60;]*?&#40;.&#40;jpg|jpeg|gif|png&#41;&#41;&#41;[/img]#sie", "'[img:$uid]1' . str_replace&#40;' ', '%20', '3'&#41; . '[/img:$uid]'", $text&#41;;


If I add php to it like this:
Code:
// code..

$text = preg_replace&#40;"#[img]&#40;&#40;http|ftp|https|ftps&#41;://&#41;&#40;[^ ?&=#"nrt&#60;]*?&#40;.&#40;jpg|jpeg|gif|png|php&#41;&#41;&#41;[/img]#sie", "'[img:$uid]1' . str_replace&#40;' ', '%20', '3'&#41; . '[/img:$uid]'", $text&#41;;

it accepts php as a graphic file. However, when a parameter is passed to the php file, like the signature needs, it isn't recognized anymore.

I tried several things with this code, but I just don't understand the PREG_REPLACE function. I'd like to replace the extension check with something equal to *.*.

Anybody who can help out here?
Guest

2004-10-28 14:43:22

The problem, as I see it, is that the string containing the URL is parsed such that the closing /img tag must come immediately after the file extension. It should be possible to insert cpid stuff there, but I'm not certain how to implement it.
Guest

2004-10-28 15:01:01

No, i'm using my own CPID.
Guest

2004-10-29 07:39:46

Dreadnought, the CPID you find on the SETI site generally DOES NOT match the CPID that they export (why?? no one knows). To determine what your EXTERNAL CPID is, search for your name, then when you're at your stats site, copy everything after the "=" This is the CPID you need to display your stats.

Good luck
Guest

2004-10-29 15:02:45

Okay I'm doing Predictor, Seti & Climate all under the user Name "Alan & Jane Lee" and all in "Team Lee"...The stats on this site only show Predictor under cpid=a13446bd4a00148a0d70e1603921e7dc. and the other 2 only seem to show on the Team Site under "Team Lee", 2 questions....I have removed myself from "Team Lee" just in case this is what is causing the corruption...I therefore have 2 Questions

1) How do I show my USer stats for the other sites?
2) on the display please get rid of the &amp, as it looks poo

Any help as to why I cannot see my other stats is greatly appreciated...
Guest

2004-10-29 18:07:44

Hi

You can use [url=http://www.nreynolds.me.uk/projects/go/' target='_blank]this site[/url] to get your sig working with PHPBB, as like mine below
John McLeod VII
 
BAM!ID: 23
Joined: 2006-02-27
Posts: 171
Credits: 19,000,102
World-rank: 36,134

2004-10-29 23:26:08

No, i'm using my own CPID.


The one I supplied is your own external CPID.

The internal CPID is hashed with your email address to prevent impersonation. In order to make a stats signature work, you must use the external CPID instead of the internal CPID.
Guest

2004-10-30 00:01:12

[quote]Hi

You can use [url=http://www.nreynolds.me.uk/projects/go/' target='_blank]this site[/url] to get your sig working with PHPBB, as like mine below
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-10-30 03:36:43

OK, thanks for that idea, but I thought it would be better to do it in the source of PHPBB, so I tried a few things, and I figured it out with a lot of help from a guy called [url=http://gathering.tweakers.net/forum/find/poster/103916/topics' target='_blank]pjotrk[/url].

To modify your own PHPBB based forum, open the file 'bbcode.php' from the directory 'includes' (which is found in the main directory of PHPB.

Search for this piece of code:
Code:
// code..

$text = preg_replace&#40;"#[img]&#40;&#40;http|ftp|https|ftps&#41;://&#41;&#40;[^ ?&=#"nrt&#60;]*?&#40;.&#40;jpg|jpeg|gif|png&#41;&#41;&#41;[/img]#sie", "'[img:$uid]1' . str_replace&#40;' ', '%20', '3'&#41; . '[/img:$uid]'", $text&#41;;

and replace it with:
Code:
// code..

$text = preg_replace&#40;"#[img]&#40;&#40;http|ftp|https|ftps&#41;://&#41;&#40;[^ ?&=#"nrt&#60;]*?&#40;.&#40;jpg|jpeg|gif|png|php&#41;&#41;&#41;&#40;?+.*&#41;?[/img]#sie", "'[img:$uid]1' . str_replace&#40;' ', '%20', '3'&#41; . '6' . '[/img:$uid]'", $text&#41;;



You can see below that it works!
Please do not PM, IM or email me for support (they will go unread/ignored). Use the forum for support.
Guest

2004-11-01 11:08:20

By default, images that include query strings are not allowed. Edit your code as follows:

Code:
// code..

$text = preg_replace&#40;"#[img]&#40;&#40;ht|f&#41;tp://&#41;&#40;[^ ?&="nrt&#60;]*?&#40;.&#40;php[^[]*|jpg|jpeg|gif|png&#41;&#41;&#41;[/img]#sie", "'[img:$uid]1' . str_replace&#40;' ', '%20', '3'&#41; . '[/img:$uid]'", $text&#41;;


You cannot use both php and php[^[]* at the same time, it must be one or the other.

This is a phpNuke fix, but since the fourm is phpbb, I don't see why it wouldn't work here as well.
[BOINCstats] Willy
 
Forum moderator - Administrator - Developer - Tester - Translator
BAM!ID: 1
Joined: 2006-01-09
Posts: 9461
Credits: 353,172,950
World-rank: 5,070

2004-11-01 12:59:52

That code works better indeed.

THANKS!
Pages: [1] 2

Index :: News :: BOINCstats signature graphic.
Reason: