Template Club Package Silver Pacakage Gold Pacakage Developer Pacakage Accepted Payments Member Login
TemplatePlazza Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Incompability with Joomla SEO? (X)HTML Standard? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Incompability with Joomla SEO? (X)HTML Standard?
#22107
Match (Visitor)
Click here to see the profile of this user
Birthdate:
Incompability with Joomla SEO? (X)HTML Standard? 5 Months, 4 Weeks ago  
Hi there TemplatePlazza,
I recently installed your extension for Joomla 1.5 (Mini Frontpage). All in all it's a very good piece of work but in my eyes there are two major problems - at least in "my" setting.

First problem:
I use Mini Frontpage as alternative to the Joomla index page (news overview). I also use the Joomla 1.5 build-in SEO. All links outside of the "Mini Frontpage" box are displayed correctly and link to the correct source. All links to content in the "Mini Frontpage" box link to a modified URI and therefore cause a 404 error. Here an example:

The (incorrect) link should look something like http://cms.match87.de/nachrichten/60-technik/124-forum-macht-schwierigkeiten
Explanation:

  • section

  • category

  • article



Here is a section of my .htaccess:
Code:

## Can be commented out if causes errors, see notes above. # Options +FollowSymLinks # # mod_rewrite in use RewriteEngine On # Uncomment following line if your webserver's URL # is not directly related to physical file paths. # Update Your Joomla! Directory (just / for root) # RewriteBase / ########## Begin - Joomla! core SEF Section # RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] RewriteRule (.*) index.php RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] # ########## End - Joomla! core SEF Section ########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Joomla! # # Block out any script trying to set a mosConfig value through the URL RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Send all blocked request to homepage with 403 Forbidden error! RewriteRule ^(.*)$ index.php [F,L] # ########## End - Rewrite rules to block out some common exploits
Second problem My second problem is that "Mini Frontpage" doesn't create a valid (X)HTML source code. It creates a <link>-tag (to the CSS) inside the website's <body>-tag. Is there anything planned? A new release where this issue is fixed? Is there any way to fix those two problems? Thanks for all answers!
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#22134
Match (Visitor)
Click here to see the profile of this user
Birthdate:
Re:Incompability with Joomla SEO? (X)HTML Standard? 5 Months, 3 Weeks ago  
I fixed the SEO issue by using SmartSEF as SEO solution.

But the xhtml error is still there. How to fix it?
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#22135
ricardosousa (Moderator)
Moderator
Posts: 2242
graphgraph
User Offline Click here to see the profile of this user
Gender: Male ricardojrsousa@hotmail.com Location: Portugal Birthdate: 1992-05-21
Re:Incompability with Joomla SEO? (X)HTML Standard? 5 Months, 3 Weeks ago Karma: 15  
First problem... I think this module dont support SEO! I will get in touch with the dev and get him to reply you! Thanks for share!

Second problem: Again i think no in the near future. TP modules code isnt valid yet sorry!

Thanks for your understanding.

PS. Very good relating of problems. I wish everyone do things this way! Congrats you help us so much!
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#22136
ricardosousa (Moderator)
Moderator
Posts: 2242
graphgraph
User Offline Click here to see the profile of this user
Gender: Male ricardojrsousa@hotmail.com Location: Portugal Birthdate: 1992-05-21
Re:Incompability with Joomla SEO? (X)HTML Standard? 5 Months, 3 Weeks ago Karma: 15  
You may move part of your code to the header!

This may take some work anyways!
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#22140
Match (Visitor)
Click here to see the profile of this user
Birthdate:
Re:Incompability with Joomla SEO? (X)HTML Standard? 5 Months, 3 Weeks ago  
To complete my work with "fixing" those little issues, here the solution for both:

[u][b]SEO problem:[/b[/u]] use SmartSEF. It's freeware, it generates good SEF URIs and solves the problem with SEI links not leading to the right source.

To solve the XHTML issue:
Use follow default.php in the module's tmpl folder:
Code:

