Department list images dissapeared

I tried changing the text on department list under the "custom Output" tab. On doing so, the images disappeared and the text ended up listed one below the other. Can anyone help restoring the icons and explain how to change the titles for the iconsAttachment 26012.

11 answers

Profile photo of Ninja Lead 0.00 $tone February 21, 2013
Public

Because TEXT input on custom html on Department list module was changed

You can try to use format code below back it to default

Open Department list module ->Click ToggleEditor button
and input this script

Code:

<div class="department-list">
<ul class="department-list">
<li class="icon-1"><a href="index.php?option=com_content&amp;view=article&amp;id=91&amp;Itemid=541" title="Sample">Management</a> <span class="department-name">Management</span></li>
<li class="icon-2"><a href="index.php?option=com_content&amp;view=article&amp;id=92&amp;Itemid=542" title="Sample">Accounting</a> <span class="department-name">Accounting</span></li>
<li class="icon-3"><a href="index.php?option=com_content&amp;view=article&amp;id=93&amp;Itemid=543" title="Sample">Economics</a> <span class="department-name">Economics</span></li>
<li class="icon-4"><a href="index.php?option=com_content&amp;view=article&amp;id=94&amp;Itemid=544" title="Sample">Technology</a> <span class="department-name">Technology</span></li>
<li class="icon-5"><a href="index.php?option=com_content&amp;view=article&amp;id=95&amp;Itemid=545" title="Sample">Finance</a> <span class="department-name">Finance</span></li>
<li class="icon-6"><a href="index.php?option=com_content&amp;view=article&amp;id=96&amp;Itemid=546" title="Sample">Officer</a> <span class="department-name">Officer</span></li>
<li class="icon-7"><a href="index.php?option=com_content&amp;view=article&amp;id=97&amp;Itemid=547" title="Sample">Humanities</a> <span class="department-name">Humanities</span></li>
<li class="icon-8"><a href="index.php?option=com_content&amp;view=article&amp;id=98&amp;Itemid=548" title="Sample">Geography</a> <span class="department-name">Geography</span></li>
</ul>
</div>
#1
sudheermatta 0.00 $tone February 25, 2013
Public

The HTML in the custom output tab

Code:

<div class="\&quot;department-list\&quot;">
<ul class="\&quot;department-list\&quot;">
<li class="\&quot;icon-1\&quot;"><a href="\&quot;index.php?option=com_content&amp;view=article&amp;id=91&amp;Itemid=541\&quot;" title="\&quot;Sample\&quot;">Management</a> <span class="\&quot;department-name\&quot;">Management</span></li>
<li class="\&quot;icon-2\&quot;"><a href="\&quot;index.php?option=com_content&amp;view=article&amp;id=92&amp;Itemid=542\&quot;" title="\&quot;Sample\&quot;">Accounting</a> <span class="\&quot;department-name\&quot;">Accounting</span></li>
<li class="\&quot;icon-3\&quot;"><a href="\&quot;index.php?option=com_content&amp;view=article&amp;id=93&amp;Itemid=543\&quot;" title="\&quot;Sample\&quot;">Economics</a> <span class="\&quot;department-name\&quot;">Economics</span></li>
<li class="\&quot;icon-4\&quot;"><a href="\&quot;index.php?option=com_content&amp;view=article&amp;id=94&amp;Itemid=544\&quot;" title="\&quot;Sample\&quot;">Technology</a> <span class="\&quot;department-name\&quot;">Technology</span></li>
<li class="\&quot;icon-5\&quot;"><a href="\&quot;index.php?option=com_content&amp;view=article&amp;id=95&amp;Itemid=545\&quot;" title="\&quot;Sample\&quot;">Finance</a> <span class="\&quot;department-name\&quot;">Finance</span></li>
<li class="\&quot;icon-6\&quot;"><a href="\&quot;index.php?option=com_content&amp;view=article&amp;id=96&amp;Itemid=546\&quot;" title="\&quot;Sample\&quot;">Officer</a> <span class="\&quot;department-name\&quot;">Officer</span></li>
<li class="\&quot;icon-7\&quot;"><a href="\&quot;index.php?option=com_content&amp;view=article&amp;id=97&amp;Itemid=547\&quot;" title="\&quot;Sample\&quot;">Humanities</a> <span class="\&quot;department-name\&quot;">Humanities</span></li>
<li class="\&quot;icon-8\&quot;"><a href="\&quot;index.php?option=com_content&amp;view=article&amp;id=98&amp;Itemid=548\&quot;" title="\&quot;Sample\&quot;">Geography</a> <span class="\&quot;department-name\&quot;">Geography</span></li>
</ul>
</div>
#5
sling19 0.00 $tone February 26, 2013
Public

your code
<ul class="\"department-list"\">

correct code
<ul class="department-list">

there are extra \" \" all around.

