Hacks

Hack for better search engine positionning

keyes  08-May-2004 22:43 9731 Reads   28 Comment(s) 
We have realesed a hack for a better positionning in search engine in XOOPS 2.0.6.
We use a news format of URLs like page.php/My-title and we have added the title of the news/posts/files/links in the xhtml tag!<br>This include a special version of the Spotlight module who use our news URL format and fix many xhtml problems!<br><br>For a better positionning use our hack now!<br><br><a href="http://www.exploz.com/modules/mydownloads/singlefile.php/25-28-eXploZ-XOOPS-hack" rel="noopener external" title="">Download eXploZ XOOPS hack</a><br><a href="http://www.exploz.com/" rel="noopener external" title="">Demo</a><br><br><br>Changelog<br><br>spotlight<br><br>18/4/2004 Fixed xhtml problems (files files news_block_spotlight.html)<br>18/4/2004 Added new URL format for news (files news_block_spotlight.html kuht_head.php)<br><br>mylinks<br><br>19/4/2004 Added new URL format for links in top ten (file topten.php mylinks_topten.html)<br>16/4/2004 Added new URL format for links in search (file search.inc.php)<br>17/4/2004 Fixed problem with links href and image src (file viewcat.php mylinks_link.html mylinks_viewcat.php)<br>16/4/2004 Added new URL format for topics in search (file search.inc.php)<br>13/4/2004 Fixed problem with category tree links (files singlefile.php viewcat.php)<br>13/4/2004 Added title of the file (file singlefile.php)<br>13/4/2004 Added title of the category (file viewcat.php)<br>13/4/2004 Added new URL format for files (files index.php singlefile.php mylinks_top.php mylinks_block_new.html mylinks_block_top.php viewcat.php mylinks_link.html)<br>13/4/2004 Added new URL format for categrories (files index.php mylinks_index.html viewcat.php mylinks_viewcat.html)<br><br>mydownloads<br><br>19/4/2004 Added new URL format for files in top ten (file topten.php mydownloads_topten.html)<br>17/4/2004 Fixed problem with links href and image src (file viewcat.php mydownloads_viewcat.html mydownloads_download.html)<br>16/4/2004 Added new URL format for files in search (file search.inc.php)<br>12/4/2004 Fixed problem with category tree links (files singlefile.php viewcat.php)<br>12/4/2004 Added title of the file (file singlefile.php)<br>12/4/2004 Added title of the category (file viewcat.php)<br>12/4/2004 Added new URL format for files (files index.php singlefile.php mydownloads_top.php mydownloads_block_new.html mydownloads_block_top.php viewcat.php mydownloads_download.html)<br>10/4/2004 Added new URL format for categrories (files index.php mydownloads_index.html viewcat.php mydownloads_viewcat.html)<br><br>newbb<br><br>10/4/2004 Added new URL format for topics in search (file search.inc.php)<br>6/4/2004 Added new URL format for topics in blocks (files newbb_new.php newbb_block_active.html newbb_block_new.html newbb_block_prv.html newbb_block_top.html)<br>6/4/2004 Added title of the topic in the title tag (file viewforum.php)<br>6/4/2004 Fixed problem whith redirect header (file viewtopic.php)<br>6/4/2004 Added title of the forum in the title tag (file viewforum.php)<br>6/4/2004 Added new URL format for topics (files viewforum.php viewtopic.php)<br><br>news<br><br>10/4/2004 Added new URL format for news in search (file search.inc.php)<br>6/4/2004 Added new URL format for news in blocks (files news_bigstory.php news_top.php news_block_bigstory.html news_block_new.html news_block_top.html)<br>5/4/2004 Fixed problem with the category selector (file news_index.html)<br>5/4/2004 Added title of the news in the title tag (file article.php)<br>5/4/2004 Added new URL format for news (files article.php archive.php)<br>5/4/2004 Added new URL format for category (file class.newsstory.php) <div class='shareaholic-canvas' data-app='share_buttons' data-app-id=''></div> </div> <div class="clearfix"></div> <div class="pub_article_extras"> <div class="pull-left"> <small> <div class="publisher_ratingblock"> <div id="unit_long5723"> <div id="unit_ul5723" class="publisher_unit-rating" style="width:150px;"> <div class="publisher_current-rating" style="width:0px;">Rating 0/5</div> </div> <div class="publisher_static">Rating: <strong> 0</strong>/5 (0 votes) <br><em>Voting is disabled!</em></div> </div> </div> </small> </div> <div class="pull-right text-right"> </div> <div class="clearfix"></div> </div> <!-- Attached Files --> <!-- End Attached Files --> <!-- Items by same Author --> <div class="pub_article_extras"> <div class="btn btn-primary btn-lg btn-block"> <a href="https://xoops.org/modules/publisher/author_items.php?uid=12504"> Items by the same author </a> </div> </div> <!-- END Items by same Author --> <!-- Other articles in the category --> <!-- END Other articles in the category --> <table border="0" width="100%" cellspacing="1" cellpadding="0" align="center"> <tr> <td colspan="3" align="left"> <div style="text-align: center; padding: 3px; margin:10px;"> <div class="text-center"> <div class="form-inline"> <form method="get" action="item.php"> <select size="1" name="com_mode" id="com_mode" title=""><option value="flat" selected>Flat</option><option value="thread">Threaded</option><option value="nest">Nested</option></select> <select size="1" name="com_order" id="com_order" title=""><option value="0" selected>Oldest First</option><option value="1">Newest First</option></select> <input type='submit' class='formButton' name='com_refresh' id='com_refresh' value='Refresh' title='Refresh' /> <input type="hidden" name="itemid" value="5723" /> </form> </div> </div> </div> <div style="margin:3px; padding: 3px;"> <!-- start comments loop --> <div class="xoops-comment-body"> </div> <!-- end comments loop --> </div> </td> </tr> </table> <br> <hr> <script type="text/javascript"> $('input[type=submit]').addClass('btn btn-warning btn-teal'); $('input[type=button]').addClass('btn btn-primary btn-teal'); </script> <style> #com_mode { float: left; height: calc(1.5em + 0.75rem + 2px); padding: 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; margin-right: 10px; } #com_order { float: left; height: calc(1.5em + 0.75rem + 2px); padding: 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; margin-right: 10px; } </style> <script type="application/ld+json">{ "publisher": { "@context": "https://schema.org", "@type": "Organization", "name": "XOOPS Web Application System", "slogan": "Powered by You!", "url": "https://xoops.org", "logo": { "@type": "ImageObject", "url": "https://xoops.org/images/logo.png", "width": "300", "height": "60" } } }</script> <!-- End content module --> </div> </div> <div class="col-xl-3 col-lg-12 col-md-12"> <!-- Start right blocks loop --> <div class="card"> <div class="card-header"> <h3 class="card-title">Login</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <div class="panel panel-default"> <form action="https://xoops.org/user.php" method="post" role="form"> <div class="panel-body"> <form class="form-horizontal" role="form"> <div class="form-group"> <label for="inputEmail3" class="col-sm-12 control-label"> Username</label> <div class="col-sm-9"> <input class="form-control login-block-form" style="margin-bottom: 5px;" type="text" name="uname" placeholder="Your Username"> </div> </div> <div class="form-group"> <label for="inputPassword3" class="col-sm-12 control-label"> Password</label> <div class="col-sm-9"> <input class="form-control login-block-form" type="password" name="pass" placeholder="Your Password"> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label> <input type="checkbox" name="rememberme" value="On" class="formButton"> Remember me </label> </div> </div> </div> <input type="hidden" name="xoops_redirect" value="/modules/publisher/item.php?itemid=5723"> <input type="hidden" name="op" value="login"> <div class="form-group last"> <div class="col-sm-offset-3 col-sm-9"> <input type="submit" class="btn btn-success btn-sm" value="User Login"> <button type="reset" class="btn btn-default btn-sm"> Reset </button> </div> </div> </form> </div> </form> <div class="panel-footer" style="text-align: center"> <a href="https://xoops.org/register.php" title="Register now!">Register now!</a>  |  <a href="https://xoops.org/user.php#lost" title="Lost Password?">Lost Password?</a> </div> </div> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Search</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <form role="search" action="https://xoops.org/search.php" method="get"> <div class="input-group"> <input class="form-control" type="text" name="query" placeholder="Search here..."> <input type="hidden" name="action" value="results"> <span class="input-group-btn"> <button class="btn btn-primary" type="submit"> <span class="fas fa-search"></span> </button> </span> </div> </form> <p class="text-right"> <a href="https://xoops.org/search.php" title="Advanced Search"> Advanced Search </a> </p> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Recent Comments</h3> </div> <div class="card-body p-0"> <div class="job-box"> <div class="inbox-message"> <ul> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a><i class="fas fa-angle-right"></i></a> <a href="https://xoops.org/modules/publisher/item.php?itemid=6088&com_id=58034&com_rootid=58034&#comment58034">Re: New Admin Theme for XOOPS (Beta)</a></h5> </div> <div class="olc"><i class="fas fa-folder-open"></i> <a href="https://xoops.org/modules/publisher/">Publisher</a> <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=5513">Bleekk</a> <i class="far fa-calendar-alt"></i> 06/03/2024 18:53</div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a><i class="fas fa-angle-right"></i></a> <a href="https://xoops.org/modules/publisher/item.php?itemid=6088&com_id=58033&com_rootid=58033&#comment58033">Re: New Admin Theme for XOOPS (Beta)</a></h5> </div> <div class="olc"><i class="fas fa-folder-open"></i> <a href="https://xoops.org/modules/publisher/">Publisher</a> <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=2006">kakos</a> <i class="far fa-calendar-alt"></i> 05/29/2024 14:51</div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a><i class="fas fa-angle-right"></i></a> <a href="https://xoops.org/modules/publisher/item.php?itemid=6087&com_id=58028&com_rootid=58028&#comment58028">Re: XOOPS 2.5.11 Final Released</a></h5> </div> <div class="olc"><i class="fas fa-folder-open"></i> <a href="https://xoops.org/modules/publisher/">Publisher</a> <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=142632">HymanSarwar</a> <i class="far fa-calendar-alt"></i> 02/16/2024 5:22</div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a><i class="fas fa-angle-right"></i></a> <a href="https://xoops.org/modules/publisher/item.php?itemid=6087&com_id=58027&com_rootid=58025&#comment58027">Re: XOOPS 2.5.11 Final Released</a></h5> </div> <div class="olc"><i class="fas fa-folder-open"></i> <a href="https://xoops.org/modules/publisher/">Publisher</a> <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563">Mamba</a> <i class="far fa-calendar-alt"></i> 12/31/2023 15:24</div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a><i class="fas fa-angle-right"></i></a> <a href="https://xoops.org/modules/publisher/item.php?itemid=6087&com_id=58026&com_rootid=58026&#comment58026">Re: XOOPS 2.5.11 Final Released</a></h5> </div> <div class="olc"><i class="fas fa-folder-open"></i> <a href="https://xoops.org/modules/publisher/">Publisher</a> <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=10779">alain01</a> <i class="far fa-calendar-alt"></i> 12/29/2023 10:16</div> </div> </li> </ul> </div> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Who's Online</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <p><strong>431</strong> user(s) are online (<strong>107</strong> user(s) are browsing <strong>Publisher</strong>)</p> <hr> <p><i class="fas fa-user-plus"></i> Members: 0</p> <hr> <p><i class="fas fa-street-view"></i> Guests: 431</p> <hr> <p><i class="fas fa-users"></i> </p> <a class="btn btn-sm btn-info" href="javascript:openWithSelfMain('https://xoops.org/misc.php?action=showpopups&type=online','Online',420,350);" title="more...">more...</a> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Donat-O-Meter</h3> </div> <div class="card-body p-0"> <table class="table table-bordered"> <tr> <td style="width: 100%; font-weight: bold; text-decoration: underline;" colspan="2">Stats</td> </tr> <tr> <td>Goal:</td> <td>$100.00</td> </tr> <tr> <td>Due Date:</td> <td>Jul 31</td> </tr> <tr> <td>Gross Amount:</td> <td>$0.00</td> </tr> <tr> <td>Net Balance:</td> <td>$0.00</td> </tr> <tr> <td style="font-weight: bold;">Left to go:</td> <td style="font-weight: bold;"><span style="color: #CC0000;">$100.00</span></td> </tr> <tr> <td style="width: 100%; text-align: center;" colspan="2"><a href="https://xoops.org/modules/xdonations/index.php"> <img src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" style="border-width; 0px;" alt="Make donations with PayPal!" width=110 height=23 /> </a></td> </tr> </table> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Latest GitHub Commits</h3> </div> <div class="card-body p-0"> <div id="demo"> <div class="job-box"> <div class="inbox-message"> <ul> <li v-for="record in commits"> <div class="message-body1"> <div class="message-body-heading1"> <h5><a><i class="fas fa-angle-right"></i></a> <a :href="record.html_url" target="_blank" class="commit">{{ record.sha.slice(0, 7) }} - <span class="message">{{ record.commit.message | truncate }}</span></a></h5> </div> <div class="olc"><i class="fas fa-user"></i> <a :href="record.author.html_url" target="_blank">{{ record.commit.author.name }}</a> <i class="fas fa-folder-open"></i> {{ record.commit.author.date | formatDate }}</div> </div> </li> </ul> </div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.4/vue.min.js"></script> <script> var apiURL = 'https://api.github.com/repos/XOOPS/XoopsCore25/commits?per_page=3&sha=' /** * Actual demo */ var demo = new Vue({ el: '#demo', data: { branches: ['master'], currentBranch: 'master', commits: null }, created: function () { this.fetchData() }, watch: { currentBranch: 'fetchData' }, filters: { truncate: function (v) { var newline = v.indexOf('n') return newline > 0 ? v.slice(0, newline) : v }, formatDate: function (v) { return v.replace(/T|Z/g, ' ') } }, methods: { fetchData: function () { var xhr = new XMLHttpRequest() var self = this xhr.open('GET', apiURL + self.currentBranch) xhr.onload = function () { self.commits = JSON.parse(xhr.responseText) console.log(self.commits[0].html_url) } xhr.send() } } }) </script> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Categories</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <span class="btn btn-primary btn-sm" style="margin-right: 1px;color:#fff;"><a class='menuMain' href='https://xoops.org/modules/publisher/category.php?categoryid=1'>XOOPS</a></span> <span class="btn btn-primary btn-sm" style="margin-right: 1px;color:#fff;"><a class='menuMain' href='https://xoops.org/modules/publisher/category.php?categoryid=11'>Newsletter</a></span> </div> <style> .btn-primary a { color: #fff; } </style> </div> </div> <!-- End right blocks loop --> </div> </div> </div> </section> <!--Section--> <!--Footer Section--> <footer class="footer"> <div class="container bottom_border"> <div class="row"> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">About us</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/wfchannel/">About Xoops</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=24">Why XOOPS?</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=21">Board of Advisors</a></li> <li><a href="https://xoops.org/modules/wgtimelines/index.php?op=list&tl_id=1">Xoops Innovators</a></li> <li><a href="https://xoops.org/modules/wgtimelines/index.php?op=list&tl_id=2">XOOPSers</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=6">XOOPS Etiquette</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Learn</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/news/article.php?storyid=4534">Books</a></li> <li><a href="https://xoops.org/modules/smartfaq/">FAQ</a></li> <li><a href="https://www.gitbook.com/@xoops/">Core Guides</a></li> <li><a href="https://www.gitbook.com/@xoops/">Module Guides</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Use</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://github.com/XOOPS/XoopsCore25/releases">Download Xoops</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://xoops.org/modules/newbb/">Support Forums</a></li> <li><a href="https://xoops.org/modules/xoopspartners/">International Support</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Develop GitHub</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://github.com/XOOPS">Core @ GitHub</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://sourceforge.net/projects/xoops/">Legacy XOOPS @ SourceForge </a></li> <li><a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">Coding Standards PSR-2</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Contribute</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/xdonations/">$$$ Donations</a></li> <li><a href="https://github.com/orgs/XOOPS/people">Join Team</a></li> <li><a href="https://github.com/XOOPS">Core @ GitHub</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://github.com/XOOPS/XoopsCore25/issues">Report Core Bug</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Connect</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://www.facebook.com/groups/xoops/">Facebook</a></li> <li><a href="http://www.linkedin.com/groups?gid=43552">LinkedIn</a></li> <li><a href="http://www.flickr.com/photos/tags/xoops/">Flickr</a></li> <li><a href="https://www.youtube.com/results?search_query=xoops">YouTube</a></li> <li><a href="https://www.openhub.net/p/xoops">Ohloh</a></li> <li><a href="https://twitter.com/xoopsgithub">Twitter</a></li> </ul> <!--footer_ul_amrc ends here--> </div> </div> </div> <div class="container"> <!--foote_bottom_ul_amrc ends here--> <br> <p class="text-center"><a rel="nofollow" href="https://xoops.org/modules/wfchannel/index.php?pagenum=3">Terms of Use</a> | <a rel="nofollow" href="https://xoops.org/modules/wfchannel/index.php?pagenum=4">Privacy Policy</a> | Hosted by <a rel="nofollow" href="http://www.arvixe.com/xoops_hosting?utm_campaign=xoops&utm_medium=banner&utm_source=xoops.org" title="Hosted by Arvixe">Arvixe Hosting</a> | <a rel="nofollow" href="https://xoops.org/backend.php" title="RSS2 Feed"><img src="https://xoops.org/uploads/rss.gif" alt="RSS 2.0 Button" /></a> <script type="module"> jQuery(document).ready(function () { jQuery("ul.sf-menu").superfish(); pathClass: "current" }); </script></p> </div> <center><a href="https://erenyumak.com/" target="_blank">Design: B.Heyula</a></center> </footer> <a href="#top" id="back-to-top" style="display: inline;"><i class="fa fa-long-arrow-up"></i></a> <!--Footer Section--> <!-- JS --> <script src="https://xoops.org/themes/xoops2020/js/jquery-3.5.1.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/bootstrap.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/bootstrap.bundle.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/newapplication.js" defer></script> <!-- JS --> </body> </html>