Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > MISCELLANEOUS > Lounge

Post Reply
 
Thread Tools
  #1  
Old 11-27-2007, 01:53 PM
Laprodo Offline
forum loafer
 
Join Date: Sep 2007
Posts: 10
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!
Reply With Quote
  #2  
Old 11-27-2007, 01:58 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
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.
Reply With Quote
  #3  
Old 11-27-2007, 02:51 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
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.
__________________
Jay Williams | A Different View
Reply With Quote
  #4  
Old 11-27-2007, 06:10 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
and besides that: if $cfgrow['thumbnailpath'] is empty then please set it in the options.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:57 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs