Hi Guys,
I urgently need this module to be indexed by the search engine spiders before I delete it and add the content manually.
The simulator at http://www.searchengineworld.com/cgi-bin/sim_spider.cgi does not list any of the content in books, nor in my forums.. how can I get this to work? If I type www.postnuke.com into the simulator I get all the forum contents - but not on my site.
Can anyone PLEASE help.
My website is http://www.freebetguide.com
- mdee responded to »Different page content under one template (tpl file) based on URL« 05:39 AM
- Guite responded to »Remove contents of nuke_sc_anticracker from Database« 01:30 AM
- espaan responded to »Categories disappear when editing ...« 08. Feb
- eledril responded to »How decrease zikula cpu usage« 08. Feb
- jmvaughn responded to »PN 0.764 to Zikula 1.1.2 (migration) Internal Server Error« 08. Feb
- eledril created topic »Where can I download BBCode and BBSmile?« 08. Feb
- Paustian responded to »Need Feedback« 08. Feb
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
PnBooks Help
-
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Nov 20, 2007
- Posts: 96
Anyone? Also The icons on the books home
are not showing - see http://www/freebetguide.com to see what I mean. -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Nov 20, 2007
- Posts: 96
Ok, weird this... it works here: http://www.freebetguide.com/books.html but not on home page.
I'm sue this is simple but i cant do it!!! -
- Rank: Helper
- Registered: Jan 29, 2004
- Last visit: Oct 21, 2009
- Posts: 852
-
- Rank: Helper
- Registered: Jan 29, 2004
- Last visit: Oct 21, 2009
- Posts: 852
And you're also using a Xanthia theme right? Well, maybe you should compare the master.htm and home.htm?
HTH -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Nov 20, 2007
- Posts: 96
Ok:
Master:
Code
<!DOCTYPE HTML public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="<!--[lang]-->">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--[charset]-->">
<meta name="DESCRIPTION" content="Free Bet Guide, Online Bookmakers Free Bets, Gaming Cash, Casino Bonuses & Online Poker Rooms. Free Forums, Bookmaker Reviews and Lots More. Register FREE Today!">
<meta name="resource-type" content="document">
<meta http-equiv="expires" content="0">
<meta name="author" content="<!--[sitename]-->">
<meta name="copyright" content="Copyright (c) 2004 by FreeBetGuide.com">
<meta name="revisit-after" content="1 days">
<meta name="distribution" content="Global">
<meta name="generator" content="PostNuke <!--[pnml name="_PN_VERSION_NUM"]--> - http://www.dev-postnuke.com">
<meta name="rating" content="General">
<meta name="KEYWORDS" content="<!--[keywords]-->">
<title><!--[title]--></title>
<link rel="StyleSheet" href="<!--[$themepath]-->/style/styleNN.css" type="text/css">
<link rel="icon" href="<!--[$imagepath]-->/icon.png" type="image/png">
<link rel="shortcut icon" href="<!--[$imagepath]-->/favicon.ico">
<style type="text/css">
@import url("<!--[$themepath]-->/style/style.css");
</style>
<!--[additional_header]-->
<!--[modulestylesheet]-->
</head>
<body bgcolor="<!--[$bgcolor]-->" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<!-- CABECERA -->
<!-- LOGO -->
<table cellpadding="0" cellspacing="0" width="<!--[$pagewidth]-->" border="0" bgcolor="<!--[$bgcolor]-->">
<tr>
<td bgcolor="<!--[$background]-->" align="center"><a href="index.php"><!--[pnimg src="logo.gif" alt="Freebetguide.com"]--></a></td>
<td style="width:474px;background-image:url('<!--[$imagepath]-->/BannerContentBG.png');" valign="top"><!--[pnbannerdisplay id="5"]-->
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="<!--[$pagewidth]-->" border="0" align="center" bgcolor="<!--[$bgcolor]-->">
<tr valign="middle" bgcolor="<!--[$bgcolor]-->">
<td width="150" height="30" align="left" background="<!--[$imagepath]-->/Buttonleiste/leilinks_2.jpg" nowrap>
<font class="content" color="#F5F5F5"><!--[bienvenido]--></font>
</td>
<td valign="top" width="19" height="30" background="<!--[$imagepath]-->/Buttonleiste/leilinks_3.jpg" nowrap></td>
<td valign="top" width="13" height="30" background="<!--[$imagepath]-->/Buttonleiste/leiteiler_4.jpg" nowrap></td>
<td valign="top" width="23" height="30" background="<!--[$imagepath]-->/Buttonleiste/lei.jpg" nowrap></td>
<td valign="middle" align="center" height="30" background="<!--[$imagepath]-->/Buttonleiste/lei.jpg">
<A href="<!--[pnml name="_LINK1"]-->"><!--[pnimg src="home.png"]--></a>
<A href="<!--[pnml name="_LINK2"]-->"><!--[pnimg src="download.gif"]--></a>
<A href="<!--[pnml name="_LINK3"]-->"><!--[pnimg src="forum.gif"]--></a>
<A href="<!--[pnml name="_LINK4"]-->"><!--[pnimg src="chat.gif"]--></a>
<A href="<!--[pnml name="_LINK5"]-->"><!--[pnimg src="links.gif"]--></a>
</td>
<td align="left" valign="top" width="23" height="30" background="<!--[$imagepath]-->/Buttonleiste/lei.jpg"></td>
<td align="left" valign="top" width="10" height="30" background="<!--[$imagepath]-->/Buttonleiste/lei.jpg"></td>
<td align="left" valign="top" width="23" height="30"><img src="<!--[$imagepath]-->/Buttonleiste/taskright_1.jpg"></td>
<td align="middle" width="140" height="30" background="<!--[$imagepath]-->/Buttonleiste/taskright_2.jpg">
<font class="content"><!--[datetime]--></font>
</td>
<td bgcolor="#F5F5F5" background="<!--[$imagepath]-->/Buttonleiste/taskright_2.jpg" width="1" height="30"></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="<!--[$pagewidth]-->" border="0" bgcolor="#E9E8EE">
<tr>
<td align="left" valign="top" width="185" height="14" bgcolor="#858DA5"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="17" height="14" background="<!--[$imagepath]-->/leiste/leiste_1.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" height="15" bgcolor="<!--[$bgcolor]-->"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="14" height="14" bgcolor="<!--[$bgcolor]-->" <img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="185" height="14" bgcolor="<!--[$bgcolor]-->"><img src="<!--[$imagepath]-->/pixel.gif"></td>
</tr>
</table>
<!-- BLOQUES DERECHO - CENTRAL - IZQUIERDO -->
<table width="<!--[$pagewidth]-->" cellpadding="0" cellspacing="0" border="0" bgcolor="<!--[$bgcolor]-->" align="center">
<tr valign="top">
<td bgcolor="#858DA5"><img src="<!--[$imagepath]-->/pixel.gif" width="5" height="1" border="0" alt=""></td>
<td valign="top" bgcolor="#858DA5" width="<!--[$lcolwidth]-->" background="<!--[$imagepath]-->/block_left/back.jpg">
<!-- Left Block Start -->
<!--[$leftblocks]-->
<!--[theme]-->
<!-- Left Block end -->
</td>
<td bgcolor="#858DA5"><img src="<!--[$imagepath]-->/pixel.gif" width="5" height="1" border="0" alt=""></td>
<td bgcolor="#E9E8EE" background="<!--[$imagepath]-->/leiste/leiste_2.gif"><img src="<!--[$imagepath]-->/pixel.gif" width="17" height="1" border="0" alt=""></td>
<td bgcolor="<!--[$bgcolor]-->"><img src="<!--[$imagepath]-->/pixel.gif" width="5" height="1" border="0" alt=""></td>
<td valign="top" align="middle" width="100%">
<!-- Content Start -->
<!--[$maincontent]-->
<!-- Content end -->
</td>
<td background="<!--[$imagepath]-->/block-right/side.gif"><img src="<!--[$imagepath]-->/pixel.gif" width="15" height="1" border="0" alt=""></td>
</tr>
</table>
<!-- FIN DE BLOQUES -->
<!-- PIE DE PAGINA -->
<table cellpadding="0" cellspacing="0" width="<!--[$pagewidth]-->" border="0" bgcolor="<!--[$bgcolor]-->">
<tr>
<td align="left" valign="top" width="185" height="14" bgcolor="#858DA5" background="<!--[$imagepath]-->/leiste/leiste_8.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="17\" height="14" background="<!--[$imagepath]-->/leiste/leiste_7.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" height="15\" bgcolor="<!--[$bgcolor]-->" background="<!--[$imagepath]-->/leiste/leiste_8.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="14\" height="14" bgcolor="<!--[$bgcolor]-->" background="<!--[$imagepath]-->/leiste/leiste_8.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="185\" height="14" bgcolor="<!--[$bgcolor]-->" background="<!--[$imagepath]-->/leiste/leiste_8.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
</tr>
</table>
<div style="text-align:center;" class="pn-sub">
<!--[footmsg]-->
<br /><br />
<!--[nocache]--><!--[pagerendertime]--><!--[/nocache]--><!--[typetoolv80]-->
</div>
</body>
</html>
Home:
Code
<!DOCTYPE HTML public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="<!--[lang]-->">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--[charset]-->">
<meta name="DESCRIPTION" content="Free Bet Guide, Online Bookmakers Free Bets, Gaming Cash, Casino Bonuses & Online Poker Rooms. Free Forums, Bookmaker Reviews and Lots More. Register FREE Today!">
<meta name="ROBOTS" content="INDEX,FOLLOW">
<meta name="resource-type" content="document">
<meta http-equiv="expires" content="0">
<meta name="author" content="FreeBetGuide.com">
<meta name="copyright" content="Copyright (c) 2006 by FreeBetGuide.com">
<meta name="revisit-after" content="1 days">
<meta name="distribution" content="Global">
<meta name="generator" content="PostNuke <!--[pnml name="_PN_VERSION_NUM"]--> - http://www.dev-postnuke.com">
<meta name="rating" content="General">
<meta name="KEYWORDS" content="<!--[keywords]-->">
<title><!--[title]--></title>
<link rel="StyleSheet" href="<!--[$themepath]-->/style/styleNN.css" type="text/css">
<link rel="icon" href="<!--[$imagepath]-->/icon.png" type="image/png">
<link rel="shortcut icon" href="<!--[$imagepath]-->/favicon.ico">
<style type="text/css">
@import url("<!--[$themepath]-->/style/style.css");
</style>
<!--[additional_header]-->
<!--[modulestylesheet]-->
</head>
<body bgcolor="<!--[$bgcolor]-->" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<!-- CABECERA -->
<!-- LOGO -->
<table cellpadding="0" cellspacing="0" width="<!--[$pagewidth]-->" border="0" bgcolor="<!--[$bgcolor]-->">
<tr>
<td bgcolor="<!--[$background]-->" align="center"><a href="index.php"><!--[pnimg src="logo.gif" alt="FreeBetGuide.com"]--></a></td>
<td style="width:474px;background-image:url('<!--[$imagepath]-->/BannerContentBG.png');" valign="top"><!--[pnbannerdisplay id="5"]-->
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="<!--[$pagewidth]-->" border="0" align="center" bgcolor="<!--[$bgcolor]-->">
<tr valign="middle" bgcolor="<!--[$bgcolor]-->">
<td width="150" height="30" align="left" background="<!--[$imagepath]-->/Buttonleiste/leilinks_2.jpg" nowrap><!--[bienvenido]--></td>
<td valign="top" width="19" height="30" background="<!--[$imagepath]-->/Buttonleiste/leilinks_3.jpg" nowrap></td>
<td valign="top" width="13" height="30" background="<!--[$imagepath]-->/Buttonleiste/leiteiler_4.jpg" nowrap></td>
<td valign="top" width="23" height="30" background="<!--[$imagepath]-->/Buttonleiste/lei.jpg" nowrap></td>
<td valign="middle" align="center" height="30" background="<!--[$imagepath]-->/Buttonleiste/lei.jpg">
<A href="<!--[pnml name="_LINK1"]-->"><!--[pnimg src="home.png"]--></a>
<A href="<!--[pnml name="_LINK2"]-->"><!--[pnimg src="download.gif"]--></a>
<A href="<!--[pnml name="_LINK3"]-->"><!--[pnimg src="forum.gif"]--></a>
<A href="<!--[pnml name="_LINK4"]-->"><!--[pnimg src="chat.gif"]--></a>
<A href="<!--[pnml name="_LINK5"]-->"><!--[pnimg src="links.gif"]--></a>
</td>
<td align="left" valign="top" width="23" height="30" background="<!--[$imagepath]-->/Buttonleiste/lei.jpg"></td>
<td align="left" valign="top" width="10" height="30" background="<!--[$imagepath]-->/Buttonleiste/lei.jpg"></td>
<td align="left" valign="top" width="23" height="30"><img src="<!--[$imagepath]-->/Buttonleiste/taskright_1.jpg"></td>
<td align="middle" width="140" height="30" background="<!--[$imagepath]-->/Buttonleiste/taskright_2.jpg" class="pn-normal"><!--[datetime]--></td>
<td bgcolor="#F5F5F5" background="<!--[$imagepath]-->/Buttonleiste/taskright_2.jpg" width="1" height="30"></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="<!--[$pagewidth]-->" border="0" bgcolor="#E9E8EE">
<tr>
<td align="left" valign="top" width="185" height="14" bgcolor="#858DA5"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="17" height="14" background="<!--[$imagepath]-->/leiste/leiste_1.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" height="15" bgcolor="<!--[$bgcolor]-->"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="14" height="14" bgcolor="<!--[$bgcolor]-->" <img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="185" height="14" bgcolor="<!--[$bgcolor]-->"><img src="<!--[$imagepath]-->/pixel.gif"></td>
</tr>
</table>
<!-- BLOQUES DERECHO - CENTRAL - IZQUIERDO -->
<table width="<!--[$pagewidth]-->" cellpadding="0" cellspacing="0" border="0" bgcolor="<!--[$bgcolor]-->" align="center">
<tr valign="top">
<td bgcolor="#858DA5"><img src="<!--[$imagepath]-->/pixel.gif" width="5" height="1" border="0" alt=""></td>
<td valign="top" bgcolor="#858DA5" width="<!--[$lcolwidth]-->" background="<!--[$imagepath]-->/block_left/back.jpg">
<!-- Left Block Start -->
<!--[$leftblocks]-->
<!--[theme]-->
<!-- Left Block end -->
</td>
<td bgcolor="#858DA5"><img src="<!--[$imagepath]-->/pixel.gif" width="5" height="1" border="0" alt=""></td>
<td bgcolor="#E9E8EE" background="<!--[$imagepath]-->/leiste/leiste_2.gif"><img src="<!--[$imagepath]-->/pixel.gif" width="17" height="1" border="0" alt=""></td>
<td bgcolor="<!--[$bgcolor]-->"><img src="<!--[$imagepath]-->/pixel.gif" width="5" height="1" border="0" alt=""></td>
<td valign="top" align="middle" width="100%">
<!-- Content Start -->
<!--[$centerblocks]-->
<!--[$maincontent]-->
<!-- Content end -->
</td>
<td background="<!--[$imagepath]-->/block-right/side.gif"><img src="<!--[$imagepath]-->/pixel.gif" width="15" height="1" border="0" alt=""></td>
<td valign="top" width="<!--[$rcolwidth]-->">
<!-- Right Block Start -->
<!--[$rightblocks]-->
<!-- Right Block end -->
</td>
</tr>
</table>
<!-- FIN DE BLOQUES -->
<!-- PIE DE PAGINA -->
<table cellpadding="0" cellspacing="0" width="<!--[$pagewidth]-->" border="0" bgcolor="<!--[$bgcolor]-->">
<tr>
<td align="left" valign="top" width="185" height="14" bgcolor="#858DA5" background="<!--[$imagepath]-->/leiste/leiste_8.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="17\" height="14" background="<!--[$imagepath]-->/leiste/leiste_7.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" height="15\" bgcolor="<!--[$bgcolor]-->" background="<!--[$imagepath]-->/leiste/leiste_8.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="14\" height="14" bgcolor="<!--[$bgcolor]-->" background="<!--[$imagepath]-->/leiste/leiste_8.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
<td align="left" valign="top" width="185\" height="14" bgcolor="<!--[$bgcolor]-->" background="<!--[$imagepath]-->/leiste/leiste_8.gif"><img src="<!--[$imagepath]-->/pixel.gif"></td>
</tr>
</table>
<div style="text-align:center;" class="pn-sub">
<!--[footmsg]-->
<br /><br />
<!--[nocache]--><!--[pagerendertime]--><!--[/nocache]--><!--[typetoolv80]-->
</div>
</body>
</html> -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Nov 20, 2007
- Posts: 96
I'm not sure these are involved... I think it must have something to do with an incorrect image path somewhere.. maybe from within books module the code is "module/" and "images/" but from within the home page its "module" and "/images" so when I load books as home page, the two meet and I get module//images ??
Shot in the dark - but sounds possible.
books help forum is dead too :( -
- Rank: Helper
- Registered: Jan 29, 2004
- Last visit: Oct 21, 2009
- Posts: 852
Yeah the extra slash is preventing the images from showing. Don't know what's causing it though :? -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Nov 20, 2007
- Posts: 96
Spotted this in theme.php
Code
This would suggest the //
tried:
Code
and:
Code
But neither work.
Feel like i'm getting closer though!!!! -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Nov 20, 2007
- Posts: 96
Right... in bk navigation.php
Code
/**
* index
* Display the main books categories
*/
function index($bkid, $highlight)
{
$dbconn =& pnDBGetConn(true);
pnModDBInfoLoad('books');
$pntable =& pnDBGetTables();
$bookstable = $pntable['books_books'];
$categoriestable = $pntable['books_categories'];
$subcategoriestable = $pntable['books_subcategories'];
$urlinsfunc=pnModGetVar('books','urlinsfunc');
$imagesdir=pnModGetVar('books','imagesdir');
$booksdir=pnModGetVar('books','booksdir');
$emptyimage=pnModGetVar('books','emptyimage');
$tablecolor=pnModGetVar('books','tablecolor');
$barcolor=pnModGetVar('books','barcolor');
$showsubcat=pnModGetVar('books','showsubcat');
$books_showed=pnModGetVar('books','books_showed');
$showlastbooks=pnModGetVar('books','showlastbooks');
include("header.php");
//This routine may be called with a bkid from
//admin.php to show a user's book view
if (isset($bkid)) {
menu(1);
OpenTable();
showbook($bkid, $highlight);
if ($highlight=='') {
$urlret = "modules.php?op=modload&name=books&file=index&bkid=$bkid";
} else {
$urlret = "modules.php?op=modload&name=books&file=index&bkid=$bkid&highlight=$highlight";
}
echo pnModCallHooks('item', 'display', $bkid, $urlret);
CloseTable();
include 'footer.php';
} else {
$mainlink = 0;
if (!pnSecAuthAction(0, 'books::', '::', ACCESS_READ)) {
echo _BOOKSNOAUTH;
include 'footer.php';
exit;
}
$catcolumn = &$pntable['books_categories_column'];
$result =& $dbconn->Execute("select $catcolumn[cid], $catcolumn[title], $catcolumn[cdescription]
from $categoriestable
ORDER BY $catcolumn[title]");
$numcats = $result->PO_RecordCount();
if ($numcats == 0) {
echo _NOCATEGORIES;
include 'footer.php';
} else {
menu($mainlink);
OpenTable();
echo "<div style=\"text-align:center\"><span class=\"pn-title\">"._BOOKSMAINCAT."</span></div><br />";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"30\" cellpadding=\"0\" align=\"center\">
<tr>
<td valign=\"top\" width=\"50%\">";
echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"0\" width=\"98%\" summary=\""._BOOKSMAINCAT."\">";
$count = 0;
while(list($cid, $title, $cdescription) = $result->fields)
{
$result->MoveNext();
/* Hide this books category if have no access to it */
if (!pnSecAuthAction(0, 'books::Category', "$title::$cid", ACCESS_READ)) {
continue;
}
if ($count == 0) {
// we need to start a row
echo "<tr>";
}
$count++;
$cnumrows = countsubbooks($cid);
echo "<td valign=\"top\" style=\"width:50%\">"
."<span class=\"pn-normal\">"
."<img src=\"modules/".pnVarPrepForOS($GLOBALS['name'])."/images/cat.gif\" height=\"13\" width=\"15\" alt=\"" . pnVarPrepForDisplay($title) . "\" /> "
."<a class=\"pn-title\" href=\"".$GLOBALS['modurl']."&req=view_cat&cid=$cid\">".pnVarPrepForDisplay($title)."</a>"
." ($cnumrows)";
categorynewbookgraphic($cid);
echo "</span>";
echo "<br />";
if ($cdescription) {
echo "<span class=\"pn-normal\">".pnVarPrepHTMLDisplay($cdescription)."</span><br />";
}
if (pnModGetVar('books','showsubcat')) {
$subcatcolumn = &$pntable['books_subcategories_column'];
$result2 =& $dbconn->Execute("SELECT $subcatcolumn[sid], $subcatcolumn[title] FROM $subcategoriestable WHERE $subcatcolumn[cid]='".pnVarPrepForStore($cid)."' ORDER BY $subcatcolumn[title]");
while(list($sid, $stitle) = $result2->fields) {
$result2->MoveNext();
if (!pnSecAuthAction(0, 'books::SubCategory', "$stitle::$sid", ACCESS_READ)) {
continue;
}
$bookcolumn = &$pntable['books_books_column'];
$sql = "SELECT $bookcolumn[bkid] from $bookstable where $bookcolumn[sid]=" . (int)pnVarPrepForStore($sid);
$result3 =& $dbconn->Execute($sql);
$snumrows = $result3->PO_RecordCount();
$result3->Close();
echo "<span class=\"pn-normal\"> --- "
."<img src=\"modules/".pnVarPrepForOS($GLOBALS['name'])."/images/pixel.gif\" height=\"13\" width=\"15\" alt=\"".pnVarPrepForDisplay($stitle)."\" /> "
."<a class=\"pn-normal\" href=\"".$GLOBALS['modurl']."&req=view_subcat&sid=$sid\">".pnVarPrepForDisplay($stitle)."</a> ($snumrows)"
."</span>";
subcategorynewbookgraphic($sid);
echo "<br />";
}
$result2->Close();
}
if ($count==1) {
// next table cell
echo "</td>";
}
if ($count==2) {
// two entries, start the next table row
echo "</td></tr>";
$count = 0;
}
} //While
$result->Close();
if ($count == 1) {
// we need
echo "<td> </td></tr>";
}
echo "</table>";
if ($showlastbooks == 1) {
echo "<td>";
echo "<table width=\"140\" border=\"0\" cellspacing=\"5\" cellpadding=\"1\" align=\"center\">
<tr>
<td valign=\"top\" align=\"left\" height=\"15\" colspan=\"2\">
<table cellspacing=\"0\" cellpadding=\"1\" width=\"140\" border=\"0\">
<tr>";
if ($books_showed == 1) {
echo "<td align=\"left\"><img src=\"modules/".pnVarPrepForOS($GLOBALS['name'])."/images/cat.gif\" align=\"middle\" border=\"0\" alt=\"\"> <span class=\"pn-title\">"._MOSTRECENTBOOK."</span></td>";
} else {
echo "<td align=\"left\"><img src=\"modules/".pnVarPrepForOS($GLOBALS['name'])."/images/cat.gif\" align=\"middle\" border=\"0\" alt=\"\"><span class=\"pn-title\"> $books_showed "._LASTBOOKS."</span></td>";
}
echo "</tr>
</table>
</td>
</tr>
<tr>
<td align=\"center\" bgcolor=\"$barcolor\" colspan=\"2\"><img src=\"modules/".pnVarPrepForOS($GLOBALS['name'])."/images/pixel.gif\" align=\"middle\" border=\"0\" width=\"1\" height=\"1\" alt=\"\"></td>
</tr>";
$a = 1;
$result =& $dbconn->Execute("select bkid, title, cover from $bookstable $catselect $subcatselect order by date DESC limit 0,$books_showed");
while(list($id, $title, $cover) = $result->fields) {
$title2 = ereg_replace("_", " ", $title);
if(strlen($title2) > 50) { // Limit title length to avoid wrap
$title2= strip_tags($title2, '<a><i><b><ul><li>');
$title2 = substr($title2,0,50);
$title2 .= "...";
}
if ($cover == "") {
$coverimg = $imagesdir.'/'.$emptyimage;
} else {
if (stristr($cover, "http")) {
$coverimg = $cover;
} else {
$coverimg = $booksdir.'/'.$cover;
}
}
$content .= "<tr valign=\"top\"><td width=\"5\"></td>
<td bgcolor=\"$tablecolor\" align=\"center\" valign=\"top\" width=\"130\"><a href=\"".$GLOBALS['modurl']."&bkid=$id\"><img src=\"$coverimg\" border=\"0\" align=\"middle\" alt=\"book cover\"></a></td></tr>
<tr><td bgcolor=\"$tablecolor\" width=\"5\"><img src=\"modules/".pnVarPrepForOS($GLOBALS['name'])."/images/middot.gif\" align=\"middle\" border=\"0\" alt=\"\"></td>
<td bgcolor=\"$tablecolor\" align=\"center\" valign=\"top\" width=\"130\"><a class=\"pn-title\" href=\"".$GLOBALS['modurl']."&bkid=$id\">$title2</a></td></tr><tr><td></td></tr>";
$a++;
$result->MoveNext();
}
$result->Close();
echo "$content";
echo "</table></td>";
} //end if showlastbooks
echo "</tr></table>";
$result =& $dbconn->Execute("SELECT COUNT(*) FROM $bookstable");
list($numrows) = $result->fields;
$result->Close();
$result =& $dbconn->Execute("SELECT COUNT(*) FROM $categoriestable");
list($catnum1) = $result->fields;
$result->Close();
$result =& $dbconn->Execute("SELECT COUNT(*) FROM $subcategoriestable");
list($catnum2) = $result->fields;
$result->Close();
$catnum = $catnum1 + $catnum2;
if ($numrows == 1) {
echo "<br /><br /><div style=\"text-align:center\"><span class=\"pn-sub\">"._THEREIS." <strong>$numrows</strong> "._BOOK." ";
} else {
echo "<br /><br /><div style=\"text-align:center\"><span class=\"pn-sub\">"._THEREARE." <strong>$numrows</strong> "._BOOKS." ";
}
if ($catnum == 1) {
echo ""._AND." <strong>$catnum</strong> "._CATEGORY." "._INDB."</span></div>";
} else {
echo ""._AND." <strong>$catnum</strong> "._CATEGORIES." "._INDB."</span></div>";
}
CloseTable();
include("footer.php");
}
}
}
/**
* menu
* builds the standard navigation menu
* @param mainlink integer switch. 1 means show _BOOKSMAIN, 0 not.
*/
function menu($mainlink) {
$query = pnVarCleanFromInput('query');
OpenTable();
//patch [ #471 ] Web Module Fix Wil Schultz (xwil)
echo "<div style=\"text-align:center\"><a class=\"pn-title\" href=\"".$GLOBALS['modurl']."\">".pnConfigGetVar('sitename').' -- '._BOOKPAGETITLE."</a><br /><br />";
//echo "<div style=\"text-align:center\"><a class=\"pn-normal\" href=\"".$GLOBALS['modurl']."\">"._LINKPAGETITLE."</a><br />";
echo "<form action=\"".$GLOBALS['modurl']."&req=search\" method=\"post\"><div>"
."<span class=\"pn-normal\"><label for=\"query\">"._BOOKS."</label>"
." <input type=\"text\" size=\"25\" name=\"query\" id=\"query\" tabindex=\"0\"/>"
." <input type=\"submit\" value=\""._SEARCH."\" />"
."</span>"
."</div>"
."</form>";
echo "<span class=\"pn-normal\">[ ";
if ($mainlink>0) {
echo "<a class=\"pn-normal\" href=\"".$GLOBALS['modurl']."\">"._BOOKSMAIN."</a> | ";
}
if (pnSecAuthAction(0, 'books::Category', '::', ACCESS_COMMENT) || pnConfigGetVar('books_anonaddbooklock')) {
echo "<a class=\"pn-normal\" href=\"".$GLOBALS['modurl']."&req=add_book_form\">"._ADDBOOK."</a> | ";
}
echo " <a class=\"pn-normal\" href=\"".$GLOBALS['modurl']."&req=new_books\">"._NEWBOOKS."</a>"
." | <a class=\"pn-normal\" href=\"".$GLOBALS['modurl']."&req=most_popular\">"._POPULAR."</a>"
." | <a class=\"pn-normal\" href=\"".$GLOBALS['modurl']."&req=top_rated\">"._TOPRATED."</a>"
." | <a class=\"pn-normal\" href=\"".$GLOBALS['modurl']."&req=random_book\">"._RANDOM."</a> ]"
."</span></div>";
CloseTable();
echo "<br />";
}
?>
I have replaced
Code
."<img src=\"modules/".pnVarPrepForOS($GLOBALS['name'])."/images
With
Code
."<img src=\"modules/books/images
This has made the arrow icons reappear (cat.gif). It has NOT however, helped with the "NEW" icons.
I assume it is something to do withCode
categorynewbookgraphic($cid);
But dont know which bit to hard code.
I have searched all the other book files for any reference to newgreen.gif but no luck!!
HELPPPPPPP! -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Nov 20, 2007
- Posts: 96
YESSSSSS!!!!!!!!
Found categorynewbookgraphic($cid); within bk-util.php and now its showing.
Just need to tweek the layout a bit and find out how to get Google to recognise it. -
- Rank: Helper
- Registered: Jan 12, 2004
- Last visit: Jan 20, 2010
- Posts: 590
Hello,
Assuming you are running the last version of the books module (as available from the sourceforge books home page http://sourceforge.n…ojects/pn-mod-books, but in fact the version you can download in the CVS from the same page is even newer with some cool features as the fact that list and detail view use a pnrender template easily customizable) I don't see [b]at all/b] why you have such problems because books is compatible with PN .750, Xanthia themes and short urls (Xanthia ones, I didn't test AutoTheme's short urls)
I understand you need to have this module up and running but in my opinion, starting to modify file hadcoding urls without first understanding the problem is not the way to go. I still intend to release new versions of the books module, and you will need to redo your changes again. Did you try an official Xanthia theme (one of those included in PostNuke) ? I am nearly sure your problem are in fact not caused by the module but by your theme.
See the books module working unmodified with PN .761, Xanthia theme, and short urls here on my website : http://www.vedrine.net all the pages have been indexed by Google !!
Anyway, re-thinking to it, you can try to replace each occurence of:
Code
modules/".pnVarPrepForOS($GLOBALS['name'])
with:
Code
modules/".$GLOBALS['ModName']
because maybe it will work better for you (but I fail to see why, and the way I originally coded it should work for everybody !).
--
Visit my live reef aquarium.
My Amazon wish list. -
- Rank: Helper
- Registered: Jan 12, 2004
- Last visit: Jan 20, 2010
- Posts: 590
I apologize, because I had'nt understood that you were using books as a start module. In fact there is a problem with using $GLOBALS['name'] in that particular case, and you need to use $GLOBALS['ModName'].
I will change the code in books CVS and it will be corrected in the next release.
Thanks for reporting the problem. Sorry for answering too fast without reading carefully your message
--
Visit my live reef aquarium.
My Amazon wish list.
- Moderated by:
- Support
Users on-line
This list is based on users active over the last 60 minutes.
