Jump to content

Important Announcement!

Torrenttrader v3.0.0 public beta will be a rewrite and touch up
*Add udp support for all popular udp trackers
*Change the mailing system to ensure a better users interface.
*Change the way mods are added they will know use a plugin system
*Change the admin system in order to improve security
*Change the member management system like ip-board style in order to
have more control over site this is a must as it annoying that you can't setup
different group permission
*Change Theme system in order to make like easy and add smarty in
*Add a option in admincp buy support package etc they pay £5/mo for support from the
tt crew and have us fix the issues this also help fund the forum just a idea
*Rewrite the forum in order to give uses a better ui
*Rewhite torrent-details by adding comment system auto image resize based on setting in admincp more ajax refresh means less kicking to do.
*Rewrite the way sidebar works using plugins rather then php files
*and many more stuff to come

*torrenttrader v2.0.8 mods will need convert or may not be supported

If you like to help us in anyway please Donate to help keep tt alive :)

Shout box problem


  • Please log in to reply
39 replies to this topic

#21
titanstorm

titanstorm

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 186 posts
  • thanks

the users online block is cached for 10mins


10 min... LOL mine is 6 hours which I am still trying to figure out. And when I post something in the shout box it is 6 hours off...

#22
alamandra

alamandra

    Advanced Member

  • Jailed
  • PipPipPip
  • 499 posts
  • thanks

10 min... LOL mine is 6 hours which I am still trying to figure out. And when I post something in the shout box it is 6 hours off...



So please, how could i change from 10 miinutes to INSTANT ?

#23
Guest_d3fct_*

Guest_d3fct_*
  • Guests
  • thanks

in functions.php change

setcookie("uid", $id, $expires, "/");
setcookie("pass", $md5, $expires, "/");

To
setcookie("uid", $id, $expires, "/", ".yoursite.com");
setcookie("pass", $md5, $expires, "/", ".yoursite.com");

and
setcookie("uid", "null", time(), "/");
setcookie("pass", "null", time(), "/");
To
setcookie("uid", "null", time(), "/", ".yoursite.com");
setcookie("pass", "null", time(), "/", ".yoursite.com");
Replace yoursite.com with your domain name.




Ok so i installed torrenttrader into another directory, do i nee to point the cookie to the home driectory of my domain, or the home directory of torrent tracker?


setcookie("uid", $id, $expires, "/", ".legionofdeath.net");

OR

setcookie("uid", $id, $expires, "/", ".legionofdeath.net/Lod/tracker");


#24
Phoenix_UK

Phoenix_UK

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 609 posts
  • thanks
first one

#25
Guest_d3fct_*

Guest_d3fct_*
  • Guests
  • thanks
ok thanks

#26
TheUnknown

TheUnknown

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 302 posts
  • thanks
Here's a classic error always seen with fresh installations...I had fixed this before, but I forgot what I did. I already did what Phoenix UK said, but it's still doing it.

Everything is CHMOD as it should and everything works fine, but the shoutbox always has this cookie problem...I'm using TT 2.05 on this installation. Any solutions into this?

Posted Image
Posted Image

#27
Blaze Storm

Blaze Storm

    Newbie

  • Pirates
  • Pip
  • 9 posts
  • thanks
Sorry but i tried all the ways teached here and there are no changes in IE , Opera & Safari .

setcookie("uid", $id, $expires, "/", ".yoursite.com");
setcookie("pass", $md5, $expires, "/", ".yoursite.com");


This method give me a error in all modified lines
Note : The URL works in both ways ( with www or not )

$site_config['SITEURL'] = 'http://canadiantorrent.com'; //Main Site URL
$site_config['SITEURL'] = 'http://www.canadiantorrent.com'; //Main Site URL


And this method give me a URL error in all browsers ( inside the shoutbox ) and all images don't appear .


Without changes in the original codes , it works fine in FF but don't work in all other browsers .

Posted Image