<?php // no direct access defined('_JEXEC') or die('Restricted access'); $database =& JFactory::getDBO(); $pwidth = intval(100/$columns); $col = 0; if ($thumb_enable == 1 ) { $ini_intro = 1; ?><table width="100%" class="minifp"><?php foreach ( $rows as $row ) { // ----------- add category title ------------ $link = JRoute::_($row->link); if ($cat_title) { $query = "SELECT title FROM #__categories WHERE id =". $row->catid; $database->setQuery( $query ); $categ = $database->loadResult(); } if ($show_title) { $title = '<a href="'. $link .'">'. $row->title . '</a>'; } else $title = '<a href="'. $link .'">'. $row->title . '</a>'; if ( $num_intro ) { if ($col==0) { ?><tr><?php }?> <td valign="top" width="<?php echo $pwidth; ?>%" class="minifp"><?php if ($loadorder == 1) { showThumb($row->images,$row->image,$params,$link); } if ($cat_title) echo '<span class="'.$class_categoria.'">'. $categ . '</span>'; if ($show_title) { if ($title_link == 1) { echo '<span class="'.$class_introtitle.'">'.$title.'</span>'; } else { echo '<span class="'.$class_introtitle.'">'. $row->title . '</span>'; } echo "<p />"; } if ($show_date) { echo '<span class="'.$class_date.'">'; echo JHTML::_('date', $row->publish_up,$params->get( 'date_format' ), $offset); echo '</span>'; } if ( $row->created_by_alias ) { $author = $row->created_by_alias; } else { $author = htmlspecialchars( $row->name ); } if ($show_date && $show_author) { echo $sep; } if ($show_author==1) { echo '<span class="'.$class_author.'">'.$author.'</span>'; } echo '<p />'; if ($loadorder == 0) { // repeat code I hate this --- just because I can't create a new function -- damned if ($thumb_embed == 1) { ?><a href="<?php echo $link; ?>"><?php if (!empty($row->images)) { $img = strtok($row->images,"|\r\n"); $class=""; $extra = ' align="left" alt="article thumbnail" '; fptn_thumb_size($img, $thumb_width, $thumb_height, $image, $extra, $class, $aspect); echo $image; } else if ($row->image !="") { echo '<img src="'.MOD_MINIFRONTPAGE_BASEURL."/". $row->image .' " width="' . $thumb_width . '" height="' . $thumb_height .'" style="float: left;" alt="article image" />'; } else { $img = ""; $class=""; $extra = ' align="left" alt="article thumbnail" '; fptn_thumb_size($img, $thumb_width, $thumb_height, $image, $extra, $class, $aspect); echo $image; } ?></a><?php } }// end if ($loadorder == 0) if ( ($limit > 1) ) { echo $row->introtext; ?><br /><?php } else { ?><div style="clear: both;"></div><?php } if ($fulllink !="") { ?> <a class="minifp-full-link" href="<?php echo $link; ?>"><?php echo $fulllink; ?></a><?php } ?></td><?php $num_intro = $num_intro - 1; if ( $num_intro == 0 ) { $ini_intro = 0; if ( ( ( ($col + 1) % $columns ) == 0 ) && $anotherlink ) echo "</tr><tr>"; if ( ( ( ($col + 1) % $columns ) == 0 ) && !$anotherlink ) echo "</tr>"; if ($anotherlink) { echo '<td valign="top" colspan="'.$columns.'">'; if ($header_title_links != "") echo "<span class='".$class_another_links."'>".$header_title_links."</span>"; else echo "<p />"; echo '<ul class="minifp">'; } else { } } } else if ( ($num_intro==0) && ($ini_intro == 1) ) { if ( ( ($col + 1) % $columns ) == 0 ) echo "</tr><tr>"; echo '<td valign="top" colspan="'.$columns.'">'; if ($header_title_links != "") echo "<span class='".$class_another_links."'>".$header_title_links."</span>"; else echo "<p />"; echo '<ul class="minifp">'; echo "<li class='minifp'>". $title ."</li>"; $ini_intro = 0; continue; } else { echo "<li class='minifp'>". $title ."</li>"; } $col = ($col + 1) % $columns; if ($col == 0 && $num_intro) echo "</tr>"; } if ( ($num_intro==0) && $anotherlink) { ?> </ul></td></tr> <?php } echo '</table>'; } ?>
Now add following code to the end of your template's CSS:
Code:

/~ MiniFrontpage CSS */ .minifp td { padding-right:5px;} .minifp td p { margin-top:3px;} .minifp td img { border:none; margin-left: 0.5em; margin-right: 0.5em;} .minifp-anotherlinks { font-weight:bold; font-size:100%; border-bottom:1px solid #ccc; display:block; padding-bottom:5px; margin-bottom:5px; background:url(../../../modules/mod_minifrontpage/images/application_add.gif) no-repeat top left; padding-left:20px; } .minifp ul li { font-size:94%; padding-left:0; } .minifp ul li a { } .minifp-introtitle a { font-size:120%; font-weight:bold; color: #333; } .minifp-introtitle a:hover { text-decoration:underline; } .minifp-date { color:#666; font-size:9px; font-weight:normal; height:10px; } a.minifp-full-link { font-weight:bold; line-height:24px; } a:hover.minifp-full-link { text-decoration:underline; }
Attention! This is not the original CSS! It only works if your active template uses a standard directory structure. It should look like TEMPLATESET_NAME/TEMPLATE_CSS_FOLDER
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#22143
Match (Visitor)
Click here to see the profile of this user
Birthdate:
Re:Incompability with Joomla SEO? (X)HTML Standard? 5 Months, 3 Weeks ago  
Couldn't edit my post! This is the correct CSS:
Code:

/* MiniFrontpage CSS*/ .minifp td { padding-right:5px;} .minifp td p { margin-top:3px;} .minifp td img { border:none; margin-left: 0.5em; margin-right: 0.5em;} .minifp-anotherlinks { font-weight:bold; font-size:100%; border-bottom:1px solid #ccc; display:block; padding-bottom:5px; margin-bottom:5px; background:url(../../../modules/mod_minifrontpage/images/application_add.gif) no-repeat top left; padding-left:20px; } .minifp ul li { font-size:94%; padding-left:0; } .minifp ul li a { } .minifp-introtitle a { font-size:120%; font-weight:bold; color: #333; } .minifp-introtitle a:hover { text-decoration:underline; } .minifp-date { color:#666; font-size:9px; font-weight:normal; height:10px; } a.minifp-full-link { font-weight:bold; line-height:24px; } a:hover.minifp-full-link { text-decoration:underline; }
It isn't CSS2.0 valid yet... but soon
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
ico spot
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad