MyBB Community Forums

Full Version: View Own Threads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Plugin Name: View Own Threads
Plugin Author: Jammerx2
Plugin Website: http://www.rvg.evolutionunited.net/coderzplanet
Plugin Version: 1.2
Plugin Mybb Compatibility: 1.4x
Plugin File Edits: 0
Plugin File Uploads: 1
Plugin Description: Users can view threads only created by them in specified forums. Based on plugin by LeX-

Installation

Step 1.

Upload file from the zip

root/inc/plugins/vot.php

Step 2.

Login to your admincp and ACTIVATE the plugin (View Own Threads) in the plugin manager.

Step 3.

Set up the options in the settings.

Updating from version 1.0
Step 1.

Open forumdisplay.php

Step 2.

Find:

$plugins->run_hooks("forumdisplay_thread");

[b]Step 3.[/b]

Under it remove:

if($mybb->settings['vot_status'] != "no")
{
// FIDS
$fids = $mybb->settings['vot_fids'];
$fids = explode(",",$fids);
$gids = $mybb->settings['vot_gids'];
$gids = explode(",",$gids);
if(in_array($thread['fid'], $fids))
{
if(in_array($mybb->user['usergroup'], $gids))
{
}
else
{
$query = $db->simple_select("announcements", "fid", "aid='$aid'");
$announcement = $db->fetch_array($query);

if($mybb->settings['vot_sticky'] != "no")
{
if($thread['uid'] != $mybb->user['uid'] && $thread['sticky'] != 1)
{
continue;
}
}
else
{
if($thread['uid'] != $mybb->user['uid'])
{
continue;
}
}
} 
}
}

The update makes code edits no longer required.
Download:
http://mods.mybboard.net/view/view-own-threads
http://rvg.evolutionunited.net/coderzpla....php?tid=5
good i was looking for something like that thanks
(2009-12-17, 09:55 PM)sercankd Wrote: [ -> ]good i was looking for something like that thanks

A lot of people I know needed this, so I decided to create it.
I still don't know how to make plugins, but couldn't you use a hook instead of a core file edit, as Labrocca said on MyBB Central?

Anyway, good job! Wink
(2009-12-18, 12:46 AM)Joshua Mayer Wrote: [ -> ]I still don't know how to make plugins, but couldn't you use a hook instead of a core file edit, as Labrocca said on MyBB Central?

Anyway, good job! Wink

If you read what I said on mybb central, the continue; returns an error, since there is no loop in that code. It requires a core file edit in order to work efficiently. And thanks =D
What is the license on Lex- plugin?
There is none, as all he did was post it on a thread in code form.
(2009-12-18, 11:54 AM)Jammerx2 Wrote: [ -> ]There is none, as all he did was post it on a thread in code form.

where do you go to view your own threads after this mod is installed?
It is made so you can only view your own thread in certain forums, good for when someone is requesting help, applying for a moderator, etc. You set it up in the settings for it.
Pages: 1 2 3 4 5