Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 11:19 pm EST
Geeklog Forums
Moreover News Won't Work In Geeklog Blocks?
Anonymous
Anonymous
I just intalled Geeklog on my server, and I would just like to say how amazed I am! To the developers: thank you, you have done a great job!
Now, to get back on topic. Moreover news, from http://www.moreover.com won't appear in Geeklog blocks, but will instead display a ton of errors. Can someone please help me? The moreover code worked in the PHP-Nuke blocks, but I don't want to get nuked again, and I really love Geeklog. Can someone please help me?
Bradley Hallett
bradley@leafsforever.ca
6
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That may be because of the rather primitive RDF parser usind in Geeklog 1.3.5. As of 1.3.6, we will have an improved parser that should be able to handle those RDF feeds that the current parser could not handle.
If you need that parser now, you should be able to pull the code from CVS.
bye, Dirk
9
6
Quote
Anonymous
Anonymous
Hey, this is Brad...
I use FTP, not CVS... And moreover is a javascript... The javascript won't load properly in geeklog for some reason. Do you still know how to fix it? Get back to me. bradley@leafsforever.ca
6
6
Quote
Anonymous
Anonymous
Here is the moreover code:
<!-- Start Of Moreover.com News Javascript Code -->
<style type='text/css'>
.morehl {
font-family: Verdana, Geneva, Arial, sans-serif !important;
font-size: 12px !important;
color: #000000 !important;
font-weight: bold !important;
font-style: normal !important;
text-decoration: underline !important;
}
A:link.morehl, A:vlink.morehl, A:alink.morehl {
color: #000000 !important;
}
.moresrc {
font-family: Verdana, Geneva, Arial, sans-serif !important;
font-size: 11px !important;
color: #999999 !important;
font-weight: normal !important;
font-style: normal !important;
text-decoration: none !important;
}
A:link.moresrc, A:vlink.moresrc, A:alink.moresrc {
color: #999999 !important;
}
.moreti {
font-family: Verdana, Geneva, Arial, sans-serif;
font-size: 11px;
color: #999999;
font-weight: normal;
font-style: normal;
text-decoration: none;
}
.morehlt {
font-family: Verdana, Geneva, Arial, sans-serif;
font-size: 12px;
color: #000000 !important;
font-weight: bold;
font-style: normal;
text-decoration: none;
}
</style>
<SCRIPT LANGUAGE="Javascript">
<!--
// the array global_article is used to allow multiple categories
var global_article = new Array();
var global_article_counter = 0;
var article = null;
var early_exit = true;
var moreover_text = 0;
function load_wizard()
{
var newwin = window.open("","clone","resizable,scrollbars"
document.forms.moreover_clone.submit();
return true;
}
// -->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="http://p.moreover.com/cgi-local/page?feed=342&o=js&n=5">
</SCRIPT>
<SCRIPT LANGUAGE="Javascript">
<!--
// load global_article array with articles from category
if (article != null && (article.length > 0))
{
early_exit = false;
for (var article_counter = 0; article_counter < article.length; article_counter++)
{
global_article[global_article_counter] = article[article_counter];
global_article[global_article_counter].url += "&w=2168528";
global_article[global_article_counter].url += "' TARGET='_blank";
global_article[global_article_counter].document_url += "' TARGET='_blank";
global_article_counter++;
}
}
// -->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript">
<!--
if (global_article.length == 0)
{
if (early_exit)
{
document.write("<CENTER>Please reload this page to view the headlines</CENTER>"
}
else
{
document.write("<CENTER>Sorry, no articles matched your search criteria</CENTER>"
early_exit = true;
}
}
// -->
</SCRIPT>
<table cellpadding=4 cellspacing=0 border=0 width='100%'><tr bgcolor='#ffffff'><td>
<a href='http://www.moreover.com/cgi-local/page?o=portal&feed=342&o=js' target='_blank' class='morehlt'>NHL: Toronto Maple Leafs news</a><br> <br>
<SCRIPT LANGUAGE="Javascript">
<!--
if (!early_exit)
{
var wizard_brand = "moreover";
var webfeed_heading = "NHL: Toronto Maple Leafs news";
var width = "100%";
var numberofarticles = global_article.length;
var cluster_border = "0";
var time_display = "Yes";
var cell_spacing = "0";
var cell_padding = "1";
var time = new Array(global_article.length);
// Start loop for articles
for (var counter=0; counter < numberofarticles; counter++)
{
if ((counter == (global_article.length - 1)) && moreover_text == 1)
{
time_display = "No";
}
// Print out the headline
document.write("<a href='"+global_article[counter].url+"' class='morehl'>"
document.write(global_article[counter].headline_text+"...</a><br>"
// Print out the source
if ((counter != (global_article.length - 1)) || moreover_text != 1)
{
document.write("<A HREF='"+global_article[counter].document_url+"' + class='moresrc'>"
document.write(global_article[counter].source+"</A>"
}
// Print out reg/sub/prem if appropriate
if (global_article[counter].access_status == "sub" || global_article[counter].access_status == "reg" || global_article[counter].access_status == "prem"
{
document.write("<span class='moreti'> </span><A HREF='"+global_article[counter].access_registration+"' class='moresrc'>"
document.write(global_article[counter].access_status+"</A>"
}
// Print out the harvest time
if (time_display == "Yes"
{
// Make a new date object
time[counter] = new Date(global_article[counter].harvest_time);
time[counter].setHours(time[counter].getHours() - (time[counter].getTimezoneOffset() / 60 ));
document.write("<span class='moreti'> "+time[counter].toString()+"<br> <br></span>"
}
else
{
document.write("<br> <br>"
}
} // End of article loop
// Start of clone button code //
// NOTE: DO NOT REMOVE any of the code in this section //
document.write("<FORM METHOD='POST' ACTION='http://www.moreover.com/cgi-local/wizard_welcome.pl' target='clone' name='moreover_clone'>"
document.write("<INPUT TYPE='hidden' NAME='parent_code' VALUE='2168528'>"
document.write("<INPUT TYPE='hidden' NAME='clone_system' VALUE='c'>"
document.write("<INPUT TYPE='hidden' NAME='system' VALUE='c'>"
document.write("<INPUT TYPE='hidden' NAME='heading_font_size' VALUE=''><INPUT TYPE='hidden' NAME='headline_bgcolor' VALUE='ffffff'>"
document.write("<INPUT TYPE='hidden' NAME='webfeed_heading' VALUE='NHL: Toronto Maple Leafs news'><INPUT TYPE='hidden' NAME='cluster_width' VALUE='100%'>"
document.write("<INPUT TYPE='hidden' NAME='cluster_name' VALUE='feed=342&o=js'><INPUT TYPE='hidden' NAME='source_time_underline' VALUE='false'>"
document.write("<INPUT TYPE='hidden' NAME='time_display' VALUE='Yes'><INPUT TYPE='hidden' NAME='heading_display' VALUE='Yes'>"
document.write("<INPUT TYPE='hidden' NAME='headline_fgcolor' VALUE='000000'><INPUT TYPE='hidden' NAME='cluster_cellspacing' VALUE='0'>"
document.write("<INPUT TYPE='hidden' NAME='number_of_headlines' VALUE='5'><INPUT TYPE='hidden' NAME='source_time_fgcolor' VALUE='999999'>"
document.write("<INPUT TYPE='hidden' NAME='headline_font_size' VALUE='12'><INPUT TYPE='hidden' NAME='search_keywords' VALUE=''>"
document.write("<INPUT TYPE='hidden' NAME='source_time_font_size' VALUE='11'><INPUT TYPE='hidden' NAME='headline_italic' VALUE='false'>"
document.write("<INPUT TYPE='hidden' NAME='headline_font' VALUE='Verdana, Geneva, Arial, sans-serif'><INPUT TYPE='hidden' NAME='source_time_italic' VALUE='false'>"
document.write("<INPUT TYPE='hidden' NAME='source_time_font' VALUE='Verdana, Geneva, Arial, sans-serif'><INPUT TYPE='hidden' NAME='wizard_brand' VALUE='moreover'>"
document.write("<INPUT TYPE='hidden' NAME='cluster_cellpadding' VALUE='1'><INPUT TYPE='hidden' NAME='headline_bold' VALUE='true'>"
document.write("<INPUT TYPE='hidden' NAME='cluster_border' VALUE='0'><INPUT TYPE='hidden' NAME='source_time_bold' VALUE='false'>"
document.write("<INPUT TYPE='hidden' NAME='headline_underline' VALUE='true'><INPUT TYPE='hidden' NAME='cluster_layout' VALUE='<BR>'>"
document.write("</FORM>"
// End of clone button code //
// ************************************************************************************
// This code is subject to the copyright and warranty restrictions detailed at
// http://www.moreover.com/wizard_copyright.html
// Copyright 2000 Moreover.com Inc. All rights reserved.
// *************************************************************************************
}
// -->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="http://p.moreover.com/dr/wizard/wizard_text.js"></SCRIPT>
</td></tr></table>
<!-- End Of Moreover.com News Javascript Code -->
Now, the problem I am experiencing only happens in Geeklog. I don't know what to do. Shcoe this code into a geeklog box and you will see what I am talking about. If you have MSDN, IE Error messeges will popup and the headlines won't show up in the code. Please help!
4
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Well, actually I can't save that code in a block - I get an SQL error.
However when I put it in a separate file between
<?php
require_once('lib-common.php');
echo COM_siteHeader('menu');
echo COM_startBlock("Moreover"
?>
<!-- moreover code here -->
<?php
echo COM_endBlock();
echo COM_siteFooter();
?>
it works just fine.
Here's another idea: Put that code in a file, write a simple PHP block which reads that file and returns the contents. See if that works.
Or, as squatty already said, try to find a proper RDF feed (which would have the added benefit that it would work without having Javascript enabled).
bye, Dirk
6
8
Quote
All times are EST. The time is now 11:19 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content