PDA

View Full Version : Reviews / Better posting option?


Laprodo
11-27-2007, 01:53 PM
Hi!

Like http://www.pixelpost.org/extend/addons/photo-mosaic/ I've a problem to post code.

Here I can post code stuff very well:
PHP-Code
HTML-Code
AnyCode

But in review, there is no usefull posibility.

Perhaps you can improve that. A review and edit option would be nice, too

Thanks a lot...

---

At http://www.pixelpost.org/extend/addons/photo-mosaic/ i wanted to post that:

Very nice!

But i've to hack the php.

At first I've change
$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");
to
$thumbpath = "./thumbnails/"; /* ltrim($cfgrow['thumbnailpath'], "./"); */
because $cfgrow['thumbnailpath'] is empty in my case

An than I've spaces in my image names, so I've to change
$mosaic .= "<a href='index.php?showimage=$pieces[0]' class='mosaic' style='background-image:url(" . $thumbpath ."thumb_$pieces[1]);'>&nbsp;</a>";
to
$mosaic .= "<a href='index.php?showimage=$pieces[0]' class='mosaic' style='background-image:url(\"" . $thumbpath ."thumb_$pieces[1]\");'>&nbsp;</a>";
to ensure loading.

Perhaps some stuff for next version.

Thanks a lot for your work!

Dkozikowski
11-27-2007, 01:58 PM
Thank you for the suggestions but, a review is meant to let the user and developer know what you think about the addon/template/etc and not a place to post code fixes. In the future, you can reference a forum post for a fix.

Also, you can overwrite an old review by making a new one. The old review will be erased and replaced by your new review.

jaywilliams
11-27-2007, 02:51 PM
You can also use a bit of Markdown magic to escape the characters to get something very similar to code:


`$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");`

(Note the backticks at the front and back of the string)

This would result in:

<p><code>$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");</code></p>


And if you put a blank line at the top and the bottom it will create a new paragraph for your code snippet.


Lorem ipsum dolor sit amet

`$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");`

consectetur adipisicing elit


<p>Lorem ipsum dolor sit amet</p>

<p><code>$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");</code></p>

<p>consectetur adipisicing elit</p>


Of course, you could always enter the actual html code in these examples as well, but I normally find using Markdown is much easier.

Dennis
11-27-2007, 06:10 PM
and besides that: if $cfgrow['thumbnailpath'] is empty then please set it in the options.