We are using a Modified NB-Xmas theme overthere .

Anybody can give me a hand ? I haven't experience working with PHP but i'm trying to build a nice tracker with your tips , tricks and codes :D

http://trader.newdreamteam.org

Edit : I forgot to say this : It's a Upgrade from TT 1.xx for TT 2.05 , not a clean install .

#28
Blaze Storm

Blaze Storm

    Newbie

  • Pirates
  • Pip
  • 9 posts
  • thanks
Resolved :D

An user found the solution changing default theme to another and returning it after :D

#29
Guest_ZakoLB_*

Guest_ZakoLB_*
  • Guests
  • thanks

Ah I will have to test your code out as there still seems to be a huge delay in people not show as being online, even after changing the refresh from the default 600 seconds to 10 seconds.

I also found in the config.php you CAN have multiple site URL's. for example...

$site_config['SITEURL'] = 'http://canadiantorrent.com'; //Main Site URL
$site_config['SITEURL'] = 'http://www.canadiantorrent.com'; //Main Site URL



Thank you very much man,

This solution fixed these problems for me
* Shoutbox keeps saying login
* Cookies updates very slow
* Added several blocks but none was showing even if i delete my cookies
* New torrents as pictures in main page, the pictures was not showing

You save alot of my time ;)

#30
GodLike

GodLike

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 182 posts
  • 0 thanks

in functions.php change

setcookie("uid", $id, $expires, "/");
setcookie("pass", $md5, $expires, "/");

To
setcookie("uid", $id, $expires, "/", ".yoursite.com");
setcookie("pass", $md5, $expires, "/", ".yoursite.com");

and
setcookie("uid", "null", time(), "/");
setcookie("pass", "null", time(), "/");
To
setcookie("uid", "null", time(), "/", ".yoursite.com");
setcookie("pass", "null", time(), "/", ".yoursite.com");
Replace yoursite.com with your domain name.


I try this and solve the shoutbox problem but the users cannot logout :/

#31
Phoenix_UK

Phoenix_UK

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 609 posts
  • thanks
then you did something wrong.

#32
GodLike

GodLike

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 182 posts
  • 0 thanks
I use v2.6 and the lines is a little different... Is this the problem?

function logincookie($id, $password, $secret, $updatedb = 1, $expires = 0x7fffffff) {
	$md5 = md5($id.getip().$secret.$password.$secret);
	setcookie("pass", $md5, $expires, "/");

	if ($updatedb)
		mysql_query("UPDATE users SET last_login = '".get_date_time()."' WHERE id = $id");
}

function logoutcookie() {
	setcookie("pass", "null", time(), "/");
}


#33
Guest_djhowarth_*

Guest_djhowarth_*
  • Guests
  • thanks
forget what has been said above and try this... in shoutbox.php

find

if (isset($CURUSER)){

replace with

if (isset($_COOKIE["pass"])){


#34
GodLike

GodLike

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 182 posts
  • 0 thanks
Thank you DJ! I test it and until now works :huh:

#35
jagmeetsingh

jagmeetsingh

    Member

  • Pirates
  • PipPip
  • 21 posts
  • thanks
thanks. It worked!!!!!

#36
Guest_Flav_*

Guest_Flav_*
  • Guests
  • thanks
thanks DJ :lol:

#37
Guest_djhowarth_*

Guest_djhowarth_*
  • Guests
  • thanks
Added to SVN (Trunk Release)

#38
Mythos

Mythos

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 936 posts
  • 0 thanks
a user have the same problem but me i dont. i dont know what i can doing. i have 2.07

#39
thedarklord

thedarklord

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 694 posts
  • 0 thanks
you sure he is on the same site link as you ?

i.e in config.php if you have it as www.blah.blah

and he is just on blah.blah without the www.

shoutbox wont show

#40
Mythos

Mythos

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 936 posts
  • 0 thanks
thedarklord thank you very much
its ok now with your advice




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users