Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[ADDON] Announcements
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2012-03-03 10:39:34
Hello

I want to put a link in admincp someone could help me
Unknown User
2012-04-24 06:16:49
This mod is great and works perfectly on my TT v2.07 tracker   :)

But now I want to go on v2.08, I made ??the necessary changes, but when I make a new announcement I receive this error:

Error! / Dont leave any fields blank!

Can you help me please?  (I attached modified files).

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5702"]announcements.rar[/url]
announcements.rar
Download
Unknown User
2012-04-24 19:12:35
this 1 seems to work fine now in 2.08 and i fixed other old style code

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5703"]announcements.php[/url]
announcements.php
Download
Unknown User
2012-04-25 04:53:02
Thank you very much ArcticWolf, she's looks great and works perfectly  :)
Unknown User
2012-05-06 13:48:51
Thanks All !  :)

Works on v2.08 !
Unknown User
2012-10-23 19:07:20


CREATE TABLE `announcements` (

`id` int(10) unsigned NOT NULL auto_increment,

`subject` varchar(64) NOT NULL,

`message` text NOT NULL,

`by` varchar(16) NOT NULL default 'Admin',

`added` datetime NOT NULL default '0000-00-00 00:00:00',

`minclassread` tinyint(3) unsigned NOT NULL,

PRIMARY KEY (`id`),

KEY `subject` (`subject`)

) TYPE=MyISAM;

ALTER TABLE `users` ADD `announce_read` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no';

ALTER TABLE `users` ADD INDEX ( `announce_read` ) ;



gives me an error.  It gives me this

Error

SQL query:

[url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fcreate-table.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]CREATE TABLE[/url] `announcements` (

`id` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fnumeric-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]int[/url]( 10 ) unsigned NOT NULL AUTO_INCREMENT ,

`subject` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]varchar[/url]( 64 ) NOT NULL ,

`message` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]text[/url] NOT NULL ,

`by` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]varchar[/url]( 16 ) NOT NULL default 'Admin',

`added` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fdate-and-time-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]datetime[/url] NOT NULL default '0000-00-00 00:00:00',

`minclassread` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fnumeric-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]tinyint[/url]( 3 ) unsigned NOT NULL ,

PRIMARY KEY ( `id` ) ,

KEY `subject` ( `subject` )

) TYPE = MYISAM ;

MySQL said: [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Ferror-messages-server.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"][/url]

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 10

can i get some help with this?
Unknown User
2012-10-23 21:42:43
Oh I see lol Type.......

try this







DROP TABLE IF EXISTS `announcements`;

CREATE TABLE IF NOT EXISTS `announcements` (

 `id` int(10) unsigned NOT NULL auto_increment,

 `subject` varchar(64) NOT NULL,

 `message` text NOT NULL,

 `by` varchar(16) NOT NULL default 'Admin',

 `added` datetime NOT NULL default '0000-00-00 00:00:00',

 `minclassread` tinyint(3) unsigned NOT NULL,

 PRIMARY KEY  (`id`),

 KEY `subject` (`subject`)

) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

Unknown User
2012-10-24 13:54:26
"ArcticWolf, post: 86168":
Oh I see lol Type.......

try this







DROP TABLE IF EXISTS `announcements`;

CREATE TABLE IF NOT EXISTS `announcements` (

`id` int(10) unsigned NOT NULL auto_increment,

`subject` varchar(64) NOT NULL,

`message` text NOT NULL,

`by` varchar(16) NOT NULL default 'Admin',

`added` datetime NOT NULL default '0000-00-00 00:00:00',

`minclassread` tinyint(3) unsigned NOT NULL,

PRIMARY KEY (`id`),

KEY `subject` (`subject`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;



well that worked to input the sql table, but i still get this error when trying to add an announcements

MySQL [url="http://toxictorrents.co.cc/207/announcements.php#"]Error[/url]

MySQL error occured.

Error: (0)
Unknown User
2012-11-28 22:43:09
Thx, works perfectly TT 2-SVN  :)

How to change font color & backgroun?
Unknown User
2013-03-11 18:48:38
THANKS great ADDON!
Unknown User
2013-09-17 19:55:55
It all works except the announcement popup doesn't display the actual message! lol, can someone help me with this, I dont get it... all it displays is "Clear this announcement" link and not the actual message :-/

Also, i was wondering if someone could help... I want the announcements inside of a frame ont he index page (so when i add an announcement the full text of it will be displayed in the frame, as well as future announcements.) In other words i dont want the popup, I just want announcements to be directly displayed. THANKS for any assistance!  :D

EDIT: n/m, just came acroos Artics post about nonm popup version  :D  Thanks Articwolf!
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728