EllisLab text mark
Advanced Search
     
Simple Forums application with a3m auth or any other 3rdparty auth
Posted: 17 April 2011 05:48 AM   [ Ignore ]
Avatar
Joined: 2010-06-22
124 posts

Hi, i have developed a simple forums sistem with a3m auth if someone it’s interested please post here and i’ll share my code with you.
Here’s some print screens if you want to know how it looks like
http://img189.imageshack.us/img189/2774/forumsl.jpg

 
Posted: 17 April 2011 06:38 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2010-09-24
240 posts

Please, do post it. Without it, you’re only bragging. smile

 Signature 

Taskhub - Your local Marketplace for tasks and errands

 
Posted: 17 April 2011 07:04 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2010-06-22
124 posts

Ok here’s the code i use 3 controllers
You must also add few things into your config file

// Forum settings
$config['latest_topics'10;        // Number of topics to display under "latest" on /forums
$config['posts_per_page']    10;    // Number of posts per page on /topics/view/<topic-slug>
$config['topics_per_page']    50;    // Number of topics per page on /forums/view/<forum-slug>
$config['search_results_per_page'10// Number of search results displayed on /search 

and few things to the autoload…(maybe some of them you don’t wanna use it i just don’t have time enought to clear all)

$autoload['helper'= array('url','auth','file','slug','js');
$autoload['libraries'= array('session','form_validation','table','pagination','database','tinypug'); 

Here’s the Download Forums for A3M auth to all files, if you have any problems please post here

https://rapidshare.com/files/457814075/forums.zip

 
Posted: 17 April 2011 08:46 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2010-09-24
240 posts

Nice, I’ll give it a try.

 Signature 

Taskhub - Your local Marketplace for tasks and errands

 
Posted: 17 April 2011 09:58 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2010-06-22
124 posts

btw the sql thing

--
-- 
Table structure for table `forums`
--

CREATE TABLE IF NOT EXISTS `forums` (
  `
idvarchar(13NOT NULL,
  `
namevarchar(100NOT NULL,
  `
descriptionvarchar(255) DEFAULT NULL,
  `
creator_user_namevarchar(20NOT NULL,
  `
slugvarchar(60) DEFAULT NULL,
  `
sequenceint(11NOT NULL,
  `
topic_countint(11) DEFAULT NULL,
  `
post_countint(11) DEFAULT NULL,
  `
is_visibletinyint(1NOT NULL DEFAULT '1',
  `
createddatetime NOT NULL DEFAULT '0001-01-01 00:00:00',
  `
modifieddatetime NOT NULL DEFAULT '0001-01-01 00:00:00',
  
PRIMARY KEY (`id`),
  
UNIQUE KEY `forum_slug` (`slug`)
ENGINE=MyISAM DEFAULT CHARSET=latin1;# MySQL returned an empty result set (i.e. zero rows).

--
-- 
Table structure for table `posts`
--

CREATE TABLE IF NOT EXISTS `posts` (
  `
idvarchar(13NOT NULL,
  `
creator_user_namevarchar(20NOT NULL,
  `
texttext NOT NULL,
  `
topic_idvarchar(13NOT NULL,
  `
is_visibletinyint(1NOT NULL DEFAULT '1',
  `
createddatetime NOT NULL DEFAULT '0001-01-01 00:00:00',
  `
modifieddatetime NOT NULL DEFAULT '0001-01-01 00:00:00',
  
PRIMARY KEY (`id`),
  
KEY `posts_topic_id` (`topic_id`),
  
FULLTEXT KEY `posts_fulltext` (`text`)
ENGINE=MyISAM DEFAULT CHARSET=latin1;# MySQL returned an empty result set (i.e. zero rows).



--
-- 
Table structure for table `status_types`
--

CREATE TABLE IF NOT EXISTS `status_types` (
  `
idvarchar(13NOT NULL,
  `
namevarchar(25NOT NULL,
  `
status_typeenum('Open','Closed','Deleted'NOT NULL DEFAULT 'Open',
  `
createddatetime NOT NULL DEFAULT '0001-01-01 00:00:00',
  `
modifieddatetime NOT NULL DEFAULT '0001-01-01 00:00:00',
  
PRIMARY KEY (`id`)
ENGINE=MyISAM DEFAULT CHARSET=latin1;# MySQL returned an empty result set (i.e. zero rows).


--
-- 
Dumping data for table `status_types`
--

INSERT INTO `status_types` (`id`, `name`, `status_type`, `created`, `modified`) VALUES
('none''None''Open''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'planned''Planned''Open''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'started''Started''Open''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'under-review''Under Review''Open''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'completed''Completed''Closed''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'resolved''Resolved''Closed''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'duplicate''Duplicate''Deleted''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'inappropriate''Inappropriate''Deleted''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'other''Other''Deleted''2009-07-29 00:00:00''2009-07-29 00:00:00'),
(
'spam''Spam''Deleted''2009-07-29 00:00:00''2009-07-29 00:00:00');# 10 row(s) affected.


--
-- 
Table structure for table `topics`
--

CREATE TABLE IF NOT EXISTS `topics` (
  `
idvarchar(13NOT NULL,
  `
namevarchar(100NOT NULL,
  `
slugvarchar(60) DEFAULT NULL,
  `
forum_idvarchar(13NOT NULL,
  `
creator_user_namevarchar(20NOT NULL,
  `
last_poster_user_namevarchar(20) DEFAULT NULL,
  `
last_post_datedatetime DEFAULT NULL,
  `
post_countint(11NOT NULL DEFAULT '0',
  `
is_stickytinyint(1unsigned DEFAULT '0',
  `
is_lockedtinyint(1unsigned DEFAULT '0',
  `
status_type_idvarchar(13NOT NULL DEFAULT 'none',
  `
is_visibletinyint(1NOT NULL DEFAULT '1',
  `
createddatetime NOT NULL DEFAULT '0001-01-01 00:00:00',
  `
modifieddatetime NOT NULL DEFAULT '0001-01-01 00:00:00',
  
PRIMARY KEY (`id`),
  
UNIQUE KEY `topics_slug_unique` (`slug`),
  
KEY `topics_forum_id` (`forum_id`)
ENGINE=MyISAM DEFAULT CHARSET=latin1;# MySQL returned an empty result set (i.e. zero rows). 
 
Posted: 23 May 2011 09:18 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2011-03-11
9 posts

I am going to try it. I was making something like this for myself. This is going to save me so much work if it works. Thanks. Do you have a link for a working demo?

 
Posted: 23 May 2011 09:20 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Joined: 2011-03-11
9 posts

Will this work with the CI 2.x.x

 
Posted: 24 May 2011 01:29 AM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2010-06-22
124 posts
samvirtual - 24 May 2011 01:20 AM

Will this work with the CI 2.x.x

with ci 2.x.x it was tested so the answer is yes.

 
Posted: 25 May 2011 02:52 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Joined: 2011-03-11
9 posts

Will i need to make any mods for 2.x.x
Thanks for you reply

 
Posted: 30 May 2011 04:35 PM   [ Ignore ]   [ # 9 ]   [ Rating: 0 ]
Joined: 2011-03-11
9 posts

Nice work, but several compatibility issues with 2.x. and several missing dependencies

 
Posted: 08 October 2012 04:11 AM   [ Ignore ]   [ # 10 ]   [ Rating: 0 ]
Avatar
Joined: 2012-02-24
53 posts
alexaaaaaaaaaa - 17 April 2011 07:04 AM

https://rapidshare.com/files/457814075/forums.zip

File has been deleted. :(
Would you be kind to post it again? Thanks!