Suggestion:
1. clear all of them
2. replace the sample code, and change the titles of icons (refer image)

Attachment 26115

#6
sudheermatta 0.00 $tone February 26, 2013
Public

I copied the code and placed it. For some reason the code changes to the extra "\".
example.

HTML Code:

<div class=\"department-list\">
<ul class=\"department-list\">
<li class=\"icon-1\"><a href=\\"index.php?option=com_content&amp;view=article&amp;id=91&amp;Itemid=541\\" title=\\"Sample\\">Management</a> <span class=\\"department-name\\">Management</span></li>
<li class=\"icon-2\"><a href=\\"index.php?option=com_content&amp;view=article&amp;id=92&amp;Itemid=542\\" title=\\"Sample\\">Accounting</a> <span class=\\"department-name\\">Accounting</span></li>
<li class=\\"icon-3\\"><a href=\\"index.php?option=com_content&amp;view=article&amp;id=93&amp;Itemid=543\\" title=\\"Sample\\">Economics</a> <span class=\\"department-name\\">Economics</span></li>
<li class=\\"icon-4\\"><a href=\\"index.php?option=com_content&amp;view=article&amp;id=94&amp;Itemid=544\\" title=\\"Sample\\">Technology</a> <span class=\\"department-name\\">Technology</span></li>
<li class=\\"icon-5\\"><a href=\\"index.php?option=com_content&amp;view=article&amp;id=95&amp;Itemid=545\\" title=\\"Sample\\">Finance</a> <span class=\\"department-name\\">Finance</span></li>
<li class=\\"icon-6\\"><a href=\\"index.php?option=com_content&amp;view=article&amp;id=96&amp;Itemid=546\\" title=\\"Sample\\">Officer</a> <span class=\\"department-name\\">Officer</span></li>
<li class=\\"icon-7\\"><a href=\\"index.php?option=com_content&amp;view=article&amp;id=97&amp;Itemid=547\\" title=\\"Sample\\">Humanities</a> <span class=\\"department-name\\">Humanities</span></li>
<li class=\\"icon-8\\"><a href=\\"index.php?option=com_content&amp;view=article&amp;id=98&amp;Itemid=548\\" title=\\"Sample\\">Geography</a> <span class=\\"department-name\\">Geography</span></li>
</ul>
</div>

This is the case the "connect" module too.

HTML Code:

<div>We\'re on Social Networks. Follow us &amp; get in touch.</div>
<div><a href=\"\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;#\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;\" title=\"\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;Facebook\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;\"> Facebook</a><span>  </span><a href=\"\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;#\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;\" title=\"\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;Google\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;\">Google plus</a><span>  </span><a href=\"\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;#\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;\" title=\"\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;Feed\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;\">Feed</a><span>  </span><a href=\"\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;#\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;\" title=\"\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;Vimeo\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;\">Vimeo</a></div>

It automatically generates these extra codes

If I link any image in an article I cannot see the image. It shows as an broken link. What should I do?

#7
Profile photo of Ninja Lead 0.00 $tone February 26, 2013
Public

Because your hosting is enabling Magic Quotes, you can disable it as following

+ An example that sets the value of these directives to Off in php.ini

Code:

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

+ If access to the server configuration is unavailable, use of .htaccess is also an option. For example:

Code:

php_flag magic_quotes_gpc Off

+ With php file

ROOT/index.php and ROOT/administrator/index.php

Add this script into header file

Code:

<?php
if (get_magic_quotes_gpc()) {
    $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    while (list($key, $val) = each($process)) {
        foreach ($val as $k => $v) {
            unset($process[$key][$k]);
            if (is_array($v)) {
                $process[$key][stripslashes($k)] = $v;
                $process[] = &$process[$key][stripslashes($k)];
            } else {
                $process[$key][stripslashes($k)] = stripslashes($v);
            }
        }
    }
    unset($process);
}
?>
#8
Profile photo of Ninja Lead 0.00 $tone March 1, 2013
Public

It still did not work. I PM’d you the login details. Can you please see into it.

I have fixed the problem on your site by

Open index.php and administrator/index.php file
add new this script

Code:

/*remove magic quotes*/

if (get_magic_quotes_gpc()) {
    $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    while (list($key, $val) = each($process)) {
        foreach ($val as $k => $v) {
            unset($process[$key][$k]);
            if (is_array($v)) {
                $process[$key][stripslashes($k)] = $v;
                $process[] = &$process[$key][stripslashes($k)];
            } else {
                $process[$key][stripslashes($k)] = stripslashes($v);
            }
        }
    }
    unset($process);
}

This fix will be overriden whenever you upgrade to new version of JOOMLA, you need to contact system administrator of your hosting to fix this problem in php.ini file from WEB SERVER

Code:

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

Please check it again and let me know if it helps

#10

This question is now closed

Written By

Comments