News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Inconsistent space within images and content again

Started by WEBSEO, 06.04.2015 16:26:01

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ColinM

Beatriz,
I have found the source of the "challenges".  You may recall I thought perhaps that you had some  standard php module. Well you do not but almost!!  It would seems that when you create a description for a download you have some 'preforma' as each of the descriptions has some added code.  So there is some extra code but it was not obvious where it was located!! ???

Before explaining more please note I have changed the layouts to not use the editor but to be simple text.  One can see things better that way.  Option is "Use WYSIWYG-editor for layouts?" in Config - Backend, now set to No.

I looked at a description and switched the editor to show code. Its the <> like symbol.  Hey presto it has the trouble some code that I was seeing. ;D ::)
<table style="font-family: Verdana, Geneva, sans-serif; font-size: 12.727272033691406px; line-height: 18.18181800842285px;" border="0" cellspacing="5">
<tbody>
<tr>
<td align="center" valign="top" width="150"><img style="border: 1px solid;" src="images/resourcelibrary/dv101/screenshot.png" alt="screenshot" width="150" height="120" />
</td>
<td valign="top">
<p>Using the Power and Control Wheel developed by Ellen Pence and Domestic Abuse Intervention Project, Casey Gwinn and Gael Strack will interview four survivors from the National Family Justice Center Alliance VOICES Committee about their experiences with their abusers. This practical seminar will help police officers, prosecutors, and advocates in learning how to use the Power and Control Wheel to interview victims of domestic violence, strangulation, and spousal sexual assault.</p>
<p style="margin-top: 10px; margin-bottom: 15px;"><strong>To purchase CEU credits for this course, please see the webinar recording above.</strong>
</p>
</td>
</tr>
</tbody>
</table>


We can now fix everything but you have the unenviable task of editing every description. :(  Basically the <table> related code that is contained in each description should be in the layout.  Then you are in control.  To help you I will make a suitable layout and fix one category.  Think this will be Domestic Violence 101 as it only has ten entries.

More later
Colin
Colin M
  •  

WEBSEO

Colin,
thank you for all your help.
I was thinking about how to make this easier to fix, you may know by now that there is a big number of entries and I need to deliver this ASAP.
So I have this question, is there a way to fix this via the database?

I was thinking, maybe by doing a "find and replace" in the database by using this code below, which seems to be related to all entries:
"<table style="font-family: Verdana, Geneva, sans-serif; font-size: 12.727272033691406px; line-height: 18.18181800842285px;" border="0" cellspacing="5">

and change it to a fixed font size, same as in the rest of the site?
I found this, using Firebug:
  font-size: 14px;
  line-height: 1.7em;
}

So, I was thinking replacing it with this:
"<table style="font-family: Verdana, Geneva, sans-serif; font-size: 14px;   line-height: 1.7em;" border="0" cellspacing="5">

Would this work, in your opinion?

Many thanks, again,
Beatriz
  •  

WEBSEO

Colin,
in case it serves as reference, this is the website for which you helped me fix the exact same problem:
http://family.sandiego-webmaster.com/communications.html

You created a few images and provided me with some changes to the code, (which is the information I cannot find), and the result is what you can see in that page example.

I tried downloading the JDownloads sql for the website I point above, and uploaded it to the the database for this website (below), where I am also testing the issue:
http://joomla.webmaster-sos.com/index.php/downloads/category/21-teen-relationship-violence

Unfortunately, no changes. The images are still displayed too close to the text (paragraphs), horizontal images and vertical images alike.

I am hoping this information will help you find the solution.

Beatriz
  •  

ColinM

Beatriz
Yes changing the database would be the quickest option.  But not the part you suggest. Also I would do that by using the jD Tools Backup and Restore I have attached three pics:

  • spacing10.png is as present; spacing12.png is result of Change 1 and Change 2.
  • spacing11.png is result of Change 1 below;
  • spacing12.png is result of Change 1 and Change 2.

