user warnings / ban info in viewtopic

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: user warnings / ban info in viewtopic

Post by ChriZathens »

Guys, this mod is not an alternate for the existing warning/ban system... :)
It simply displays this info in viewtopic and memberlist view. A mod that would allow you to choose how to handle warnings seperately in each occasion is a totally different mod. ;)
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
iCode86
Registered User
Posts: 16
Joined: Wed Jan 07, 2009 9:44 pm

Re: user warnings / ban info in viewtopic

Post by iCode86 »

Just installed this mod and now i get the following when i click on a members profile

Code: Select all

Parse error: syntax error, unexpected $end in /public_html/includes/template.php(187) : eval()'d code on line 147
Not very good with this php lark so im unsure what this means. Any ideas?
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: user warnings / ban info in viewtopic

Post by A_O_C »

can you post your memberlist.php
iCode86
Registered User
Posts: 16
Joined: Wed Jan 07, 2009 9:44 pm

Re: user warnings / ban info in viewtopic

Post by iCode86 »

Iv deleted for now as users were complaining lol. Il try reinstalling it tomorrow and if i get the same issue i will post back here

Thanks
ZveroBoy
Registered User
Posts: 8
Joined: Thu Feb 26, 2009 8:25 pm
Location: Moscow
Contact:

Re: user warnings / ban info in viewtopic

Post by ZveroBoy »

Tried to install this MOD 2 times. All the time the same problem: when I try to see the message I see a white screen. What I am doing wrong? Maybe you need to activate the MOD in the ACP?
User avatar
RMcGirr83
Former Team Member
Posts: 22011
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: user warnings / ban info in viewtopic

Post by RMcGirr83 »

iCode86 wrote:Just installed this mod and now i get the following when i click on a members profile

Code: Select all

Parse error: syntax error, unexpected $end in /public_html/includes/template.php(187) : eval()'d code on line 147
Not very good with this php lark so im unsure what this means. Any ideas?
Little late to the party...that error has to do with a mismatched <!-- ENDIF -->

ZveroBoy, don't know what editor you are using to modify the files but make sure it is a strict text editor...like notepad++ (not dreamweaver or notepad or some other BOM inserting editor).
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
ZveroBoy
Registered User
Posts: 8
Joined: Thu Feb 26, 2009 8:25 pm
Location: Moscow
Contact:

Re: user warnings / ban info in viewtopic

Post by ZveroBoy »

I used Notepad + +
User avatar
RMcGirr83
Former Team Member
Posts: 22011
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: user warnings / ban info in viewtopic

Post by RMcGirr83 »

Post up your viewtopic.php file using the code bbcode and I'll take a look at it for you if you want.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
ZveroBoy
Registered User
Posts: 8
Joined: Thu Feb 26, 2009 8:25 pm
Location: Moscow
Contact:

Re: user warnings / ban info in viewtopic

Post by ZveroBoy »

But this is a very long file. Do you really want me to put it in a message?

ok, I posted snippets

Code: Select all

}
	$db->sql_freeresult($result);
}
// BEGIN BAN TEST
$sql = 'SELECT b.*, u.user_id
	FROM ' . BANLIST_TABLE . ' b, ' . USERS_TABLE . ' u
	WHERE (b.ban_end >= ' . time() . '
		OR b.ban_end = 0)';

$result = $db->sql_query($sql);
$ban_list = array();
while ($row2 = $db->sql_fetchrow($result))
{
	$ban_list[] = $row2['ban_userid'];
}
$db->sql_freeresult($result);
// END BAN TEST
unset($id_cache);

Code: Select all

'U_PROFILE'		=> $user_cache[$poster_id]['profile'],
		'U_SEARCH'		=> $user_cache[$poster_id]['search'],
		'S_USERID_BANNED' => (in_array($poster_id, $ban_list)) ? true : false,
User avatar
RMcGirr83
Former Team Member
Posts: 22011
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: user warnings / ban info in viewtopic

Post by RMcGirr83 »

The whole enchillada please (save the file as a text file and post a link to it if you prefer).
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
ZveroBoy
Registered User
Posts: 8
Joined: Thu Feb 26, 2009 8:25 pm
Location: Moscow
Contact:

Re: user warnings / ban info in viewtopic

Post by ZveroBoy »

ok, here is a reference to the file

http://ifolder.ru/10761731
User avatar
RMcGirr83
Former Team Member
Posts: 22011
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: user warnings / ban info in viewtopic

Post by RMcGirr83 »

That looks fine, though my Russian is the pits. Suggestions would be to double check the edits to the language file (post up common.php if you like) and the edits to viewtopic_body.html.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
ZveroBoy
Registered User
Posts: 8
Joined: Thu Feb 26, 2009 8:25 pm
Location: Moscow
Contact:

Re: user warnings / ban info in viewtopic

Post by ZveroBoy »

viewtopic_body.html

Code: Select all

<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
		<!-- IF postrow.S_USERID_BANNED --><dd><strong>{L_CURRENTLY_BANNED}</strong></dd><!-- ELSEIF postrow.POSTER_WARNINGS --><dd><strong>{L_WARNINGS}:</strong> {postrow.POSTER_WARNINGS}</dd><!-- ENDIF -->
common.php en

Code: Select all

'COOKIES_DELETED'		=> 'All board cookies successfully deleted.',
'CURRENT_TIME'			=> 'It is currently %s',
'CURRENTLY_BANNED'		=> 'CURRENTLY BANNED',
common.php ru

Code: Select all

'CURRENT_TIME'			=> 'Текущее время: %s',
'CURRENTLY_BANNED'		=> 'Забанен',
User avatar
RMcGirr83
Former Team Member
Posts: 22011
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: user warnings / ban info in viewtopic

Post by RMcGirr83 »

:?:

You have totally stumped me which doesn't happen often, but it does happen every now and then. What is the language that is set for the user that gets the white page? (/me hopes you don't say ru).
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: user warnings / ban info in viewtopic

Post by A_O_C »

Please post ALL files fully (inside code tags).
Locked

Return to “[3.0.x] MOD Database Releases”