I am assuming this is happening because all of these plugins are connected to this line of code “<?php fire_plugin_hook('public_items_show', array('view' => $this, 'item' => $item)); ?>”. Being inexperienced with PHP, I am not sure how to separate the locations for each of the plugins to have them placed where I would like on the page. Is there a way to separate and assign a different placement for each of these plugins when they show up on an item page? Hopefully that makes sense.
You’ll need to account for all the plugins you want to show by calling that function several times, once with each plugin to display in the appropriate place. You’ll also want to remove or comment out the normal fire_plugin_hook call, otherwise you’ll get duplicate output.
Modifying and duplicating it for each plugin (like below), then placing it in the location in the show.php file where I want it to show up on the item page.
The only little issue I’d mention is that the “plugin name” that needs to get passed is the internal name, which generally means no spaces or things like that, so “UniversalViewer” and not “Universal Viewer.” The name you need should be the same as the name of the plugin’s folder underneath “plugins/” on the server.
Thank you for getting back to me. So I have tried as you suggested, and have inserted the lines below into the locations where I would like the to populate on each item page:
When I do that, All that happens is the above lines show up on the item page, not the plugin itself. Any thoughts? Sorry to be such a newbie to all of this.
Awesome! It worked. Thank you! Now the items are showing in the exact order I’d like. Perfect.
Any suggestions on why when I try to view an item from the admin side of my website I get this error?
Parse error : syntax error, unexpected ‘Viewer’ (T_STRING) in /home/melric17/arichhistory.com/admin/themes/default/items/show.php on line 24
It only started doing this after I made the changes suggested above. Is the “Viewer” in the error message referring to the Universal Viewer I am using?
Line 24 (from the section of the show.php file describing “tags”) reads:
<?php echo tag_string('item'); ?>
Hopefully the issue makes sense. Clearly, I have a lot to learn with PHP. Basically, everything. Haha.
haha. I thought I had only edited the file themes/default/items/show.php, not the one in the admin folder, but it looks like I must have. (No more sleep deprived work for me…) I fixed the error and now things are working perfectly!
Thank you so much for all of you’re help! I really appreciate it!