The easiest and safest way of doing the bulk change is to use the jD Tools to create a Backup - make sure you tick the option box to get the log stuff.
Note also in the txt file that is created the " symbols have to be preceded by a \  that is use \"
Obviously make a copy of the txt file and edit the copy - might also be an idea to make a site backup as well.
For doing changes like this I recommend using Notepad++ on your PC - its the only text editor I use now!

Change 1
replace <td valign=\"top\"> by <td style=\"padding-left: 15px;\" valign=\"top\">    that is effectively add style="padding-left: 15px;" obviously change the value the padding-left to suit

Change 2
replace <td align=\"center\" valign=\"top\" width=\"150\"> by <td align=\"center\" valign=\"to\p"> that is effectively remove width="150"

When done then use the Restore Tool to put it back.  Obviously between the Backup and Restore lock everyone out!!
If it fouls up then you can Restore the original backup.

For your convenience I attach two txt files.  One file is the original jD backup and the other is a backup with Change 1 done.  There are 740 instances!!
There is a section on Backup and Restore in http://www.jdownloads.net/documentations/item/permissions-problems-after-migration-to-new-series

Colin
PS I cannot find previous pics either!!

[gelöscht durch Administrator]
Colin M
  •  

WEBSEO

Many thanks Colin!
I will work on this and will let you know how it went.
  •  

ColinM

Colin M
  •  

WEBSEO

Colin,
thank you for asking!
I am starting in this issue today.
I have spent the last two days fixing something else first, would that not get fixed I would have had to build a new site.

Now, JDownloads.
I will surely keep you posted.
  •  

WEBSEO

Colin,
just want to make sure, you know that I am working on a mac environment all throughout, UTF-8 for character encoding.
I wonder if that changes anything in the case with the backward slash "\" or anything else.
  •  

ColinM

Beatriz,
Yes the | are needed - it is the sql that is being reloaded by jDownloads on the server, which is not a Mac environment.  The database Backup was prepared and downloaded by jD and should be reloaded by using the Tool - Restore function
Colin
Colin M
  •  

WEBSEO

Thank you Colin,
I am still awaiting for the upload of the downloads folder to be finished, to see if the images will display correctly.

To be safe I am working on a copy of the website template package here:http://strangulation.webmaster-sos.com/).
(Please, do not mind the title of the sub-domain. This was going to be a new release of a website from the same client (Family Justice Center Alliance), which they use to promote information about how to protect oneself from such type of events.).

What I did so far:
I downloaded a copy of the JDownloads database from the website that we fixed first: (see the following, as example of how a page looks after the fix: http://family.sandiego-webmaster.com/prosecution.html)

Then, I am uploading a copy of  the "downloads" folder to the server for this copy: (link will take you directly to a category, as I haven't copied the menus to this website test):
http://strangulation.webmaster-sos.com/index.php/downloads/category/4-u-visa

The folder is 7.5 Gigs large. It is at 80% almost 6 hours after I started.

Will be in touch!
  •  

WEBSEO

Colin, it worked!
I used the fixed database you attached and uploaded it to the family site and it worked!! I am SOOOO thrilled!! Thank you so much.
See the solution in this example:
http://family.webmaster-sos.com/index.php/mental-health-a-substance-abuse

I am happy you did attached that copy because I tried to change the database myself a few times and I must have been doing something wrong, (most probably the "\"), because it wasn't working.
(Hopefully, my client will now be  happy too. :)

Thank you sincerely,
Beatriz M.
  •  

ColinM

Beatriz,
Excellent!  I am pleased as well as your site is good.

I think that whilst still fresh in your mind you should document what is the status and where the source of the challenge lay.  Also the existing proforma for the Descriptions could be much better sorted.  The long term sustainable solution could also be resolved by editing the jD backup. 

The problems you had may well be down to the text editor you are using as the newline, carriage return,line feed may well be differently interpreted.

Should you need assistance with a long term solution then I could assist if needed.

Colin
Colin M
  •  

WEBSEO

Thank you Colin!
I will very much keep your advise in mind.
I'll be in touch in the near future about the long term solution.
  •