Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Jenny_EoF on "help with php?"

$
0
0

Does someone know php and can help me with a, probably simple, task? It would really be helpful to me!

I'm trying to modify the plugin Media Library Gallery, but the gallery is so ugly.
The gallery creates this:

*) A link (titled the image name, which I really don't want visible since it's all numbers etc) which links to display the image in version "A".
*) Underneath is the image (thumbnail), which links to displaying the image in version "B".
*) Then a link (another title) which links to displaying the image in version "C".

I simply want everything to display the image in version "A", and if possible, delete the first link (the image name). So that it's just the thumbnail and the last link that is shown.

----------------
Here is the part of the code that I think needs to be edited:
-----------------

[please mark any posted code - http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

if(($src = wp_get_attachment_thumb_url($post->ID))

&& $parent->post_status == "publish"

&& !preg_match("/\W(" . $parent->ID . ")\W/", " {$args["exclude"]} ")

&& $tag_ok

&& $category_ok)

{

$html_row .= "<div class='mlg-preview'>";

$html_row .= "<div class='mlg-title'>ID) . "' title='" . get_the_title($post->ID) . "'>" . get_the_title($post->ID) . " [+]</div>";

$html_row .= "<div class='mlg-img'>ID) . "' title='" . get_the_title($post->ID) . "'><img src='$src' alt='" . get_the_title($post->ID) . "' /></div>";

$html_row .= "<div class='mlg-actions'>";

$html_row .= "“post_parent) . "'>" . get_the_title($post->post_parent) . "”
";

$html_row .= "</div>";

$html_row .= "</div>";

$j++;

}

[please post only one topic per problem - continue with http://wordpress.org/support/topic/help-with-modifying-php-for-plugin?replies=2#post-4893789 ]


Viewing all articles
Browse latest Browse all 8245

Trending Articles