Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Lounge (http://www.pixelpost.org/forum/forumdisplay.php?f=23)
-   -   Reviews / Better posting option? (http://www.pixelpost.org/forum/showthread.php?t=7480)

Laprodo 11-27-2007 01:53 PM

Reviews / Better posting option?
 
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:

PHP-Code 

HTML Code:

HTML-Code
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
PHP Code:

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

to
PHP Code:

$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
PHP Code:

$mosaic .= "<a href='index.php?showimage=$pieces[0]' class='mosaic' style='background-image:url(" $thumbpath ."thumb_$pieces[1]);'>&nbsp;</a>"

to
PHP Code:

$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:

Code:

`$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");`
(Note the backticks at the front and back of the string)

This would result in:
HTML Code:

<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.

Code:

Lorem ipsum dolor sit amet

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

consectetur adipisicing elit

HTML Code:

<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.


All times are GMT. The time now is 11:37 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.