drinkingsouls
"A Thousand More Regrets Unraveling"
Hey, Any idea on when this will be ready for a release? I read that it was meant to be released in June. Anyway, its a really nice script. Is this current code safe, like from spammers and stuff?
asemisldkfj
the law is no protection
hello. I don't know the status of a release, but from what I've seen of lucas's code it looks safe.
the only vulnerability I know of was brought up
here
how'd you find the forum software/forum?
i'm pretty busy, and i will continue to be busy, but i'll try to have it done in a couple weeks. (i'll have time this weekend to work on it).
drinkingsouls
"A Thousand More Regrets Unraveling"
Ah cool, it seems like a great script. Im hoping to run my forum on it but I need to set that up as soon on possible so Ill probably wait for this to be released. The only error Ive found so far is that in the new version of Internet Explorer, this comment box is underneath where it says 'click to post', Other than that its cool.
So is the code source going around fine and available for use? I wanted to download it but it said I needed to be a member to do so.
asemisldkfj
the law is no protection
http://code.google.com/p/thinktankforums/source
it says on that page that you can get a copy of the source anonymously.
drinkingsouls
"A Thousand More Regrets Unraveling"
Hey, I thought that was read-only? Anyway I downloaded all the files there and uploaded there here:
http://drinkingsouls.hostwq.net/Forum/
As you can see there is obviously an error somewhere in that, I also dont know how to set it up. Where can I find instructions on how to do that?
asemisldkfj
the law is no protection
it does say read-only, but I think that just means you can't write changes back to the subversion server? I'm not positive.
lucas'll have to help with that error :).
i don't see any files in that directory.
what gives
drinkingsouls
"A Thousand More Regrets Unraveling"
oops, check again now, you will be able to see what I mean
it seems that your http server isn't parsing it as php
drinkingsouls
"A Thousand More Regrets Unraveling"
Hey, I tried uploading it to another host and it seems to have worked, only its missing a file named 'include_credentials.php'
You can see here where I uploaded it:
http://www.drinkingsouls.co.uk/TT/
asemisldkfj
the law is no protection
maybe the include_path is wrong?
include_path='.:/usr/local/lib/php'
in the middle where it says:
/* database variables
* ~~~~~~~~~~~~~~~~~~
*
* let $dbms_host be the hostname
* $dbms_user be the username
* $dbms_pass be the password
* $dbms_db be the database
*/
require "include_credentials.php";
at this location:
http://thinktankforums.googlecode.com/svn/tru … common.php
you just need to uncomment the database variables and put in your db information.
drinkingsouls
"A Thousand More Regrets Unraveling"
Yeah, I havnt set it up yet. I dont know how too. I have found no readme or instructions. Could anyone please provide the full instalation instructions and all the files needed to run it?
I would be grateful if anyone could.
asemisldkfj
the law is no protection
I can't give exact instructions, but you need a working MySQL installation. do you administer the computer you're setting this up on? if so, install MySQL. the MySQL website has a good tutorial (http://dev.mysql.com/doc/refman/5.1/en/tutorial.html) that you could look at.
you can name the database whatever you like, so long as you enter the same name in include_common.php in the appropriate place. same with a username and password.
to set up the database you create for TTF, you need to execute the statements in _table_structure.txt. (assuming this hasn't changed. I have an old version of the code and don't want to check out the brand new one.) I'm not sure if there's a quicker way of doing this than copying and pasting.
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
biggest problem i had installing was there was no example file for the database config file. I had to guess what it looked like. luckily it was as simple as i guessed. =P
managing the forum certainly isn't for the non php saavy last I checked...
drinkingsouls
"A Thousand More Regrets Unraveling"
This is really confusing. Ive worked with php/mysql before, but not like this. I set up my database and opened table_structure.txt but Im completely clueless on what to edit and what not too!, its quite a big file.
asemisldkfj
the law is no protection
you shouldn't edit _table_structure.txt, just execute those statements from the MySQL prompt/shell/whatever it's called.
you know
run mysql -u username -p
then it asks you for your password
then you're at the MySQL prompt and you can copy and paste the statements from table_structure
there's probably an easier way to execute the contents of a file in MySQL, but I don't know of it.
asemisldkfj
the law is no protection
the only file you should edit is include_common.php. just enter your database name, username, and password. I think that's all.
drinkingsouls
"A Thousand More Regrets Unraveling"
Im really confused!, I obviously missing the file 'include_credentials.php' because the index page asks for it, and at the google link there was no such page. Where exactly do I add my mysql information on include_common.php ? Could you please tell me a line number or quote the part that needs to be changed? Im not too good at this!
lines 325-333 include_common.php r153
/* database variables
* ~~~~~~~~~~~~~~~~~~
*
* let $dbms_host be the hostname
* $dbms_user be the username
* $dbms_pass be the password
* $dbms_db be the database
*/
require "include_credentials.php";
so make a file called "include_credentials.php", and in it put:
<?php
$dbms_host="addr";
$dbms_user="user";
$dbms_pass="pass";
$dbms_db="db_name";
?>
asemisldkfj
the law is no protection
woops, ignore what I said about editing include_common then :).
well, you can do that too. this just allows a file to be dropped in.
drinkingsouls
"A Thousand More Regrets Unraveling"
Ah, thank you both!, I had a bit of luck, I mean I managed to get something, although I now have a mysql error, see here:
http://www.drinkingsouls.hostwq.net/TT/
asemisldkfj
the law is no protection
did you run all of the statements in _table_structure.txt?
drinkingsouls
"A Thousand More Regrets Unraveling"
How do I do that?
asemisldkfj
the law is no protection
I posted some rough instructions about 9 posts up.
the MySQL site that I linked to might be of some help too.
drinkingsouls
"A Thousand More Regrets Unraveling"
Hey, I logged into phpmyadmin and imported table_structure.txt and It seems to have worked.
Does that look like it should?
http://www.drinkingsouls.hostwq.net/TT/
What else do I need to do to set it up? Obvoulsy Ill need to create the admin account, how do I do this?
asemisldkfj
the law is no protection
oh awesome. looks good. you probably have to create the different forums somehow. I'm not sure how to do that. not sure about the admin account, either.
drinkingsouls
"A Thousand More Regrets Unraveling"
Do you know if user signup should be working by now, or do I still have to configure it? I signed up a few hours ago just to test it but so far I have not recieved my password. I suppose that could also be down to the server, Ill need to find out which one.
asemisldkfj
the law is no protection
lucas will probably have to answer that. I forget how the whole emailing the password thing works. it might depend on your server's mail transfer agent.
do you have an mta (mail server) running locally?
drinkingsouls
"A Thousand More Regrets Unraveling"
You mean like a form to email script? I currently dont have one of those setup, I use a remotely hosted one. I thought that the Forum script came with its own form to mail script. Im not entirely sure what you mean. Ive asked my host anyway and Ill see what they say.
Thanks
drinkingsouls
"A Thousand More Regrets Unraveling"
Okay, My host have replied. They said:
'It should work if it goes along with your forum. Also, I've enabled sendmail for your account. So everything should work now, if not, then it's the script'
I joined again but I havnt got a confirmation email. Should this just work or do I have too assign the send mail to the script or something?
it should just work. you need an mta (like sendmail). you aren't getting any error?
Aha, I got something!, something very strange though...
I registered for my forums here
http://www.drinkingsouls.hostwq.net/TT/
and I got an email, but when I go to login there I cant because it says 'invalid username and/or password'
But then I can log in here with the account I just created from my forums if you get what I mean. Obviously I need to change the URL somewhere in the script.
I also still need to create the admin account.
You see, I registered as 'Me' at my forum and I logged in here with it.
Just to clarify I am drinkingsouls
you probably registered here and got an email from my server and logged in here
are the entries going into your table `ttf_user`?
drinkingsouls
"A Thousand More Regrets Unraveling"
Im pretty sure I registered at my host. Maybe you should go and try and then try to login. The register page is definetly on my server, maybe the script re directs here or something.
drinkingsouls
"A Thousand More Regrets Unraveling"
Oh and yeah, the user entries are going into 'ttf_user', I can see them when I log into my phpmyadmin
well i registered but received no mail so i don't get a password :(
Im pretty sure I registered at my host. Maybe you should go and try and then try to login. The register page is definetly on my server, maybe the script re directs here or something.
impossible.
i tried to register as "lucas," it let me, and i got no email. of course, if i were to register on
thinktankforums.com as "lucas," it would tell me the username is taken.
your host's mta isn't working properly. from
http://us3.php.net/function.mail :
Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.
because the software is printing a successful message instead of an error, it means that the mail was "successfully accepted for delivery." the rest is up to your host and your mta, not our software. sorry, but we can't help you much from here.
as for docs, they will be there in the future, with any luck. sorry they don't exist at the moment.
i finally got the registration email from your server. look: i edit my profile:
http://www.drinkingsouls.hostwq.net/TT/profile.php?user_id=2
drinkingsouls
"A Thousand More Regrets Unraveling"
I showed the support at my host what you said and they replied:
I can't see anything wrong. I've ran both paid and free forum scripts on free accounts and they sends out registration emails fine. What forum script are you using again? If I have to guess, there might be something you need to configure or do; or your forum script uses one of our disabled features:
Quote
Due to the abuse of free hosting resources, we disable certain functions.
PHP sendmail is enabled on all free hosting accounts by default.
GD is enabled on all free hosting accounts by default.
The following restrictions / PHP settings are in effect: fopen wrappers / curl are disabled
SMTP Email is disabled
IMAP Email is disabled
Safe Mode is ON.
Some .htaccess directives are not supported.
Also, the following PHP functions are disabled : exec, system, passthru, shell_exec, escapeshellarg, escapeshellcmd, proc_close, proc_open, ini_alter, dl, popen, show_source, curl_exec, popen, pcntl_exec, socket_accept, socket_bind, socket_clear_error, socket_close, socket_connect, socket_create_listen, socket_create_pair, socket_create, socket_get_option, socket_getpeername, socket_getsockname, socket_last_error, socket_listen, socket_read, socket_recv, socket_recvfrom, socket_select, socket_send, socket_sendto, socket_set_block, socket_set_nonblock, socket_set_option, socket_shutdown, socket_strerror, socket_write, stream_socket_client, stream_socket_server, fsockopen, pfsockopen, stream_set_timeout, ftp_alloc, ftp_cdup, ftp_chdir, ftp_chmod, ftp_close, ftp_connect, ftp_delete, ftp_exec, ftp_fget, ftp_fput, ftp_get_option, ftp_get, ftp_login, ftp_mdtm, ftp_mkdir, ftp_nb_continue, ftp_nb_fget, ftp_nb_fput, ftp_nb_get, ftp_nb_put, ftp_nlist, ftp_pasv, ftp_put, ftp_pwd, ftp_quit, ftp_raw, ftp_rawlist, ftp_rename, ftp_rmdir, ftp_set_option, ftp_site, ftp_size, ftp_ssl_connect, ftp_systype, chown, getrusage, get_current_user, set_time_limit, getmyuid, getmypid, dl, leak, listen, chgrp, link, symlink, glob, dlopen, proc_nice, proc_get_stats, proc_terminate, shell_exec, sh2_exec, posix_getpwuid, posix_getgrgid, posix_kill, ini_restore, mkfifo
Here are some great free alternatives if you want to give it a test: phpBB, SMF, phpBB
Hmmm....
as i said: "i finally got the registration email from your server." in other words: your mta (sendmail) works, just slowly.
ttf queues the email with your mta before it tells you that the registration was successful. and that's all you can do in php. after that, it's up to the mta. and it sat in the mta's outgoing queue for hours.
drinkingsouls
"A Thousand More Regrets Unraveling"
I guess the registrations working okay then. I need to get started with the forum now. How do I open an admin account and start threads and stuff. I havnt managed to login yet. Im still waiting on my email to see if it works.
use phpmyadmin to view the `user' table, and change the permissions of a user to 'admin'
create forums by inserting rows into the `forum' table
etc.
drinkingsouls
"A Thousand More Regrets Unraveling"
I inserted rows but nothing seemed to happen. Does this all have to be done through phpmyadmin? There is no admin pannel?
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
heh there is no admin panel =P
hahaha DRINKINGSOULS
drinkingsouls
"A Thousand More Regrets Unraveling"
Hey, did this forum ever get a release?
no
who needs releases? :p
this thread makes me laugh.
Seriously it should at least have an installation script though, and a link to download, even if it's not ready for release.
-Weasley
go for it.
i've been thinking about the install script for a while. it just depends on how intensive we want it. i'll do my best to have one by the end of this week, i just have no eye for design so it would probably be best served by lucas on that front.
sorry that i've been so slow at looking at your work, db.
weasley: i'm not an evangelist of my software. i code ttf for myself to use on thinktankforums.com. if other people can find it useful, then that's great. but i'd rather invest my time into features that the users of
thinktankforums.com find useful instead of trying to get other people to run my software on their websites.
You should still just make a quick installation script and add it to Google Code once in a while, I don't mean every month, i'm on about once a year or something, when there are a few more features you would release for instance 1.1 a year after 1.0. An installation script doesn't take ages, I can usually make one in about 5 minutes.
-Weasley
noted. thanks for the suggestion!
yeah, i guess a really simple one wouldn't take long to make.
History500
I AM the walrus!
Could you add me to the TTF google code project, so I can download the source code?
My email on google code is history500@gmail.com
History500
I AM the walrus!
Doesn't work for me. No errors, just all files display blank pages.
are you using a subversion client?
History500
I AM the walrus!
No, I just downloaded the files one by one and put them in /applications/MAMP/HTDOCS/hBB .
so what do you think that being added to the project is going to help you with? it only changes things if you're using a subversion client.
as the checkout page says, you can get the code anonymously. so adding you to the project won't help you at all. (not to mention that i don't give strangers write access to my projects.)
History500
I AM the walrus!
Oh, okay.
Use a subversion client to download the files (such as TortoiseSVN), place the files on a local server and then use _schemas.txt to insert tables into the database.
Seriously History, I know you were linked to here from my website, and I know you are a compete novice at PHP/MySQL. So I suggest you go to something more easier to use, because a lot of Admin based features are only available though phpMyAdmin at the moment.
History500
I AM the walrus!
Okay, I'm learning PHP, SQL, CSS and PERL through a guy at my church at the moment.
PERL isn't really necessary for anything related to PHP.
perl is handy if you're a sysadmin. (although shell scripting can do most of the same stuff.) afaik, perl isn't much fun for web/cgi stuff. in my mind, it's one step away from writing c code, compiling it, and running it through cgi.
asemisldkfj
the law is no protection
ok so I just set up a local copy of ttf because I want to fix the url auto-formatting crap and I just registered on my copy (it's in ttf_user, I checked), logged in with it, and then I ended up at
thinktankforums.com after logging into my local forum. checking out why this is happening now…
asemisldkfj
the law is no protection
oh duh, didn't set $address in include_common. sigh.
asemisldkfj
the law is no protection
any reason that isn't pulled dynamically from php instead of being hard-coded?
how do you pull it dynamically?
a $_SERVER variable such as $_SERVER['SERVER_NAME']; maybe.
is there any point to the $address variable, though?
asemisldkfj
the law is no protection
yeah, I was thinking what Weasley said.
i don't think the "server_name" key will work on vhosts.
nevermind, it will. yeah, for most people it should work fine, then.
As I said though, is it really necessary lucas?
it's necessary if you want to run ttf in a subdirectory.
i remember that sriehl had issues with running ttf in a subdirectory. setting that value to "host.com/path/to/ttf" will solve any such issue.
So having the links like "./" doesn't work?
no, because ttf uses http location headers in some scripts for redirection.
rfc 2616 requires the use of absolute uris for location headers.
(
post 24059)
14.30 Location
The Location response-header field is used to redirect the recipient
to a location other than the Request-URI for completion of the
request or identification of a new resource. For 201 (Created)
responses, the Location is that of the new resource which was created
by the request. For 3xx responses, the location SHOULD indicate the
server's preferred URI for automatic redirection to the resource. The
field value consists of a single absolute URI.
Location = "Location" ":" absoluteURI
An example is:
Location: http://www.w3.org/pub/WWW/People.html
Note: The Content-Location header field (section 14.14) differs
from Location in that the Content-Location identifies the original
location of the entity enclosed in the request. It is therefore
possible for a response to contain header fields for both Location
and Content-Location. Also see section 13.10 for cache
requirements of some methods.
(
rfc 2616)