Page 1 of 1

Jens' "Official Song Poll" script

Posted: Thu Mar 02, 2006 3:53 pm
by Dave
Does anybody know how to do something like the "Official Song Poll"-Perl-script? I'd like to use it in one of the forums i'm currently moderating, but much time has gone since i learned Perl..
Maybe somebody knows where I can download ready-to-use-scripts?

Re: Jens' "Official Song Poll" script

Posted: Tue Mar 07, 2006 8:36 pm
by Dave
Nobody? :cry:

Re: Jens' "Official Song Poll" script

Posted: Tue Mar 07, 2006 10:51 pm
by JensJohansson
Dave wrote:Nobody? :cry:
Well.. I do obviously..

Is it phpbb tho?

Re: Jens' "Official Song Poll" script

Posted: Tue Mar 07, 2006 10:57 pm
by Dave
Yep it is--but it's a hosted one..

EDIT: But we're thinking about getting some own server and let it run there, so if it's just working on non-hosted phpbb, that shouldn't be the problem

Re: Jens' "Official Song Poll" script

Posted: Tue Mar 07, 2006 11:16 pm
by JensJohansson
Dave wrote:Yep it is--but it's a hosted one..
Then you're probably shit out of luck =)

But if you can use perl cgi then

http://www.stratovarius.com/forum/songpoll.txt

Re: Jens' "Official Song Poll" script

Posted: Tue Mar 07, 2006 11:28 pm
by Dave
Thanks anyway :) --I think i'll keep that for my soon opening private spamming forum :P

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 12:40 am
by Syren.S
believe me or not, i read the code! damn, i must have had too much time to kill... :(

@Dave, since you are using phpBB, why not rewrite this Perl code in PHP? if the server supports phpBB it certainly supports any PHP scripts. perl and php are 90% alike so there's not too much work to do. :)

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 12:56 am
by Beast_Pete
JensJohansson wrote:

Code: Select all

pps don't tell anyone, but we're not going to play black diamond ever again!

ppps just kidding :)
:lol:

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 1:29 am
by JensJohansson
Syren.S wrote:believe me or not, i read the code! damn, i must have had too much time to kill... :(

@Dave, since you are using phpBB, why not rewrite this Perl code in PHP? if the server supports phpBB it certainly supports any PHP scripts. perl and php are 90% alike so there's not too much work to do. :)
Well.. I wrote it so imagine all the time I had to kill!!! =) Time I probably didn't actually have.... =)

Well converting to php should of course be quite trivial:

Code: Select all

<? echo exec&#40;"/bin/perl -T songpoll.pl"&#41;; ?>
:lol: :lol: :lol: :lol:

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 1:45 am
by Stealth
You people with your little codes freak me out...

FREAKS!!! :D

:lol:

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 2:03 am
by Lilith
Stealth wrote:You people with your little codes freak me out...

FREAKS!!! :D

:lol:
:lol:

yeah, those little unhuman codes freak me out as well :D

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 2:08 am
by Beast_Pete
I'd love to be able to read the whole code. I don't know this language, but I understand some obvious words. :)

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 4:01 am
by stratoplayer
I'd love to learn how to program period! But i do not have too much free time, and writting endless lines of code seems like an inhuman task to me

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 8:23 am
by Syren.S
JensJohansson wrote:Well converting to php should of course be quite trivial:

Code: Select all

<? echo exec&#40;"/bin/perl -T songpoll.pl"&#41;; ?>
:lol: :lol: :lol: :lol:
hahahaha Jens you rule!
Image

okay Dave, if you can wait til this weekend, i might have another hour or two to kill, and convert the core part for you. (i say *might*!)

Re: Jens' "Official Song Poll" script

Posted: Wed Mar 08, 2006 2:01 pm
by Cristiane
Beast_Pete wrote: I don't know this language, but I understand some obvious words. :)
So do I!
<? echo exec("/bin/perl -T songpoll.pl"); ?>
I clearly understand the words perl and songpoll... I'm on the right way to become a super geek I guess... :P

Re: Jens' "Official Song Poll" script

Posted: Thu Mar 09, 2006 12:51 am
by Beast_Pete
Cristiane wrote:
Beast_Pete wrote: I don't know this language, but I understand some obvious words. :)
So do I!
<? echo exec("/bin/perl -T songpoll.pl"); ?>
I clearly understand the words perl and songpoll... I'm on the right way to become a super geek I guess... :P
LOL. That made my day. :)

Re: Jens' "Official Song Poll" script

Posted: Thu Mar 09, 2006 6:02 pm
by Dave
Syren.S wrote:
JensJohansson wrote:Well converting to php should of course be quite trivial:

Code: Select all

<? echo exec&#40;"/bin/perl -T songpoll.pl"&#41;; ?>
:lol: :lol: :lol: :lol:
hahahaha Jens you rule!

okay Dave, if you can wait til this weekend, i might have another hour or two to kill, and convert the core part for you. (i say *might*!)
Ok thanks then.. :) But i'm sure about those scripts, usually i just put them into the phpbb folder, but the admin of the forum i was talking about doesn't have access to this forum folder (he even can't upload smilies), so i guess it shouldn't work?

Re: Jens' "Official Song Poll" script

Posted: Thu Mar 09, 2006 9:17 pm
by Syren.S
no, this script has nothing to do with the forum itself. you don't even need to put it inside the forum folder. it can be put anywhere under your root folder. it talks to the database directly, and count the posts from there. but you said the admin has no access to the scripts? does that means he has an administrator account in that forum, but it's provided by somebody else? someone else runs the forum and gave him an moderator account to moderate the forum/a sub-forum? if that's the case, this won't work. you need to upload this file to somewhere inside your server, and you need to know the username and password for the database runs behind the forum too.
hope i made myself clear...

anyway i wrote the PHP version yesterday, but haven't test it yet. i'll see if i can do it on sunday.

Re: Jens' "Official Song Poll" script

Posted: Thu Mar 09, 2006 11:17 pm
by NeonVomit
[quote="JensJohansson"
Well converting to php should of course be quite trivial:

Code: Select all

<? echo exec&#40;"/bin/perl -T songpoll.pl"&#41;; ?>
:lol: :lol: :lol: :lol:[/quote]



<----------------
. :cry:

Right over my head...

Re: Jens' "Official Song Poll" script

Posted: Sun Mar 12, 2006 10:23 pm
by Syren.S
here's the simplified version in PHP. i didn't do the Overlib boxes(which Jens is so fond of... :lol: )
http://www.freepgs.com/syren/Extra/songpoll.txt
as far as i test it, it works fine. but there might be bugs.
(and don't expect professional programming style from me, that never gonna happen...)

don't know if anybody actually wants to use it, but again, i just write it for fun. (sounds like a geek? :roll: )

okay, enough time has been killed... back to your homework, now! orz