Jens' "Official Song Poll" script

Talk about everything else besides Stratovarius here in English. Please try to put more serious topics here, and silly topics in the Spam section.
Locked
User avatar
Dave
Sr. Member
Posts:16777041
Joined:Sun Dec 26, 2004 5:57 pm
Location:somewhere under your bed
Jens' "Official Song Poll" script

Post by Dave » Thu Mar 02, 2006 3:53 pm

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?
Spamming is serious business!

User avatar
Dave
Sr. Member
Posts:16777041
Joined:Sun Dec 26, 2004 5:57 pm
Location:somewhere under your bed

Re: Jens' "Official Song Poll" script

Post by Dave » Tue Mar 07, 2006 8:36 pm

Nobody? :cry:
Spamming is serious business!

User avatar
JensJohansson
Administrator
Posts:1490
Joined:Thu Feb 28, 2002 10:45 pm
Contact:

Re: Jens' "Official Song Poll" script

Post by JensJohansson » Tue Mar 07, 2006 10:51 pm

Dave wrote:Nobody? :cry:
Well.. I do obviously..

Is it phpbb tho?
Jens.

================================
"Koskenkorva is very good."
-Ronald Reagan
================================

User avatar
Dave
Sr. Member
Posts:16777041
Joined:Sun Dec 26, 2004 5:57 pm
Location:somewhere under your bed

Re: Jens' "Official Song Poll" script

Post by Dave » Tue Mar 07, 2006 10:57 pm

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
Spamming is serious business!

User avatar
JensJohansson
Administrator
Posts:1490
Joined:Thu Feb 28, 2002 10:45 pm
Contact:

Re: Jens' "Official Song Poll" script

Post by JensJohansson » Tue Mar 07, 2006 11:16 pm

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
Jens.

================================
"Koskenkorva is very good."
-Ronald Reagan
================================

User avatar
Dave
Sr. Member
Posts:16777041
Joined:Sun Dec 26, 2004 5:57 pm
Location:somewhere under your bed

Re: Jens' "Official Song Poll" script

Post by Dave » Tue Mar 07, 2006 11:28 pm

Thanks anyway :) --I think i'll keep that for my soon opening private spamming forum :P
Spamming is serious business!

User avatar
Syren.S
Member
Posts:143
Joined:Wed Nov 30, 2005 9:49 pm
Location:55:40N, 12:35E
Contact:

Re: Jens' "Official Song Poll" script

Post by Syren.S » Wed Mar 08, 2006 12:40 am

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. :)
++The way that I feel is the way that I heal++

User avatar
Beast_Pete
Sr. Member
Posts:6489
Joined:Sun Mar 02, 2003 8:34 pm
Location:Budapest, Hungary
Contact:

Re: Jens' "Official Song Poll" script

Post by Beast_Pete » Wed Mar 08, 2006 12:56 am

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:
"Mikor az utolsó véred is elfolyék,
S a tested is a porba hullék,
Akkor is van még remény,
Mert a lelked továbbra is él."

- Mark Swanson -
from the book, Nick's legend

User avatar
JensJohansson
Administrator
Posts:1490
Joined:Thu Feb 28, 2002 10:45 pm
Contact:

Re: Jens' "Official Song Poll" script

Post by JensJohansson » Wed Mar 08, 2006 1:29 am

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:
Jens.

================================
"Koskenkorva is very good."
-Ronald Reagan
================================

User avatar
Stealth
Sr. Member
Posts:2067
Joined:Sat Jan 17, 2004 8:56 am
Location:Blah

Re: Jens' "Official Song Poll" script

Post by Stealth » Wed Mar 08, 2006 1:45 am

You people with your little codes freak me out...

FREAKS!!! :D

:lol:
If irony were made of strawberries, we'd all be drinking a lot of smoothies right now.

Lilith
Sr. Member
Posts:1524
Joined:Wed Jun 12, 2002 3:31 am

Re: Jens' "Official Song Poll" script

Post by Lilith » Wed Mar 08, 2006 2:03 am

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

User avatar
Beast_Pete
Sr. Member
Posts:6489
Joined:Sun Mar 02, 2003 8:34 pm
Location:Budapest, Hungary
Contact:

Re: Jens' "Official Song Poll" script

Post by Beast_Pete » Wed Mar 08, 2006 2:08 am

I'd love to be able to read the whole code. I don't know this language, but I understand some obvious words. :)
"Mikor az utolsó véred is elfolyék,
S a tested is a porba hullék,
Akkor is van még remény,
Mert a lelked továbbra is él."

- Mark Swanson -
from the book, Nick's legend

User avatar
stratoplayer
Sr. Member
Posts:2598
Joined:Sat Feb 26, 2005 9:05 pm
Location:Monterrey, Mexico

Re: Jens' "Official Song Poll" script

Post by stratoplayer » Wed Mar 08, 2006 4:01 am

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
Close your eyes and try to remember, destroyed lullabies of days gone by
Close your eyes on the edge of forever, a chance to dream fast asleep your nightmare ends

User avatar
Syren.S
Member
Posts:143
Joined:Wed Nov 30, 2005 9:49 pm
Location:55:40N, 12:35E
Contact:

Re: Jens' "Official Song Poll" script

Post by Syren.S » Wed Mar 08, 2006 8:23 am

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*!)
++The way that I feel is the way that I heal++

User avatar
Cristiane
Sr. Member
Posts:651
Joined:Fri Jan 16, 2004 6:54 am
Location:Sao Paulo, Brazil

Re: Jens' "Official Song Poll" script

Post by Cristiane » Wed Mar 08, 2006 2:01 pm

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
Lady Elecktra - Warrioress and Keeper of the Light of Booga

You are responsible, forever, for what you have tamed. - Antoine de Saint-Exupery

User avatar
Beast_Pete
Sr. Member
Posts:6489
Joined:Sun Mar 02, 2003 8:34 pm
Location:Budapest, Hungary
Contact:

Re: Jens' "Official Song Poll" script

Post by Beast_Pete » Thu Mar 09, 2006 12:51 am

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. :)
"Mikor az utolsó véred is elfolyék,
S a tested is a porba hullék,
Akkor is van még remény,
Mert a lelked továbbra is él."

- Mark Swanson -
from the book, Nick's legend

User avatar
Dave
Sr. Member
Posts:16777041
Joined:Sun Dec 26, 2004 5:57 pm
Location:somewhere under your bed

Re: Jens' "Official Song Poll" script

Post by Dave » Thu Mar 09, 2006 6:02 pm

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?
Spamming is serious business!

User avatar
Syren.S
Member
Posts:143
Joined:Wed Nov 30, 2005 9:49 pm
Location:55:40N, 12:35E
Contact:

Re: Jens' "Official Song Poll" script

Post by Syren.S » Thu Mar 09, 2006 9:17 pm

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.
++The way that I feel is the way that I heal++

User avatar
NeonVomit
Sr. Member
Posts:4628
Joined:Thu Feb 20, 2003 5:36 pm
Location:London, UK

Re: Jens' "Official Song Poll" script

Post by NeonVomit » Thu Mar 09, 2006 11:17 pm

[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...
"Beneath the freezing sky arrives Winter's Verge..."

http://www.wintersverge.com


I'm going to hell, and loving the ride!

User avatar
Syren.S
Member
Posts:143
Joined:Wed Nov 30, 2005 9:49 pm
Location:55:40N, 12:35E
Contact:

Re: Jens' "Official Song Poll" script

Post by Syren.S » Sun Mar 12, 2006 10:23 pm

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
++The way that I feel is the way that I heal++

Locked