[MOD] Admin/Mod Prank

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[MOD] Admin/Mod Prank

Post by Stoker »

Admin/Mod Prank
Written by Stoker

The Admin and Moderator Prank panels used on this site.

Lets start with the Admin part.
Open styles/prosilver/template/overall_footer.html
Find:

Code: Select all

<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ELSE --><br /><strong><a href="{ROOT_PATH}admin/index.php">{L_ACP}</a></strong><!-- ENDIF -->
Then the Moderator Panel.
Open styles/prosilver/template/index_body.html
Find:

Code: Select all

<<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF -->
Replace with:

Code: Select all

<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME} <br />[&nbsp;<a href="{ROOT_PATH}modcp/index.php">{L_MCP}</a>&nbsp;]<!-- ENDIF --></p>
<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{ROOT_PATH}modcp/index.php">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Open styles/prosilver/template/viewforum_body.html
Find:

Code: Select all

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSE --><p>[&nbsp;<a href="{ROOT_PATH}modcp/index.php">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Open styles/prosilver/template/viewtopic_body.html
Find:

Code: Select all

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSE --><p>[&nbsp;<a href="{ROOT_PATH}modcp/index.php">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Admin_Mod_Prank.zip
Save files, upload and refresh template.
You do not have the required permissions to view the files attached to this post.

[MOD] Admin/Mod Prank

Post by Terr0r »

Stoker I do not know what to say to you but you're so wonderful Image Thanks for this one

[MOD] Admin/Mod Prank

Post by kevinviet »

Thanks for share Stoker, this will be fun :D
I have one question, is it possible to hide the ACP frank for guess? I mean it's only show to register user so it look more real. :D
Last edited by kevinviet on 28 Aug 2011, 01:29, edited 2 times in total.

[MOD] Admin/Mod Prank

Post by Vox Populi »

Thanks Stoker. I had JUST begun working on this today (tearing it apart in the Pre MOD). You saved me a few hours.

Thanks again for sharing.

[MOD] Admin/Mod Prank

Post by Stoker »

Terr0r wrote:Stoker I do not know what to say to you but you're so wonderful Image Thanks for this one
Vox Populi wrote:Thanks Stoker. I had JUST begun working on this today (tearing it apart in the Pre MOD). You saved me a few hours.

Thanks again for sharing.
You're welcome ;)
kevinviet wrote:I have one question, is it possible to hide the ACP frank for guess? I mean it's only show to register user so it look more real. :D
You can use this in overall_footer.html instead of the code posted in first post:

Code: Select all

<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ELSEIF S_USER_LOGGED_IN --><br /><strong><a href="{ROOT_PATH}admin/index.php">{L_ACP}</a></strong><!-- ENDIF -->

[MOD] Admin/Mod Prank

Post by kevinviet »

Thanks again Stoker :thumb:

[MOD] Admin/Mod Prank

Post by Vox Populi »

Hi Stoker, I need a bit of support if you are up to it. If not, it's ok. I can figure it out if I stick with it but it's much easier for a person who codes quite a bit instead of me poking at it. I can debug but the more I look at this part of the code, the more confused I get. I need more coffee... :)

For the MCP I have an issue as I use Rich's Moderator Needed and there is code in-between that I need, so your MCP Prank needs to be scattered in there some how.

Here is what my find looks like for the MCP in the index_body.html:

Code: Select all

<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a> <!-- IF TOTAL_MODERATOR_REPORTS --> &bull; <a href="{U_MODERATOR_REPORTS}">{TOTAL_MODERATOR_REPORTS}</a><!-- ENDIF --><!-- IF TOTAL_MODERATOR_POSTS --> &bull; <a href="{U_MODERATOR_APPROVE_POSTS}">{TOTAL_MODERATOR_POSTS}</a><!-- ENDIF --><!-- IF TOTAL_MODERATOR_TOPICS --> &bull; <a href="{U_MODERATOR_APPROVE_TOPICS}">{TOTAL_MODERATOR_TOPICS}</a><!-- ENDIF --><!-- IF TOTAL_MODERATOR_PMS --> &bull; <a href="{U_MODERATOR_PMS}">{TOTAL_MODERATOR_PMS}</a><!-- ENDIF -->&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF -->
This is your replace code (which I can't do totally or I'll lose part of another MOD. So I "think" your code needs to be placed here and there in snippets to keep my other MOD intact.

Code: Select all

    <p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME} <br />[&nbsp;<a href="{ROOT_PATH}modcp/index.php">{L_MCP}</a>&nbsp;]<!-- ENDIF --></p>
    <!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{ROOT_PATH}modcp/index.php">{L_MCP}</a>&nbsp;]</p><!-- ENDIF --></p><!-- ENDIF -->
I feel like a NUB here. Again, if you can help please do so. If not, I DO understand and won't be upset.

Thanks!!

Ed

[MOD] Admin/Mod Prank

Post by Vox Populi »

Also, not of great importance, there is a typo (grammatical error).

Open prank_body.html
Find:

Code: Select all

where
Replace with:

Code: Select all

were
I know, it's a small spelling error... just wanted to pass it on.

[MOD] Admin/Mod Prank

Post by Stoker »

Try this:

Code: Select all

<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME} <br />[&nbsp;<a href="{ROOT_PATH}modcp/index.php">{L_MCP}</a>&nbsp;]<!-- ENDIF --></p>
<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a> <!-- IF TOTAL_MODERATOR_REPORTS --> &bull; <a href="{U_MODERATOR_REPORTS}">{TOTAL_MODERATOR_REPORTS}</a><!-- ENDIF --><!-- IF TOTAL_MODERATOR_POSTS --> &bull; <a href="{U_MODERATOR_APPROVE_POSTS}">{TOTAL_MODERATOR_POSTS}</a><!-- ENDIF --><!-- IF TOTAL_MODERATOR_TOPICS --> &bull; <a href="{U_MODERATOR_APPROVE_TOPICS}">{TOTAL_MODERATOR_TOPICS}</a><!-- ENDIF --><!-- IF TOTAL_MODERATOR_PMS --> &bull; <a href="{U_MODERATOR_PMS}">{TOTAL_MODERATOR_PMS}</a><!-- ENDIF -->&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{ROOT_PATH}modcp/index.php">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Thanks for the spellcheck. I will fix it in the download

[MOD] Admin/Mod Prank

Post by Vox Populi »

Dang, I was on the right track!!! I had the first few lines correct but the rest confused me for some reason.

Thanks so much for your unselfish assistance to an idiot.

As soon as a few bucks come my way in PayPal, I'll pass another 5-10 spot to you. It'll take time as I don't get that many donations after August. It's pretty dead until some time in the snow season and New Year.

Gracias once again Stoker.

Ed

(PS) It worked first time through.