DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • June 18, 2013, 12:10:47 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1] 2 3   Go Down
  Print  
Author Topic: Discussion: Superuser Forum (superuserforum) v3.0.1 Rewritten  (Read 1918 times)
0 Members and 1 Guest are viewing this topic.
Afkamm
Mod God
*****
Offline Offline

Posts: 1578

MarcTheSlayer


View Profile WWW
« on: June 23, 2012, 02:17:47 PM »

Lonny wrote the original called 'forum'. Danilo modified and renamed it 'superuserforum' (unsure of the changes that were made). I've rewritten it using the code as a base and added extra features.

Features:
  • Categories, Yay! Smiley
  • Pagination for threads and topics
  • Category page shows thread counts, post counts, last post details.
  • Thread page shows topic creator, reply count and last post details.
  • You can quote posts and edit your own.
  • MEGAUSERS and player made moderators can lock/unlock threads, delete posts or entire threads and edit posts (even when locked).
  • Default post colour can be changed in preferences.
  • All colour codes can now be used along with some bbcode tags.
  • A few smaller bits and bobs.

I should point out that I've removed the built in smilies (emoticons). This has been moved to another module which I've yet to write. Cheesy

Feedback, comments, bugs, etc. Smiley

Updates:
06/08/2010 - v3.0.1
+ Added hook to 'checkuserpref' and changed user prefs 'user_' to 'check_'. Now a check is performed and only SU players see these on the preferences page.


Download Thread
« Last Edit: September 06, 2012, 02:05:37 PM by Afkamm » Logged

HunterD
Captain of the Guard
***
Offline Offline

Posts: 101



View Profile WWW
« Reply #1 on: June 24, 2012, 05:14:04 AM »

I LIKE IT!  xD  Thanks again!
Logged

The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #2 on: June 25, 2012, 01:37:30 AM »

I installed the module, and immediately got the following error:

Quote
Error: 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=INNODB' at line 15
CREATE TABLE superuserforum (
postid smallint(5)   unsigned NOT NULL auto_increment,
threadid smallint(5)   unsigned NOT NULL default '0' ,
catid smallint(5)   unsigned NOT NULL default '0' ,
postorder smallint(5)   unsigned NOT NULL default '1' ,
locked tinyint(1)      unsigned NOT NULL default '0' ,
postdate datetime NOT NULL default '0000-00-00 00:00:00' ,
editdate datetime NOT NULL default '0000-00-00 00:00:00' ,
userid smallint(5)   unsigned NOT NULL default '0' ,
edituserid smallint(5)   unsigned NOT NULL default '0' ,
title varchar(100) NOT NULL ,
content text ,
editreason varchar(100) NOT NULL ,
PRIMARY KEY (postid),
KEY postid (postid)) Type=INNODB

Error: 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=INNODB' at line 6
CREATE TABLE superuserforumcats (
catid smallint(5)   unsigned NOT NULL auto_increment,
catname varchar(100) NOT NULL ,
description text ,
catorder smallint(5)   unsigned NOT NULL default '1' ,
PRIMARY KEY (catid)) Type=INNODB

Anyone? Undecided
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
Afkamm
Mod God
*****
Offline Offline

Posts: 1578

MarcTheSlayer


View Profile WWW
« Reply #3 on: June 25, 2012, 05:16:36 AM »

If you change both occurrences of Type=INNOB to Engine=INNOB, do you still get the error?
Logged

The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #4 on: June 25, 2012, 05:26:52 AM »

If you change both occurrences of Type=INNOB to Engine=INNOB, do you still get the error?

I can't find where in the code is says Type=INNOB, though.. o.o
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
Anharat
Captain of the Guard
***
Offline Offline

Posts: 192


View Profile WWW
« Reply #5 on: June 25, 2012, 05:29:11 AM »

At the very end of both sql statements. And it should be INNODB.  Wink
Logged

In a World of Compromise, we don't!
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #6 on: June 25, 2012, 06:19:08 AM »

At the very end of both sql statements. And it should be INNODB.  Wink

Can anyone else find it? >.> I did a CTRL+F for 'INNODB', and naught. Zilch. It makes a couple of arrays, then synctable's them.. Nothing there about Innodb. o_o
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
Boris735
Mod God
*****
Offline Offline

Posts: 532


View Profile
« Reply #7 on: June 25, 2012, 06:27:22 AM »

Don't forget the handy search function on this forum.  Searching for INNODB turns up this earlier post of mine pretty quickly.
Logged
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #8 on: June 25, 2012, 06:33:12 AM »

Don't forget the handy search function on this forum.  Searching for INNODB turns up this earlier post of mine pretty quickly.

A lifesaver you be, sir. Works perfectly! Grin My thanks!
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
RaynDarren
Mod God
*****
Offline Offline

Posts: 639


View Profile WWW
« Reply #9 on: August 03, 2012, 12:23:47 AM »

Sorry to bump an old thread, but I've just downloaded this and have run into a problem. The new thred creation doesn't appear to be working. I've attempted to create three threads in two catagories and it keeps telling me that there are no threads and I should make one.
Logged

The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #10 on: August 03, 2012, 12:34:35 AM »

Sorry to bump an old thread, but I've just downloaded this and have run into a problem. The new thred creation doesn't appear to be working. I've attempted to create three threads in two catagories and it keeps telling me that there are no threads and I should make one.

Did the database install correctly?
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
RaynDarren
Mod God
*****
Offline Offline

Posts: 639


View Profile WWW
« Reply #11 on: August 03, 2012, 12:37:07 AM »

It appears to have yes, I'm going to uninstall and reinstall though, just to be sure Smiley

::EDIT::

The uninstall/reinstall worked!

@Afkamm - i LOVE this module! I do believe i'm gonna alter it so it can be for the players too!
« Last Edit: August 03, 2012, 12:42:19 AM by RaynDarren » Logged

Afkamm
Mod God
*****
Offline Offline

Posts: 1578

MarcTheSlayer


View Profile WWW
« Reply #12 on: August 03, 2012, 06:42:53 AM »

This isn't an old thread, just over a month old. Tongue

Easy enough to change. Change the filename and function names (just to make looks nicer. not something you have to do), hook into a village and add a nav link for people to return to the village. Smiley
Logged

Michelina
Militia
**
Offline Offline

Posts: 35


Some days being me just isn't worth it.


View Profile WWW
« Reply #13 on: September 05, 2012, 01:37:45 AM »

Wow!
I love the changes.
*dances*
Logged

Don't you wish you were short like me?

AlteredState RPG


Brandon
Militia
**
Offline Offline

Posts: 56



View Profile
« Reply #14 on: September 05, 2012, 06:09:00 PM »

*points out that it was a month old* O.o
Logged
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
17 Guests, 1 User
Astarael|Jack
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search