Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.
function configure_mod_rewrite($enable = false) {
$cfg = "";
$placeholder_start = "# BEGIN Plogger";
$placeholder_end = "# END Plogger";
$thisfile = "/admin/" . basename(__FILE__);
$adm = strpos($_SERVER["PHP_SELF"],"/admin");
$rewritebase = substr($_SERVER["PHP_SELF"],0,$adm);
if ($enable) {
$cfg .= "\n";
if (empty($rewritebase))
{
$rewritebase = "/";
};
$cfg .= "<IfModule mod_rewrite.c>\n";
$cfg .= "RewriteEngine on\n";
$cfg .= "RewriteBase $rewritebase\n";
$cfg .= "RewriteCond %{REQUEST_FILENAME} -d [OR]\n";
$cfg .= "RewriteCond %{REQUEST_FILENAME} -f\n";
$cfg .= "RewriteRule ^.*$ - [S=2]\n";
$cfg .= "RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]\n";
$cfg .= "RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]\n";
$cfg .= "</IfModule>\n";
}; $cfg .= "RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]\n"; $cfg .= "RewriteRule ^.*$ pictures2.php?path=%{REQUEST_URI} [L]\n";<link href="style.css" rel="stylesheet" type="text/css" />and you should change it to:<link href="http://www.realtruthtv.com/style.css" rel="stylesheet" type="text/css" />or even:<link href="/style.css" rel="stylesheet" type="text/css" />should work.Posted By: kvnkvn1. When I click on collections, it takes me to my home page.
function generate_breadcrumb(){
global $config;
$id = $GLOBALS["plogger_id"];
switch ($GLOBALS['plogger_level']) {
case 'collection':
$row = get_collection_by_id($id);
$breadcrumbs = ' <a accesskey="/" href="'.$config["baseurl"].'">' . plog_tr('Collections') . '</a> » <b>' . SmartStripSlashes($row["name"]) . '</b>';
if ($GLOBALS['plogger_mode'] == "slideshow") $breadcrumbs .= ' » ' . plog_tr('Slideshow');
break;try changing: $breadcrumbs = ' <a accesskey="/" href="'.$config["baseurl"].'">' . plog_tr('Collections') . '</a> » <b>' . SmartStripSlashes($row["name"]) . '</b>';to: $breadcrumbs = ' <a accesskey="/" href="'.$_SERVER['PHP_SELF'].'">' . plog_tr('Collections') . '</a> » <b>' . SmartStripSlashes($row["name"]) . '</b>';That should take care of that.Posted By: kvnkvn2. Notice the top bannerIn your 'pictures2.php' file, change:
-- level 1 collections still there
-- level 2 still there
-- level 3 disappears
-- level 4 disappears
<img src="images/banners/EHR%20Banner%20Fox%20Sports%20720%2090.jpg" width="728" height="90" />to:<img src="/images/banners/EHR%20Banner%20Fox%20Sports%20720%2090.jpg" width="728" height="90" />or:<img src="http://www.realtruthtv.com/images/banners/EHR%20Banner%20Fox%20Sports%20720%2090.jpg" width="728" height="90" />#2 is knocked out!Posted By: kvnkvn3. Seach function is not working correctly, it also takes me to my home page.Again in 'plog-functions.php' find the function, generate_search_box:
function generate_search_box(){
global $config;
$output = '
<form action="'.$config["baseurl"].'" method="get">
<div>
<input type="hidden" name="level" value="search" />
<input type="text" name="searchterms" />
<input class="submit" type="submit" value="' . plog_tr('Search') .'" />
</div>
</form>';
return $output;
}try changing: <form action="'.$config["baseurl"].'" method="get">to: <form action="'.$_SERVER['PHP_SELF'].'" method="get">Boom, that should do it!
Posted By: kvnkvnBye - Gully, I see the light at the end of the tunnel.bleh, I forgot to mention the other cases. In 'plog-functions.php' under generate_breadcrumbs:
1. Kinda Worked
case 'album':
$row = get_album_by_id($id);
$album_name = SmartStripSlashes($row["name"]);
$album_link = generate_url("album",$row["id"]);
$row = get_collection_by_id($row["parent_id"]);
$collection_link = '<a accesskey="/" href="' . generate_url("collection",$row["id"]) . '">' . $row["name"] . '</a>';
if ($GLOBALS['plogger_mode'] == "slideshow") {
$breadcrumbs = ' <a href="'.$config["baseurl"].'">' . plog_tr('Collections') . '</a> » ' . $collection_link . ' » ' . '<a href="'.$album_link.'">'.$album_name.'</a> » ' . ' <b>' . plog_tr('Slideshow') . '</b>';
} else {
$breadcrumbs = ' <a href="'.$config["baseurl"].'">' . plog_tr('Collections') . '</a> » ' . $collection_link . ' » ' . '<b>'.$album_name.'</b>';
}
break;change both locations of: $breadcrumbs = ' <a href="'.$config["baseurl"].'">[. . .]to: $breadcrumbs = ' <a href="'.$_SERVER['PHP_SELF'].'">[. . .]case 'picture':
$row = get_picture_by_id($id);
$picture_name = get_caption_filename($row);
$row = get_album_by_id($row["parent_album"]);
$album_link = '<a accesskey="/" href="' . generate_url("album",$row["id"]) . '">' . SmartStripSlashes($row["name"]) . '</a>';
$row = get_collection_by_id($row["parent_id"]);
$collection_link = ' <a href="'.$config["baseurl"].'">' . plog_tr('Collections') . '</a> ' . ' » ' . '<a href="' . generate_url("collection",$row["id"]) . '">' . SmartStripSlashes($row["name"]) . '</a>';
$breadcrumbs = $collection_link . ' » ' . $album_link . ' » ' . '<span id="image_name"><b>' . $picture_name.'</b></span>';
if ($GLOBALS['plogger_mode'] == "slideshow") $breadcrumbs .= ' » ' . plog_tr('Slideshow');
break;change: $collection_link = ' <a href="'.$config["baseurl"].'">' . plog_tr('Collections') . '</a> ' . ' » ' . '<a href="' . generate_url("collection",$row["id"]) . '">' . SmartStripSlashes($row["name"]) . '</a>';to: $collection_link = ' <a href="'.$_SERVER['PHP_SELF'].'">' . plog_tr('Collections') . '</a> ' . ' » ' . '<a href="' . generate_url("collection",$row["id"]) . '">' . SmartStripSlashes($row["name"]) . '</a>';
if ($GLOBALS['plogger_mode'] == "slideshow") {
$breadcrumbs = ' <a href="'.$_SERVER['PHP_SELF'].'">' . plog_tr('Collections') . '</a> » ' . $collection_link . ' » ' . '<a href="'.$album_link.'">'.$album_name.'</a> » ' . ' <b>' . plog_tr('Slideshow') . '</b>';
} else {
$breadcrumbs = ' <a href="'.$_SERVER['PHP_SELF'].'">' . plog_tr('Collections') . '</a> » ' . $collection_link . ' » ' . '<b>'.$album_name.'</b>';
}<p align="right"><a href="/index.html" class="footer">Home</a></p>
[. . .]
<tr>
<td class="buttonp"><a href="/video.htm" class="button">Video Area</a></td>
</tr>
<tr>
<td class="buttonp" style="padding-top:15px;"><a href="/pictures.htm" class="button">Picture Area</a></td>
</tr>
<tr>
<td class="buttonp" style="padding-top:17px;"><a href="/inthecommunity.htm" class="button">In The Community</a></td>
</tr>
<tr>
<td class="buttonp" style="padding-top:19px;"><a href="/businessspotlight.htm" class="button">Business Spotlight </a></td>
</tr>
<tr>
<td class="buttonp" style="padding-top:19px;"><a href="/about.htm" class="button">About The Site</a></td>
</tr>
<tr>
<td class="buttonp" style="padding-top:16px;"><a href="/contact.htm" class="button">Contact us </a></td>
</tr>
<tr>
<td class="buttonp" style="padding-top:17px;"><a href="/advertise.htm" class="button">Advertise With Us</a></td>
</tr><p><a href="/index.html" class="footer">Home</a> | <a href="/video.htm" class="footer">Video
Area</a> | <a href="/pictures.htm" class="footer">Picture Area</a>
| <a href="/inthecommunity.htm" class="footer">In The Community</a>
| <a href="/businessspotlight.htm" class="footer">Business Spotlight</a>
| <a href="/about.htm" class="footer">About The Site</a> | <a href="/contact.htm" class="footer">Contact
Us</a> | <a href="/advertise.htm" class="footer">Advertise With Us</a>
</p>
1 to 22 of 22