BoxOffice plugin
Description
It does only one thing: you put this html comment <!– box office replacement point –> somewhere in a page contents (or in post since 0.2), and boxoffice will replace it with a list of all your articles, organised after their view count with the most viewed on top, with their title, date and rank since 0.2.
Dependency
This plugin requires Popular Posts because it uses its count system and therefore doesn’t store data itself.
Installation
Remember to install Popular Posts before!
Then:
- Upload the boxoffice directory to your /wp-content/plugins/ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Create a new page or post called `BoxOffice`, or whatever you want
- Click on the HTML tab to go in html mode
- Copy the comment <!– box office replacement point –> in the html code, in a standalone paragraph (important)
- Save and publish your new page or post
- Note its ID somewhere
- Go to the new option page BoxOffice
- Enter the ID, change your options, and save
- Go and have a look at your page / post
HTML comment integration
<!-- box office replacement point -->

Upgrade from 0.1 to 0.2
- Download and replace all files with the new version
- Find the ID of your existing boxoffice page
- Go to the new option page “BoxOffice”
- Copy the ID
- Make changes to the options and save
- Copy the css styles into your styles.css and change your colours…
- Go a have a look at your new boxoffice
Template Tag
A template tag boxffice() (since 0.2) may also be used for display anywhere.
if ( function_exists('boxoffice') ) echo boxoffice();
Demo
See a demonstration here.
Translation
French translation provided and .pot file.
CSS
div.boxoffice { } div.boxoffice table { } div.boxoffice table tr { margin:0px; } div.boxoffice table tr.even { background-color: #E4F2FD; } div.boxoffice table tr.odd { } div.boxoffice table tr td { padding:7px 8px 4px 8px; font-size:12px; } div.boxoffice table tr td.rank { text-align:right; width:50px; font-size:small; color:#BBBBBB; } div.boxoffice table tr td.visits { text-align:right; width:80px; } div.boxoffice table tr td.title { text-align:center; } div.boxoffice table tr td.date { text-align:right; width:150px; font-size:12px; }
Log Changes
Version 0.2
- added some css classes to improve the look
- boxoffice can be included in page or post
- the page or post ID must be indicated in the options page
- new options page
- rank displayed
- possibility to turn on/off rank, visits, date
- a template tag
Frequently Asked Questions
Does it show posts only ?
- Yes, no comment, page or anything else…
Can I include it in a post ?
- Yes, with version 0.2
What happens if I don’t have Popular Posts?
- Nothing happens, the page remains blank without error.
Does it work with others similar plugins ?
- Not yet, but if you let me know about a plugin and its get_post_views($post_id) function, I will add it in future versions of boxoffice
Download version 0.2
http://wordpress.org/extend/plugins/boxoffice/
Suggestions de lecture
Spread this post over the world!
How did you like this post?
Please don't go without leaving a mark!
French










Bonjour,
J’ai découvert votre site aujourd’hui. Une mine d’or. Je viens d’installer BoxOffice, après avoir longtemps cherché une solution pour faire apparaître quelque part sur mon site la liste complète des articles. Il ne me reste plus qu’à me pencher sur la question du css pour travailler un peu le design.
Merci et bravo, je repasserai
)
Like or Dislike:
0
0
Ce n’est pas prévu…
Like or Dislike:
0
0
Est-ce que je peux trier par date alors plutôt que par visite?
Like or Dislike:
0
0
Non… peut être un autre plugin le fait !
Like or Dislike:
0
0
reBonjour, autre petite question… Finalement le tou fonctionne, je voulais savoir s’il était possible d’utiliser le plugin pour savoir combien de temps ils passents sur telle ou telle page car mon site est un blog video et je veux savoir si les gens regardent les vidéos au complet ou non…
Merci
Seby
http://www.jesusestlaporte.com
Like or Dislike:
0
0
Il y a un espace avant box et après point
Like or Dislike:
0
0
@Anthony
En fait, je l’ai mis tout seul sur la page, tout en haut, je ne peux pas me tromper. Il doit y avoir autre chose que je fais de pas correct. Peut-etre un petit video ou screenshot d’installation serait requise
Merci
seby
Like or Dislike:
0
0
Oui, il faut que je précise ça dans la doc, il faut mettre le commentaire html dans un paragraphe à lui tout seul, soit quand vous êtes dans le code html de l’article, vous avez une ligne vide au dessus et une en dessous. Aussi, il faut bien laisser les espaces avant box et après point.
Like or Dislike:
0
0
Bonjour, Il doit y avoir quelque chose que je ne fais pas de correct, car cela ne fonctionne pas dutout. J’ai installé popular post et même Post-Plugin Library car popular post le demandais, et meme après avoir my le code dans le html, rien ne se passe.
Merci de votre aide
Seby
Like or Dislike:
0
0