nbruley
Forum Replies Created
-
Forum: Plugins
In reply to: [MP3-jPlayer] [Plugin: MP3-jPlayer] Not working on Firefox Mobile for Android@simon Yes, I let you know via email but forgot to post here. The problem was that I had disabled hotlinking using my htaccess file and for some reason Firefox couldn’t see the file with your plugin even though the other browsers could. I took out the hotlink protection and everything worked fine.
Forum: Plugins
In reply to: Change PrintFriendly TitleAh, so it’s the title tag info I needed to tweak. Changed that and it works great, thanks!
Forum: Plugins
In reply to: [MP3-jPlayer] [Plugin: MP3-jPlayer] Not working on Firefox Mobile for Android@simon, I’m not sure I understand your last statement. Your plugin doesn’t play in Firefox on my site but when I go to your site it works. Are you saying that I would need to use a different plugin or a different option? I would work with you on debugging this if you were willing to take the time, thanks!
My site:
https://gloryboundsingers.net/UPDATE: I decided to forget about imagebrowser and just use the shutter style, so the links in the first post no longer demonstrate the problem.
Another note: the “2” in the following code may need to be “1” depending on how the location of the gallery images is entered in the gallery configuration page. If it begins with a “/” you’ll need a 2 to eliminate it, if it begins with a folder name, you need a 1.
substr(parse_url($image->imageURL,PHP_URL_PATH),2);
Sorry, I edited the code above slightly. The important line is
<!-- ADD DOWNLOAD LINK, changed image-caption to image-alttext NB ??? --> <span><?php echo $image->alttext ?><br /><?php echo $image->caption; ?><br /><a href=" <?php home_url(); ?> /force-download.php?file=<?php echo substr(parse_url($image->imageURL,PHP_URL_PATH),2); ?> ">Download</a></span>
I tested without imagebrowser and it works on my settings.
It involves adding some code to /wp-content/plugins/nextgen-gallery/view/gallery-caption.php (or you probably want to make your own custom theme by copying the .php file and naming it gallery-mytemplate.php and referencing [template=mytemplate]
Here’s a snippet from my gallery-template file that includes modified code:
[Code moderated as per the Forum Rules. Please use the pastebin]Then you need to upload force-download.php to your home directory.
Code for this file is as follows:[Code moderated as per the Forum Rules. Please use the pastebin]
You’ll probably have to tweak the code to your liking. Instead of the hyperlink you can make it a button.
I think this would work. You may have to adjust other settings in the gallery. I think you have to use the caption template, can’t remember for sure. See if it works and let me know.
If I don’t use imagebrowser I think I got it to work on the gallery page, but with imagebrowser I can’t get it yet. Oh well, at least I have it on imagebrowser for now.
I tried $image->href and this almost works, but it adds in the whole thumbnail and everything, and I just want a link to the picture.
In another post I see referenced a method to access the database
<?php $album = nggdb::find_album( get_query_var('album') ); ?>
Does anyone know the function like this to get the proper data for the current image href?
Thank you.
Forum: Fixing WordPress
In reply to: table borders not right weaver 2010The following code in my header <style> worked for me. (You don’t need all this, just the border:none parts)
#content table {border: none; margin: 0 -1px 24px 0;text-align: left;width: 100%;}
#content tr th,#content thead th {border: none; color: #000000;font-size: 14px;font-weight: bold;line-height: 18px;padding: 2px 24px; background-color:transparent;}
#content tr td {border-style:none; border-top: 0px; padding: 2px 24px;}
#content tr.odd td {background: none;}The following code in my header <style> worked for me. (You don’t need all this, just the border:none parts)
#content table {border: none; margin: 0 -1px 24px 0;text-align: left;width: 100%;}
#content tr th,#content thead th {border: none; color: #000000;font-size: 14px;font-weight: bold;line-height: 18px;padding: 2px 24px; background-color:transparent;}
#content tr td {border-style:none; border-top: 0px; padding: 2px 24px;}
#content tr.odd td {background: none;}