Shaazaam
Forum Replies Created
-
Forum: Hacks
In reply to: Changing Admin Page ContentI solved my issue.
Forum: Plugins
In reply to: Custom development ideas – Please advice on my optionsWP is nice if you want a simple out of the box solution. Something of the magnitude you want though, yeah, you’re best bet is taking the time and setting up something with Laravel or even Zend.
Forum: Plugins
In reply to: Custom development ideas – Please advice on my optionsYou could certainly do it, but I can tell you right now it will take a lot of time and a lot of modifications.
I have found that if you want to drastically change WP functionality, your best bet is to write a plugin. In a plugin you can make changes to core and theme functions all the while avoiding conflicts if you do any updates.
Essentially what you are wanting to do is make a WordPress site for each person that comes to your site…not impossible, but it doesn’t seem very practical. If you have access to a server and can virtualize some web servers from it, you could do basically the same thing.
Forum: Fixing WordPress
In reply to: Inserting Tables with FormattingI think you’re best bet would be to hard code a table.
If you aren’t familiar with that, check out this link: https://www.w3schools.com/html/html_tables.asp
Or finding a plugin (such as the one WPyogi suggested) could work just as well.
Forum: Fixing WordPress
In reply to: Return Instead of EchoI edited my plugin to just dip in and out of PHP without echos. I also found just by doing this:
ob_start(); //WHATEVER DISPLAYED CONTENT HERE return ob_get_clean();
Will solve the whole formatting shortcode output above any other content issue. Though I suppose the above solution you provided RossMitchell would would just as well.
Thanks you both for the help.
Forum: Fixing WordPress
In reply to: Return Instead of Echo<div class='deerPedigree'><!-- This is the displayed content--> <table width='100%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='99%' align='center'> <table width='100%' border='0' cellspacing='0' cellpadding='5'> <tr> <td width='50%' align='center'> <a>'> <img src='<? echo plugins_url('images/large_buttons/buck_pedigrees_off.png', __FILE__); ?>' alt='Buck Pedigrees' name='buckpedigrees' width='350' height='80' border='0' id='buckpedigrees' /> </a> </td> <td width='50%' align='center'> <a>'> <img src='<? echo plugins_url('images/large_buttons/doe_pedigrees_off.png', __FILE__); ?>' alt='Doe Pedigrees' name='doepedigrees' width='350' height='80' border='0' id='doepedigrees' /> </a> </td> </tr> </table> </td> </tr> <tr> <td align='right'> <table border='0' cellspacing='0' cellpadding='0' class='deerName'> <tr> <td align='left' class='pedigreegreyboxbax'> <div class='greyBoxEnd'> <img src='<? echo plugins_url('images/grey_nav_left.png', __FILE__); ?>' width='18' height='34' /> <!--end .geyBoxEnd'--></div> <div class='greyBoxMain'> <h1>Pedigree Sheet | <span class='pedigreename'><? echo $oDeer->DeerName; ?></span></h1> <!--end .greyBoxMain--></div> </td> </tr> </table> </td> </tr> <tr> <td valign='top' colspan='2'> <? if (file_exists($pedigree_directory . 'pedigrees/photos/' . $oDeer->Deer_ID . '-1.png')) { $deerImg = (plugins_url('pedigrees/photos/', __FILE__) . $oDeer->Deer_ID . '-1.png'); echo "<img class='deerListThumb' src='". $deerImg ."' width='300' height='300' alt='". $oDeer->DeerName ."' title='". $oDeer->DeerName ."'/>"; } else { echo "<img class='deerListThumb' src=". plugins_url('pedigrees/photos/placeholder.png', __FILE__) ." width='300' height='300' alt='". $oDeer->DeerName ."' title'". $oDeer->DeerName ."'/>"; } echo "<div style='float: right;'>"; echo $oDeer->getAncestorTreeHTML(); echo "</div>"; echo "<div style='clear: both;'></div>"; echo "<ul class='videos'>"; if (file_exists($pedigree_directory . 'pedigrees/videos/' . $oDeer->Deer_ID . '-1.mov')) { echo " <li>"; echo "<a>Deer_ID ."&n=1'>View Video</a>"; echo "</li> "; } if (file_exists($pedigree_directory . 'pedigrees/videos/' . $oDeer->Deer_ID . '-2.mov')) { echo " <li>"; echo "<a>Deer_ID ."&n=2'>View Video</a>"; echo "</li> "; } echo ""; if (count($aDescriptionItems)) { echo "<ul class='notes'>"; foreach($aDescriptionItems as $sListItem) { echo " <li>"; echo $sListItem; echo "</li> "; } echo ""; } ?> </td> </tr> </table> </div> <? //End of displayed content }//End of shortcode
There are a few things above that, but it’s just some queries and stuff, nothing that will be displayed. I suppose a better practice would probably be not using echo at all in any of my conditional statements.
Forum: Fixing WordPress
In reply to: Migrating existing PHPOk I will try that as an option. I think I will try to track down whomever created the original site. There is a possibility I don’t need all of it. Perhaps if that is the case whatever we do need I can strip down into a plugin.