User Notes/Warnings 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
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: User Notes/Warnings in Viewtopic

Post by RMcGirr83 » Tue Apr 13, 2010 5:41 pm

There is a php file in the contrib directory (update_note_count.php) that when uploaded into the root of your forum and browsed to will reset all users note count per the database entries..
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Phil7789
Registered User
Posts: 32
Joined: Mon Mar 22, 2010 3:16 pm
Location: Germany

Re: User Notes/Warnings in Viewtopic

Post by Phil7789 » Tue Apr 13, 2010 8:09 pm

Thanks for your help, i hope i did not annoy you to much :(

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: User Notes/Warnings in Viewtopic

Post by RMcGirr83 » Tue Apr 13, 2010 8:16 pm

Not at all, you're relatively new on these forums so I'll give you some time before you start crawling under my skin. :)
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Phil7789
Registered User
Posts: 32
Joined: Mon Mar 22, 2010 3:16 pm
Location: Germany

Re: User Notes/Warnings in Viewtopic

Post by Phil7789 » Mon Apr 26, 2010 2:23 pm

Hey,
i still have one slight problem or configuration issue with the mod, sry.

After updating the notes with the included php file the warnings are counted again. Is der any possiblity to avoid it? I tried several things to get it work but everytime i changed something within the update file the notes have not been shown any longer.

I tried to change this part of the code, i hope it was the right:

Code: Select all

$sql = 'UPDATE ' . USERS_TABLE . '
        SET user_notes = user_notes + 1
            WHERE user_id =' . $id;
Is there any possiblity to substract the warning notes? So to say substract the amount of warnings a user has (because the warnings in the notes should be the same as the warnings themselves)?

Regards,
Phil

maxhel
Registered User
Posts: 79
Joined: Sat Apr 14, 2007 8:55 pm

Re: User Notes/Warnings in Viewtopic

Post by maxhel » Sat May 01, 2010 9:25 pm

not work in automod rc4

phpbb 3.0.7

Code: Select all

 styles/subsilver2/template/viewtopic_body.html
Find

<span class="postdetails">

Add After

   					<!-- IF postrow.POSTER_WARNINGS --><br /><b>{L_WARNINGS}:</b> {postrow.POSTER_WARNINGS}<!-- ENDIF -->
					<!-- IF postrow.U_NOTES --><br /><a href="{postrow.U_NOTES}" title="{L_VIEW_NOTES}"> {postrow.POSTER_NOTES}</a><!-- ENDIF -->

The Find specified by the MOD could not be found

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: User Notes/Warnings in Viewtopic

Post by RMcGirr83 » Sat May 01, 2010 9:42 pm

That find is on line 190 of a default subsilver2 viewtopic_body.html file. LInes 190 - 192

Code: Select all

				<span class="postdetails">
					<!-- IF postrow.POSTER_JOINED --><br /><b>{L_JOINED}:</b> {postrow.POSTER_JOINED}<!-- ENDIF -->
					<!-- IF postrow.POSTER_POSTS != '' --><br /><b>{L_POSTS}:</b> {postrow.POSTER_POSTS}<!-- ENDIF -->
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Phil7789
Registered User
Posts: 32
Joined: Mon Mar 22, 2010 3:16 pm
Location: Germany

Re: User Notes/Warnings in Viewtopic

Post by Phil7789 » Wed May 05, 2010 1:12 pm

Phil7789 wrote:Hey,
i still have one slight problem or configuration issue with the mod, sry.

After updating the notes with the included php file the warnings are counted again. Is der any possiblity to avoid it? I tried several things to get it work but everytime i changed something within the update file the notes have not been shown any longer.

I tried to change this part of the code, i hope it was the right:

Code: Select all

$sql = 'UPDATE ' . USERS_TABLE . '
        SET user_notes = user_notes + 1
            WHERE user_id =' . $id;
Is there any possiblity to substract the warning notes? So to say substract the amount of warnings a user has (because the warnings in the notes should be the same as the warnings themselves)?

Regards,
Phil
Has anybody a solution for this problem?

Thanks in advance,
Phil

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5413
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: User Notes/Warnings in Viewtopic

Post by Marc » Tue Mar 12, 2013 9:30 am

MOD Updated to version 1.0.3
See first post for Download Link

Locked

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