Troll MOD

Post your MODs, receive and provide feedback!
Topics in this forum are not for MOD support, they are for giving the author feedback.
Forum rules
The topics in this forum are not for general MOD support, they are for giving the MOD author some feedback, ideas and bug reports.
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Troll MOD

Post by igorw »

harmlessgoat22 wrote:Contrary to this anti sexist crap that is going on, the masculine (he, him, etc.) was the accepted gender neutral form. But now, it is more proper to refer to someone as plural, which makes absolutely no sense.

See, you say this because you're male. But how would you feel if the "accepted gender neutral form" were she, her and so on? I personally would possibly feel slightly insulted. ;)
harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Troll MOD

Post by harmlessgoat22 »

Well, when used as the neutral form, it does not mean male, it means either. Just because they use the same tense doesn't mean that they are implying that male is dominant. If the feminine was the accepted form, and had been so for hundreds of years, I would be fine with that. I would not be fine, however, if females changed it to being feminine right now, based on them being better, which is not what the neutral being male implies.

I don't know if I'm making any sense, but hopefully I am...
Image
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Troll MOD

Post by igorw »

I understand that society has made this over time, but you are still using male words for subjects (or objects) who may be female. :P

Anyway, let's get back on topic. If anybody wants to fight more gender war with me, send me PMs. :D
Bombadil
New member
New member
Posts: 3
Joined: 10 Jun 2008, 02:02

Re: Troll MOD

Post by Bombadil »

Hi. I'm new in this forum (and in phpbb world, acctually). I've tried to install this awsome mod on my test board, but I get an error, when trying to access the Troll module in the ACP.

Code: Select all

SQL ERROR [ mysql4 ]

Table 'XXXXXXX_phpb2.TROLLS_TABLE' doesn't exist [1146]

SQL

SELECT t.troll_id, u.user_id, u.username, u.username_clean FROM TROLLS_TABLE t, phpbb_users u WHERE u.user_id = t.user_id ORDER BY u.username_clean ASC

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/acp/acp_troll.php
LINE: 101
CALL: dbal_mysql->sql_query()

FILE: includes/functions_module.php
LINE: 471
CALL: acp_troll->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()


Thank you very much in advance for your help and, of course, for this great mod.
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Troll MOD

Post by igorw »

Hi,

you need to go to /install/index.php first to install the MOD. :)
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Troll MOD

Post by Obsidian »

evil, the random choice of the errors to use is handled internally, correct?

Also, to add a new problem for the troll, all that has to happen is the creation of another PHP file within includes/troll/ that matches the pattern of the rest, correct?

I think I've almost got my Troll-CSS Addon done...but I want to make sure it'll work. :)
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Troll MOD

Post by igorw »

I don't really know what you mean with internally. But yes, adding a new file into the includes/troll/ folder is all you need to create a new troll action. :)
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Troll MOD

Post by Obsidian »

All that I mean by internally is if I don't have to muck with something in order to have the new action work. :)
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Troll MOD

Post by igorw »

Just make sure you purge the cache. :)
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Troll MOD

Post by Obsidian »

Okay, here's my Addon for it, then.

Troll MOD Addon: CSS-be-gone!
Adds a stylesheet load failure feature for trolled users

Download:
Troll_MOD_addon_CSS.zip
(29.31 KiB) Downloaded 263 times


Version: 0.1.0

Muaaahahahah! :rootbeer:
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Troll MOD

Post by igorw »

Very nice!

You could use before-/after-adds for the edits to not replace such a large block. Also, for a single template var, you can use $template->assign_var().

I know, i always complain about everything, sorry. Nice work :)
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Troll MOD

Post by Obsidian »

eviL<3 wrote:Very nice!

You could use before-/after-adds for the edits to not replace such a large block. Also, for a single template var, you can use $template->assign_var().

I know, i always complain about everything, sorry. Nice work :)


I used assign_vars because I don't know the syntax for assign_var. :lol: Oh well.

And thanks. :)
BetaDevil
Supporter
Supporter
Posts: 27
Joined: 01 Sep 2007, 12:27
Real name: Tim

Re: Troll MOD

Post by BetaDevil »

Code: Select all

$template->assign_var('S_VARIABLE',&nbsp;true);&nbsp;Â
:ugeek:
momentum
New member
New member
Posts: 32
Joined: 28 Feb 2008, 04:54
Real name: Craig
Location: Melbourne, Australia
Contact:

Re: Troll MOD

Post by momentum »

Can I suggest a new module for this MOD? How about sending the Troll to the "Board is offline" page in one out of ten loading attempts?

Craig.

Edit: Forget I typed that. I've just re-read the topic over at phpbb.com :oops:
momentum
New member
New member
Posts: 32
Joined: 28 Feb 2008, 04:54
Real name: Craig
Location: Melbourne, Australia
Contact:

Re: Troll MOD

Post by momentum »

Hi Igor,

I've only just gotten around to playing with this MOD and on browsing to the install/index.php file I get the same error Bombadil posted above, but without the backtrace notes.
SQL ERROR [ mysqli ]

Table 'forum.phpbb_trolls' doesn't exist [1146]

An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.

This is on a local copy of my board running under xampp. (php 5.2.5) As there's no SQL query included in the install I expect the table is meant to be created by your installation script, but somehow it seems to have failed. I'm also not proficient enough in php to be able to decipher the query from the code. :?

Edit: Found the install/schemas directory and created the table manually. My problem now is that I can't figure how to add a user to the troll ist.

Craig.
Post Reply