Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2491

Extension Writers Discussion • Re: adding css in php

$
0
0
You could take another rout with this to hide statistics.

In the index_body.html we have this code.

Code:

<!-- EVENT index_body_block_stats_prepend -->{TOTAL_POSTS} &middot;&middot; {TOTAL_TOPICS} &middot;&middot; {TOTAL_USERS} &middot;&middot; {NEWEST_USER}<!-- EVENT index_body_block_stats_append -->
In your extension you could use those two events to hide the original code.
Then place your codes in your event templates.

Your event/index_body_block_stats_prepend.html

Code:

<div style="display: none;">
Your event/index_body_block_stats_append.html

Code:

</div>*Then place all of your template codes for your extension here, with no <div> wrap around it*
Just throwing another option out there that you might want to think about.

Statistics: Posted by Sniper_E — Thu Feb 06, 2025 12:00 pm



Viewing all articles
Browse latest Browse all 2491

Trending Articles