Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Posted By: PieperLyhow can i modify the breadcrumb on picture.php from picture-description to picture-name?Open 'plog-content/plog-functions.php' and edit the code in generate_breadcrumb() (should be about line 55):
$picture_name = '<span id="image_name"><strong>' . SmartStripSlashes(get_caption_filename($row)) . '</strong></span>';
$picture_name = '<span id="image_name"><strong>' . SmartStripSlashes(basename($row['path'])) . '</strong></span>';
Posted By: PieperLy....you mean...basename instead basenemeYep, I have fumbly fongers today :P
<?php plogger_require_captcha(); ?>
<?php plogger_require_captcha(); ?>
<p>
<img src="'.$config["gallery_url"].'plog-captcha.php" alt="CAPTCHA Image" id="captcha-image" />
</p>
<p>
<input type="text" name="captcha" id="captcha" value="" size="28" tabindex="3" />
<label for="url">' . plog_tr('What does this say') . '?</label>
</p>
<?php plogger_require_captcha(); ?>
<p>
<img src="<?php echo $config["gallery_url"].'plog-includes/plog-captcha.php'; ?>" alt="CAPTCHA Image" id="captcha-image" />
</p>
<p>
<input type="text" name="captcha" id="captcha" value="" size="28" tabindex="3" />
<label for="url"><?php echo plog_tr('Gib hier die Zeichen aus dem kleinen Bild obendrüber ein.'); ?></label>
first get all the neccessary variables
if (check_url($_POST["url"]) == "http"){
$url = $_POST["url"];// }
else if (check_url($_POST["url"]) == "nohttp"){
$url = "http://".$_POST["url"];
}
else{// $url = "";
}
don't work...<?php
// this is our comment script, it simply writes the comment information
// to our database and links it to the picture using the pictures id
if (basename($_SERVER['PHP_SELF']) == basename( __FILE__ )) {
// ignorance is bliss
exit();
}
// Loosly validate url string format without actually checking the link (cause that takes time)
function check_url($url) {
if (preg_match('#^http\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $url)) {
return "http";
}
else if (preg_match('#^[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $url)) {
return "nohttp";
}
else {
return "badurl";
}
}
// first get all the neccessary variables
// if (check_url($_POST["url"]) == "http"){
// $url = $_POST["url"];
// }
// else if (check_url($_POST["url"]) == "nohttp"){
// $url = "http://".$_POST["url"];
// }
// else{
// $url = "";
// }
$parent_id = intval($_POST["parent"]);
// If the captcha is required, check it here
if (($_POST['captcha'] != $_SESSION['captcha']) || !$_POST['captcha']) {
$_SESSION["comment_post_error"] = "CAPTCHA check failed!";
return;
}
$rv = add_comment($parent_id,$_POST["author"],$_POST["email"],$_POST["comment"]);
// redirect back to picture page
if (isset($rv['errors'])) {
// will this work?
$_SESSION['comment_post_error'] = $rv['errors'];
}
else if ($config['comments_moderate']) {
$_SESSION['comment_moderated'] = 1;
}
?>
1 to 15 of 15