sprokkel
Aangemaakte reacties
-
Forum: Code oplossingen gezocht
In antwoord op: nieuw bericht ??BTW,,, nieuwe installatie… Huidig thema Twenty Eleven
Forum: Code oplossingen gezocht
In antwoord op: nieuw bericht ??Wat bedoel je,, java script in de brouwser ,,, Ja in mijn profiel staat WYSIWYG Editor ingeschakeld,, aangevinkt
Forum: Algemeen WordPress
In antwoord op: geen media invoegen en mediabibliotheek leegJohanV, waarschijnlijk gaat er iets met bij de plugins,
wat heb je voor controlpanel,, DirectAdmin of cpanel
deactiveeralle plugins eens
JohanV, waarschijnlijk gaat er iets met bij de plugins,wat heb je voor controlpanel,, DirectAdmin of cpanel
Forum: Code oplossingen gezocht
In antwoord op: nieuw bericht ??voor alle duidelijkheid, Echter als ik een nieuwe pagina of bericht wil aanmaken, mis ik de button Wysiywg / Tekst, Heb dus alleen text modus
Forum: Algemeen WordPress
In antwoord op: geen media invoegen en mediabibliotheek leegwaar heb je de website gehost,, local of bij een host
normaal bij je hosting pakket heb je een controlpanel,, phpmyadmin… daar staat de database,,Forum: Algemeen WordPress
In antwoord op: geen media invoegen en mediabibliotheek leegHi, JohanV,,
nieuwe database aanmaken, of van de betsaande Dbase de tabellen verwijderen??Forum: Code oplossingen gezocht
In antwoord op: NL Nieuwsbrief pluginMessage all ussers ?? ook een plugin
Weer iets anders dan je eerste post
Ik zoek een nederlandse plugin voor een nieuwsbrief, weet iemand een goede?groet
PieterForum: Algemeen WordPress
In antwoord op: Au trecut pe aici : vreemdRoy,
gebruik vele plugins, maar zijn de laatste maanden geen nieuwe bij gekomenHallo Roy,
Gevonden, en probleem is opgelost (plugin gedeactiveerd)
Bedankt zover
Pieterplugin Visitors Notify
Notify users about their presence ont the blog.Developed based on Christi’s idea.Activate | Edit | Delete
Version 0.1 | By Ionut Ssndu | Visit plugin sitevisitors-notify/visitors_notify.php
<?php
/*
Plugin Name: Visitors Notify
Plugin URI: http://www.cuvintealese.ro
Description: Notify users about their presence ont the blog.Developed based on Christi’s idea.
Version: 0.1
Author: Ionut Ssndu
Author URI:http://www.cuvintealese.roCopyright 2011 Ionut Sandu (cuvintealese) (email : cuvintealese@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/define(‘VISITORSNOTIFY’,$wpdb->prefix.’visitors_notify’);
add_action(‘init’, ‘visitorsnotify_init’);
add_action(‘wp_head’,’visitorsnotify_style’);
add_action(‘admin_menu’, ‘visitorsnotify_adminmenu’);function visitorsnotify_adminmenu(){
add_options_page( ‘Visitors Notify’, ‘Visitors Notify’, 8 , ‘VisitorsNotify’, ‘visitorsnotify_options’);}function visitorsnotify_options(){
?>
<div class=”wrap”>
<h2>Visitors Notify</h2>
<p> Shows the visitors who passed over your posts, only if the visitor has a previous comment approved.If the cookies aren’t set then a form will show up for entering visitors data.</p>
<form method=”post” action=”options.php”>
<?php wp_nonce_field(‘update-options’); ?>
<table class=”form-table”><tr valign=”top”>
<td>Show visitor link ? (1 = on | 0 = off)</td>
<td><input type=”text” name=”show_visitor_link” value=”<?php echo get_option(‘show_visitor_link’); ?>” /></td>
</tr><tr>
<td>Enter the title</td>
<td><input type=”text” name=”visitors_notify_title” value=”<?php echo get_option(‘visitors_notify_title’); ?>” /></td>
</tr>
</table>
<input type=”hidden” name=”action” value=”update” />
<input type=”hidden” name=”page_options” value=”show_visitor_link, visitors_notify_title” /><p class=”submit”>
<input type=”submit” class=”button-primary” value=”<?php _e(‘Save Changes’) ?>” />
</p></form>
<small>Developed by Ionut Sandu based on Christi’s idea.</small>
</div><?php }
function visitorsnotify_style(){
echo ‘<style type=”text/css”>
#visitorsnotifymain { padding:10px 5px;font-size:12px;clear:both;}
#visitorsnotifyform { padding:10px 5px;}
#visitorsnotifytitle {font-weight:bold;}
.visitorsnotifymsg {color:#c00;clear:both;padding:10px 5px;}
input#n, input#m, input#w{width:100px;}
#visitorsnotifyform .submit input {font-size:12px;}</style>’;}
function visitorsnotify_init() {
if ( isset($_GET[‘activate’]) || isset($_GET[‘activate-multi’]) )
{
visitorsNotify_install();
}
}function visitorsNotify_install() {
global $wpdb ;
if ($wpdb->get_var(“show tables like ‘”.VISITORSNOTIFY.”‘”) != VISITORSNOTIFY)
{
$wpdb->query(“CREATE TABLE IF NOT EXISTS".VISITORSNOTIFY."
(
id
int(10) NOT NULL auto_increment,
name
varchar(100) NOT NULL,
postid
int(255) NOT NULL,
email
varchar(150) NULL,
website
varchar(150) NULL,
aprobat
int(11) NOT NULL DEFAULT ‘0’,
PRIMARY KEY (id
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8″);}
}function checkCookie() {//DACA ARE COOKIE
if(isset($_COOKIE[‘comment_author_’.COOKIEHASH]) && isset($_COOKIE[‘comment_author_email_’.COOKIEHASH])) {
$author = $_COOKIE[‘comment_author_’.COOKIEHASH] ;
$author_email = $_COOKIE[‘comment_author_email_’.COOKIEHASH];
global $wpdb , $post, $id;
$checkentry = $wpdb->get_row(“SELECT email FROM".VISITORSNOTIFY."
WHERE postid = ‘$id’ AND email = ‘$author_email’ “);
$checkemail = $wpdb->get_row(“SELECT * FROM “. $wpdb->comments .” WHERE comment_author_email = ‘$author_email’ AND comment_approved = 1 “);if($checkemail && $checkentry && $checkentry->aprobat == 1){ return showVisitorsList();}
else if($checkemail && $checkentry && $checkentry->aprobat == 0) {$wpdb->query(“UPDATE “.VISITORSNOTIFY.” SET aprobat = ‘1’ WHERE email = ‘$author_email’ AND postid = ‘$id’ “);return showVisitorsList();}
else if($checkemail && !$checkentry ){
if(isset($_COOKIE[‘comment_author_url_’.COOKIEHASH])){
$author_url = $_COOKIE[‘comment_author_url_’.COOKIEHASH];
}$wpdb->query(“INSERT INTO “.VISITORSNOTIFY.”(name, postid, email, website, aprobat) VALUES (‘$author’,’$id’, ‘$author_email’, ‘$author_url’, ‘1’) “);
return showVisitorsList();
}else if(!$checkemail && $checkentry && $checkentry->aprobat = ‘1’){
$wpdb->query(“UPDATE “.VISITORSNOTIFY.” SET aprobat = ‘0’ WHERE email = ‘$author_email’ AND postid = ‘$id’ “);
return showVisitorsList();
}
else { if(!$checkemail && !$checkentry){
if(isset($_COOKIE[‘comment_author_url_’.COOKIEHASH])){$author_url = $_COOKIE[‘comment_author_url_’.COOKIEHASH];
}$wpdb->query(“INSERT INTO “.VISITORSNOTIFY.”(name, postid, email, website, aprobat) VALUES (‘$author’,’$id’, ‘$author_email’, ‘$author_url’, ‘0’) “);
return showVisitorsList();
}
}}
return showVisitorsList() . addVisitors() ;
}
function addVisitors() {
if(isset($_GET[‘n’]) && isset($_GET[‘m’])) {
if($_GET[‘n’] !== ” && $_GET[‘m’] !== ”){
$author_email = $_GET[‘m’];
if(!ereg(“^[^@]{1,64}@[^@]{1,255}$”,$author_email)) {
return ‘<span class=”visitorsnotifymsg”>Nume sau email incomplet/incorect !</span><form method=”get” action=”” id=”visitorsnotifyform”>
<label for=”n”>Nume</label>
<input type=”text” id=”n” name=”n”/>
<label for=”m”>Mail</label>
<input type=”text” id=”m” name=”m”/>
<label for=”w”>Blog</label>
<input type=”text” id=”w” name=”w”/>
<p class=”submit”><input type=”submit” value=”Am fost p-aici”/></p>
</form>’;}$author = $_GET[‘n’];
$author_url = $_GET[‘w’];
$comment_cookie_lifetime = apply_filters(‘comment_cookie_lifetime’, 30000000);
setcookie(‘comment_author_’ . COOKIEHASH, $author, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
setcookie(‘comment_author_email_’ . COOKIEHASH, $author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
setcookie(‘comment_author_url_’ . COOKIEHASH, esc_url($author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
return ‘<script language=”JavaScript”>
window.location=”‘.get_permalink($id).'”;
</script>’;}
return ‘<span class=”visitorsnotifymsg”>Name or email, missing or incorrect !</span><form method=”get” action=”” id=”visitorsnotifyform”>
<label for=”n”>Name</label>
<input type=”text” id=”n” name=”n”/>
<label for=”m”>Mail</label>
<input type=”text” id=”m” name=”m”/>
<label for=”w”>Blog</label>
<input type=”text” id=”w” name=”w”/>
<p class=”submit”><input type=”submit” value=”Submit”/></p>
</form>’;
}return ‘<form method=”get” action=”” id=”visitorsnotifyform”>
<label for=”n”>Name</label>
<input type=”text” id=”n” name=”n”/>
<label for=”m”>Mail</label>
<input type=”text” id=”m” name=”m”/>
<label for=”w”>Blog</label>
<input type=”text” id=”w” name=”w”/>
<p class=”submit”><input type=”submit” value=”Submit”/></p>
</form>’;
}function showVisitorsList() {
global $wpdb , $post, $id;
$checkauthors = $wpdb->get_results(“SELECT name, website FROM".VISITORSNOTIFY."
WHERE postid = ‘$id’ AND aprobat = 1″);if($checkauthors) {
foreach ($checkauthors as $checkauthor) {
if($checkauthor->website ==”){$link .= ‘<span> ‘. $checkauthor->name .'</span> |’ ;}
else {
if(get_option(‘show_visitor_link’) == 1){$link .= ‘<span> website .'” rel=”external nofollow”>’. $checkauthor->name .’</span> |’ ;
}
else {$link .= ‘<span> ‘. $checkauthor->name .'</span> |’ ;}
}
}
return $link ;}
}function visitors_passed($content) {
if(is_single() || is_page()) {
if(get_option(‘visitors_notify_title’)==”){$visitors_notify_title = ‘Au trecut pe aici : ‘;} else {$visitors_notify_title = get_option(‘visitors_notify_title’);}return $content .'<div id=”visitorsnotifymain” ><h3 id =”visitorsnotifytitle”>’. $visitors_notify_title .'</h3>’. checkCookie() .'</div>’ ;
}
return $content;
}
add_filter(’the_content’,’visitors_passed’);
?>Forum: Algemeen WordPress
In antwoord op: Au trecut pe aici : vreemdhallo Roy,
Ik ook via google van alles gevonden ook in het Roemeeensmaar geen antwoord op mijn zoeken,
Op jou vraag Kan het van een plugin komen? Die invoerveldjes, horen die daar te staan?
Nee want het zijn nieuwe paginas die ik heb aangemaakt,
als de een pagina edit zie ik niets bijzonders ook niet in html code als ik overschakel
VreemdForum: Code oplossingen gezocht
In antwoord op: NL Nieuwsbrief pluginHallo Sandra,
ik gebruik zelf multiple users,
als ik een bericht plaats of er word een bericht geplaatst, kan ik deze editen en versturen naar ussers of bepaalde personen.
werkt voor mij gemakkelijk maar misschien is er ook nog een andere oplossing.http://www.marvinlabs.com/products-and-references/wordpress-addons/email-users/
mvg
PieterForum: Code oplossingen gezocht
In antwoord op: Plugin alleen op frontpage tonenHeleenh
Bedankt zover
Mocht het niet lukken kom ik er op terug
mvgForum: Code oplossingen gezocht
In antwoord op: Visitor Maps – Who's Been OnlineAdrianusV,
Oke bedankt dan is dit duidelijk vond het wel heel vreemd.
opgelost dus.
mvgForum: Code oplossingen gezocht
In antwoord op: Visitor Maps – Who's Been OnlineDus even voor alle duidelijkheid als ik op de link van de bezoeker klik
kom ik op het inlog gedeelte van mijn eigen hotmail uit
mvgForum: Code oplossingen gezocht
In antwoord op: Visitor Maps – Who's Been OnlineKijk ik kom uit op mijn eigen inlog gedeelt met de avatar er bij dus het fototje van me zelf
Forum: Code oplossingen gezocht
In antwoord op: Visitor Maps – Who's Been OnlineHallo O.E ??
Ik zie dat er een geregistreerd lid online is geweest inVisitor Maps – Who’s Been Online
Als ik op de link Referer: klik dus van de gene die online was kom ik bij mijn http://login.live.com/login… uit DUS HOE KAN DIT!!!en de andere leden Referer geven normaal aan waar ze vandaan komen o.a google enz……..
Mvg
SPRK