bulletmenu and others in custom plugins
Posted: Sat Jan 22, 2005 11:24 pm
What would it take to put the bulletmenu and the variations into the custom plugin table and make it editable from the admin? How about the same for new plugins that are single file based?
my problem:
I use the bullet menu for occaision but I needed one with different styles for a right hand nav.
my solution
I made a duplicate bulletmenu.php file called bulletmenu2.php and did a find and replace bulletmenu - bulletmenu2. Now I have the css I need for the second bulletmenu in my css sheet attached to the templtes (I love that!).
I tried to copy and paste the content from the php file into a custom plugin but I kept getting the invalid code error (I have worked with PHP for years but have no aptitude for code... only the most basic of basic troubleshooting and modifications). The pro for this is obvious that you can hop in and comment out a line or make a quick change in much less time that it takes to change the file and ftp it up. What are the cons of putting these into the database?
thanks.
my problem:
I use the bullet menu for occaision but I needed one with different styles for a right hand nav.
my solution
I made a duplicate bulletmenu.php file called bulletmenu2.php and did a find and replace bulletmenu - bulletmenu2. Now I have the css I need for the second bulletmenu in my css sheet attached to the templtes (I love that!).
I tried to copy and paste the content from the php file into a custom plugin but I kept getting the invalid code error (I have worked with PHP for years but have no aptitude for code... only the most basic of basic troubleshooting and modifications). The pro for this is obvious that you can hop in and comment out a line or make a quick change in much less time that it takes to change the file and ftp it up. What are the cons of putting these into the database?
thanks.