[How To] Add Warnings Count in a Member's posts

How-to's, little tricks, tutorials, code examples (snippets) and read-me's.

Re: [How To] Add Warnings Count in a Member's posts

Postby daemonic » 17 May 2007, 15:00

is there a suggested mod template for this for prosilver?
http://www.gt4oc.net/ <-- phpBB2 Old Site
http://dev.gt4oc.net/ <-- phpBB3 Test Site
daemonic
Crewman
Crewman
 
Posts: 6
Joined: 20 Jun 2006, 05:48




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [How To] Add Warnings Count in a Member's posts

Postby Sniper_E » 17 May 2007, 16:18

Well, I don't think we ever put this in the prosilver viewtopic_body page.... but it should work the same way.

Of course, if you were going to spruce it up a little by using a button in prosilver then we would have to create one.

Let me look real quick and see what it will take. :brb:
Code: Select all
// Open styles/prosilver/template/viewtopic_body.html

// Find

               <!-- IF postrow.U_INFO --><li class="info-icon"><a href="{postrow.U_INFO}" title="{L_INFORMATION}"><span>{L_INFORMATION}</span></a></li><!-- ENDIF -->

// After Add

            <!-- IF U_MCP and postrow.POSTER_WARNINGS neq 0 --><li class="warn-icon"><a class="warn" href="{postrow.U_WARNINGS}" title="{L_WARNINGS} {postrow.POSTER_WARNINGS}"><span>{L_WARNINGS} {postrow.POSTER_WARNINGS}</span></a></li><!-- ENDIF -->

// Close and Save

I'll make a better image for this later to go in prosilver. Then we can just change out the class="warn-icon" with class="warning-icon"
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Add Warnings Count in a Member's posts

Postby daemonic » 17 May 2007, 16:22

cheers, ill give it a go in the morning

and i await the image eagerly :D
http://www.gt4oc.net/ <-- phpBB2 Old Site
http://dev.gt4oc.net/ <-- phpBB3 Test Site
daemonic
Crewman
Crewman
 
Posts: 6
Joined: 20 Jun 2006, 05:48

Re: [How To] Add Warnings Count in a Member's posts

Postby daemonic » 18 May 2007, 07:39

just to let you know the code works a treat :)

just gotta knock up a suitable image now :D
http://www.gt4oc.net/ <-- phpBB2 Old Site
http://dev.gt4oc.net/ <-- phpBB3 Test Site
daemonic
Crewman
Crewman
 
Posts: 6
Joined: 20 Jun 2006, 05:48

Re: [How To] Add Warnings Count in a Member's posts

Postby Sniper_E » 19 May 2007, 15:26

OK, I have the image ready....

View this topic for prosilver: viewtopic.php?p=29420#p29420
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Add Warnings Count in a Member's posts

Postby stitch626 » 02 Jun 2007, 22:36

Just trying this out on my RC1 board and for some strange reason here is what shows up inside the image

Code: Select all
Warnings ? 1


There is a box instead of a = sign. Can't seem to figure this one out. Everything else seems to be working correctly.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: [How To] Add Warnings Count in a Member's posts

Postby Sniper_E » 03 Jun 2007, 20:20

In the viewtopic_body.html file just change the warnings count link to....
Code: Select all
<span>{L_WARNINGS} = {postrow.POSTER_WARNINGS}</span>
or to....
Code: Select all
<span>{L_WARNINGS} > {postrow.POSTER_WARNINGS}</span>
or to whatever you want, replace that symbol that's in there now.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Add Warnings Count in a Member's posts

Postby stitch626 » 03 Jun 2007, 20:28

OMG! Thanks Sniper. I can't believe I missed that. I was looking at the code after 1:00am and was so tired. Yea, I know, stop making excuses. Seriously though I should have caught that.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: [How To] Add Warnings Count in a Member's posts

Postby belial » 05 Sep 2007, 03:53

anyone got screenshot ?
it'll be much apreciated i'm sure.
belial
Cadet II
Cadet II
 
Posts: 28
Joined: 21 Aug 2007, 05:00
Gender: Male

Re: [How To] Add Warnings Count in a Member's posts

Postby Skyler » 13 Oct 2007, 11:49

sorry for the bump.
is there a way to add warnings count to prosilver instead of the user rank so everybody can see it?
Skyler
Cadet II
Cadet II
 
Posts: 25
Joined: 14 Jan 2007, 10:57
Gender: Male

PreviousNext

Return to Tutorials and How-Tos

Who is online

Users browsing this forum: Sogou [Bot] and 10 guests