. .
pragmaMx Support Forum 25 Mai 2012, 23:27:44 *
Willkommen Gast. Bitte einloggen oder registrieren.


Einloggen mit Benutzername und Passwort
News:
Brauchen Sie Hilfe? Bitte nutzen Sie unsere Suchfunktion bevor Sie Beiträge oder Fragen ins Board schreiben! Viele Fragen wurden bereits gestellt und beantwortet. Danke!
 
Übersicht Hilfe Forenregeln / Boardrules
 
Suche
Seiten: [1]   Nach unten
Drucken
Autor Thema: Google Web search module  (Gelesen 669 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
algebre
weiss was
***
Offline Offline

Geschlecht: Männlich
Beiträge: 155

algebre


WWW
« am: 17 Dezember 2010, 15:18:46 »

Hi
If you have an adsense account download this module.
this module (+block) do search in the web or in your site ( + 2 other optionals site you choose) and show the search result in your site

Requirements :
- pragmaMx v0.1.11 or higher
- adsense client ID

Downloads:
http://www.megaupload.com/?d=8Z0PWIWW

Installation:
1 - unzip
2 - upload
3 - goto "admin.php?op=modules" and activate the new module
3 - admin.php?op=resetPmxCache
4 - goto admin.php?op=web_search and put (adsense client ID, your site url without (http://www.)
5 - enjoy
Gespeichert
Sportangler
weiss was
***
Offline Offline

Beiträge: 156


« Antworten #1 am: 18 Dezember 2010, 13:18:10 »

Hi,
thank you, but:

Fatal error: Call to undefined function mx_write_file() in XXX/modules/web_search/admin/admin.php on line 198

And what kind of ID:

Publisher-ID: pub-XXX
or
AdSense für Suchergebnisseiten: partner-pub-XXX

 bye
Gespeichert
algebre
weiss was
***
Offline Offline

Geschlecht: Männlich
Beiträge: 155

algebre


WWW
« Antworten #2 am: 18 Dezember 2010, 13:41:54 »

Hi
I have made a mistake, this function mx_write_file() exists since version 0.1.12
so change in admin.php this code :
Code: [Select]  
<?php
@chmod($conffile0777);
    
$file = @fopen($conffile"w");
    if (
$file) {
        
fwrite($file$content);
        
fclose($file);
        
$msg _CHANGESAREOK;
        
$delay 0;
    } else {
        
$msg _CHANGESNOTOK;
        
$delay 5;
    }
    @
chmod($conffile0444);
    
    
$msg _CHANGESAREOK;
    
$delay 5;
    
mx_write_file($conffile$contenttrue);
    
mxRedirect('admin.php?op=web_searchConfig'$msg$delay);
    
mxSecureLog("SecLog""Change Web_search config.php");
    
$ok mx_write_file($conffile$contenttrue);
    if (
$ok) {
        
$statmsg _ADMIN_SETTINGSAVED;
        
$delay 2;
        include_once(
PMX_SYSTEM_DIR DS 'mx_reset.php');
        
resetPmxCache();
    } else {
        
$statmsg "<big>" _ADMIN_SETTINGNOSAVED "</big><p>" _ADMIN_CANTCHANGE " (config.php)</p>";
        
$delay 5;
    }
    
mxRedirect('admin.php?op=web_searchConfig'$statmsg$delay);

by this:
Code: [Select]  
<?php //ignore this line
@chmod($conffile0777);
    
$file = @fopen($conffile"w");
    if (
$file) {
        
fwrite($file$content);
        
fclose($file);
        
$msg _CHANGESAREOK;
        
$delay 0;
    } else {
        
$msg _CHANGESNOTOK;
        
$delay 5;
    }
    @
chmod($conffile0444);
    
mxRedirect('admin.php?op=web_searchConfig'$msg$delay);

Zitat
And what kind of ID:


pub-2552995021861XXX
Gespeichert
algebre
weiss was
***
Offline Offline

Geschlecht: Männlich
Beiträge: 155

algebre


WWW
« Antworten #3 am: 19 Dezember 2010, 12:24:55 »

hello
new link
demo
Gespeichert
Seiten: [1]   Nach oben
Drucken
 
Gehe zu:  

Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
design by hENNE, layout based on YAML