PDA

View Full Version : A basic Integrated Forum


Bloodrun
05-15-2009, 04:14 PM
Lol well, just like the title says. It is a forum. Made specifically for this script.

Forum Add-On Includes:

Forum Index
Thread Index
Ability to create threads/forums
Ability to post/read them
Have to be logged in to view the forum/post


To get the latest updates of this script, you will have to become a Premium Member. To find out how to become a Premium member visit this thread (http://www.rusnakweb.com/forum/showthread.php?tid=867).

Forum Add-On Will Include:

A better layout style ability.
A better post preview.
The ability to earn points per thread/reply.
Anything else I can think of..


Preview:
(The 'Create New Forum' can only be seen by those who can view the ACP.)
http://i40.tinypic.com/2gtot4j.jpg
http://i39.tinypic.com/2pry611.jpg
http://i42.tinypic.com/ctaup.jpg
http://i44.tinypic.com/29o0dop.jpg

If you want to see what the Updated version (So far, which is V 1.5) looks like, here it is: Remember, you have to be a Premium Member to get this.
Preview:
(The 'Create New Forum' can only be seen by those who can view the ACP.)
http://i39.tinypic.com/mk9jx5.jpg
http://i39.tinypic.com/2q07gnq.jpg
http://i41.tinypic.com/zldow1.jpg
http://i40.tinypic.com/2n9b34g.jpg
http://i43.tinypic.com/2d0cdhz.jpg
http://i41.tinypic.com/zl5kif.jpg

First off, the hardest part. The database, you will need to add the following three tables:


CREATE TABLE IF NOT EXISTS `forum_answer` (
`question_id` int(4) NOT NULL default '0',
`a_id` int(4) NOT NULL default '0',
`fid` int(4) NOT NULL default '0',
`a_name` varchar(65) NOT NULL default '',
`a_email` varchar(65) NOT NULL default '',
`a_answer` longtext NOT NULL,
`a_datetime` varchar(25) NOT NULL default '',
KEY `a_id` (`a_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;



CREATE TABLE IF NOT EXISTS `forum_question` (
`fid` int(11) NOT NULL default '0',
`id` int(11) NOT NULL auto_increment,
`topic` varchar(255) NOT NULL default '',
`detail` longtext NOT NULL,
`name` varchar(65) NOT NULL default '',
`email` varchar(65) NOT NULL default '',
`datetime` varchar(25) NOT NULL default '',
`view` int(4) NOT NULL default '0',
`reply` int(4) NOT NULL default '0',
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;



CREATE TABLE IF NOT EXISTS `forum` (
`fid` int(11) NOT NULL auto_increment,
`topic` varchar(255) NOT NULL default '',
`threads` int(11) NOT NULL default '0',
`posts` int(11) NOT NULL default '0',
PRIMARY KEY (`fid`),
UNIQUE KEY `topic` (`topic`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;


Now, once you have that, all you have to do is upload the following pages to where ever your adoptables script is held.

If you have any questions about the script, just ask me, I won't bite =D
http://www.4shared.com/file/105622782/b4ae1ea3/Adopts_Forum.html

If you use 00webhost, here is the proper file to use for download:
http://www.rusnakweb.com/forum/showthread.php?tid=975&pid=7493#pid7493

lollicat
05-15-2009, 08:35 PM
I'm trying it right now, I'll tell you how it is once I get it working...

Bloodrun
05-15-2009, 08:40 PM
I'm trying it right now, I'll tell you how it is once I get it working...


Alright, it should be simple.
If it doesn't work, what ever you do, do NOT mess around with the code, without telling me what you did.

lollicat
05-15-2009, 09:05 PM
Okay...A little problem.

What would be the link to the forum, assuming that the site is yoursite.com or something?

Bloodrun
05-15-2009, 09:29 PM
Okay...A little problem.

What would be the link to the forum, assuming that the site is yoursite.com or something?


To the forum?
the Forum Index is
the:
main_forum2.php file

The index of the chosen forum, is the:
main_forum.php file.

Lol I was lazy at the time so i didn't make a big different between the names.

BMR777
05-15-2009, 09:34 PM
Nice Mod! :)

Bloodrun
05-15-2009, 09:38 PM
Nice Mod! :)


Thanks =D

I'm working on the Premium right now. It's coming along pretty good ^_^

lollicat
05-16-2009, 11:21 AM
http://kaiuu.exofire.net/main_forum2.php

:O

densaugeo
05-16-2009, 12:27 PM
This looks fantastic! I'm so going to give it a try :)[hr]
Well, I ran the database queries, and uploaded all the pages. When I go to the main forum page it loads just fine, and I have the 'create new topic' link. But when I click it, I get this:

Warning: file_get_contents(templates/default/template3.html) [function.file-get-contents]: failed to open stream: No such file or directory in /home/densauge/public_html/clickables/create_topic.php on line 130

Bloodrun
05-16-2009, 02:26 PM
http://kaiuu.exofire.net/main_forum2.php

:O



This looks fantastic! I'm so going to give it a try :)[hr]
Well, I ran the database queries, and uploaded all the pages. When I go to the main forum page it loads just fine, and I have the 'create new topic' link. But when I click it, I get this:

Warning: file_get_contents(templates/default/template3.html) [function.file-get-contents]: failed to open stream: No such file or directory in /home/densauge/public_html/clickables/create_topic.php on line 130


You need to make sure each page has the Template you want.
Each one of these has a different one, other then the default one.

densaugeo
05-16-2009, 02:45 PM
I got it. Is there a way to add an edit function? So people can edit posts?

Bloodrun
05-16-2009, 02:47 PM
I got it. Is there a way to add an edit function? So people can edit posts?


I'm actually working on that right now.

Let me tell you... It's not easy :(

Also, as far as this particular script goes. There will be no more updates.

You'll have to become a Premium Member for Updates. Which I think you are ;)

densaugeo
05-16-2009, 03:10 PM
Yep I am ^^ I was just wondering. Would you mind if I tinkered with it a bit too? I'm no programmer XD I just want to experiment.

Bloodrun
05-16-2009, 03:16 PM
Yep I am ^^ I was just wondering. Would you mind if I tinkered with it a bit too? I'm no programmer XD I just want to experiment.


Lol sure.
But if you get anything interesting tell me =P

Oh, and don't come crying to me if you mess everything up. Especially if you tinker with the Query ;) lol

densaugeo
05-16-2009, 03:19 PM
LOL I won't tinker with the query.

I have to ask, is there a max length a post can be? If I try to post anything over 2-3 sentences, it won't show up at all. but if i post something short and maybe only a few words, it shows up fine.

Bloodrun
05-16-2009, 03:36 PM
LOL I won't tinker with the query.

I have to ask, is there a max length a post can be? If I try to post anything over 2-3 sentences, it won't show up at all. but if i post something short and maybe only a few words, it shows up fine.


Oh jeese um..

the reply can only be 65 characters long ( i dont know what I was thinking, that will fixed in the update)
and the thread (first post) is set to long text, so i guess theres not limit to that.. =/

densaugeo
05-16-2009, 03:39 PM
well the first post isn't showing at all when i do long posts =/ maybe it's just me...merf..maybe i should try reinstalling it..

Bloodrun
05-16-2009, 03:42 PM
well the first post isn't showing at all when i do long posts =/ maybe it's just me...merf..maybe i should try reinstalling it..


No, don't lol im sure its the way I had the database set up. Its working fine for me. But Ill make sure everything works in the next update. Which wont be long.

I just figured out how let people update the first post. But now the replies dont want to cooperate lol.

densaugeo
05-16-2009, 03:50 PM
Darn those replies *shakes fist* XP

Wow you're quick. It'd take me forever to figure something like that out, LOL. I spend hours staring at code and reading guides, and I'm still pretty much useless.

Tezna
05-16-2009, 04:04 PM
can you make that file a zip? It wont work for me.

Bloodrun
05-16-2009, 04:09 PM
Darn those replies *shakes fist* XP

Wow you're quick. It'd take me forever to figure something like that out, LOL. I spend hours staring at code and reading guides, and I'm still pretty much useless.


lol I went that route once, but nothing beats hands on practice


can you make that file a zip? It wont work for me.


it is a zip file.. 7zip..

Tezna
05-16-2009, 04:13 PM
Where do I install it, and where is the link? Sorry, I'm not good at understanding coding.

Ahh, 000webhost (which many people use) wont reconize it!

Bloodrun
05-16-2009, 04:20 PM
Where do I install it, and where is the link? Sorry, I'm not good at understanding coding.


You install it where your adoptables script is, (or whereever you want it). And what link?

Tezna
05-16-2009, 04:26 PM
000webhost wont reconize it.

Bloodrun
05-16-2009, 04:41 PM
000webhost wont reconize it.


unzip on your desktop first.

Tezna
05-16-2009, 04:47 PM
I dont have a program like winzip, and im not allowed to download, this isn't my computer.[hr]
and sorry if im slow at responding, im playing runescape and do this

Bloodrun
05-16-2009, 04:52 PM
I dont have a program like winzip, and im not allowed to download, this isn't my computer.[hr]
and sorry if im slow at responding, im playing runescape and do this


Well I can't do anything else for you then. Sorry.

Tezna
05-16-2009, 05:17 PM
KK, thanks thou

Bloodrun
05-17-2009, 05:45 AM
KK, thanks thou


Your welcome. I'm sorry I couldn't be of much assistance to you.

Tezna
05-17-2009, 06:08 PM
Got it, but it wont let me make a forum:
Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/a6598252/public_html/adoptables/create_forum.php on line 117
[hr]
Edit: got it, and for people who use 000webhost, here is the .zip file.

Bloodrun
05-17-2009, 09:51 PM
Got it, but it wont let me make a forum:
Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/a6598252/public_html/adoptables/create_forum.php on line 117
[hr]
Edit: got it, and for people who use 000webhost, here is the .zip file.


So it works now for you?

I thank you for adding the zip file, I will add the reference to it, in the first post.