[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Output needs to be narrower and not so tall :)

Asked by rowby in PHP Scripting Language

Tags: css, php, wp_quotes_quote

Hello, please look at this page, work in progress:

http://rowby.com/wordpress/

Note the graphic in the upper right that says Rowby Sez.

The text on top of it is generated by a php script interacting with a mysql database.  The php script is a plug-in for a popular open source blog called Word press.

I need a modification to the php output so that the text is slightly narrower than the graphic.  I also need to position the text lower.   I tried doing this within css but when I made the margins smaller it cropped the graphic.

Here is the plug-in:  Any thoughts -- to either modify the php or get the css to display the quotes narrower and positionable from the top and bottom?????

<?php
/*
Plugin Name: Random Quotes
Plugin URI: http://www.blogmotron.com/
Description: This plugin allows you to embed random quotes into your pages. It also has a spiffy management tool in the administrative console.
Author: Dustin Barnes
Author URI: http://www.blogmotron.com
Version: 1.0
*/

// Quotes table. I suppose you could change this.
define('WP_QUOTES_TABLE', $table_prefix . 'quotes');

/*
 * Puts the Quotes manager thingie under the "manage" tab.
 */
function wp_quotes_admin_menu($content)
{
      global $submenu;
      $submenu['edit.php'][40] = array(__('Quotes'), 8, 'edit-quotes.php');
}
add_action('admin_menu', 'wp_quotes_admin_menu');


/*
 * This is the main function you call to embed a quote
 */
function wp_quotes_random()
{
      global $wpdb;
      
      $sql = "select * from " . WP_QUOTES_TABLE . " where visible='yes'";
      
      $result = $wpdb->get_results($sql);
      
      if ( !empty($result) )
            wp_quotes_spew($result[mt_rand(0, count($result)-1)]);
}


/*
 * You can use this to print a specific quote
 */
function wp_quotes($id)
{
      global $wpdb;
      
      $sql = "select * from " . WP_QUOTES_TABLE . " where quoteID='{$id}'";
      
      $result = $wpdb->get_results($sql);
      
      if ( !empty($result) )
            wp_quotes_spew($result[0]);
}

/*
 * Actually spews a quote
 */
function wp_quotes_spew($quote)
{
      ?>
      <div id="wp_quotes">
            <div class="wp_quotes_quote"><?php echo nl2br($quote->quote); ?></div>
            <?php
            if ( !empty($quote->author) )
            {
                  ?>
                  <div class="wp_quotes_author"><?php echo $quote->author;?></div>
                  <?php
            }
            ?>
      </div>
      <?php
}

?>
[+][-]08/14/05 10:34 PM, ID: 14672583Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/15/05 02:50 AM, ID: 14673308Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/15/05 02:53 AM, ID: 14673315Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: PHP Scripting Language
Tags: css, php, wp_quotes_quote
Sign Up Now!
Solution Provided By: CrYpTiC_MauleR
Participating Experts: 4
Solution Grade: A
 
[+][-]08/15/05 02:57 AM, ID: 14673327Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/15/05 03:28 AM, ID: 14673416Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08/15/05 03:29 AM, ID: 14673419Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/15/05 05:48 AM, ID: 14673894Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/15/05 05:51 AM, ID: 14673908Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08/15/05 05:52 AM, ID: 14673915Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/15/05 06:08 AM, ID: 14674059Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/15/05 06:10 AM, ID: 14674071Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/15/05 06:32 AM, ID: 14674231Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/11/06 06:45 PM, ID: 15678307Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/11/06 07:29 PM, ID: 15678484Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/11/06 08:08 PM, ID: 15678640Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/11/06 08:25 PM, ID: 15678705Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81