Author Topic: MOD PhotoBlog  (Read 97178 times)

0 Members and 1 Guest are viewing this topic.

Offline Fryz

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Fryz' Media Galerie
Re: MOD PhotoBlog
« Reply #15 on: June 16, 2009, 06:05:03 PM »
Klasse Mod...ehrlich!

Hab ihn grad Installiert... Wenn ich auf die Links( »Dein Foto-Blog oder »Alle Foto-Blogs) klicke, geht zwar die neue Seite auf, bekomme aber folgende Fehlermeldung:

Warning: file() [function.file]: URL file-access is disabled in the server configuration in /var/www/web273/html/Galerie/includes/functions_pb.php on line 388

Warning: file(http://rinaldos.homeip.net/versions/blog_version) [function.file]: failed to open stream: no suitable wrapper could be found in /var/www/web273/html/Galerie/includes/functions_pb.php on line 388


Was muß ich da noch ändern?

Schon mal Danke im Voraus :-)




rinaldos

  • Guest
Re: MOD PhotoBlog
« Reply #16 on: June 16, 2009, 06:37:04 PM »
Klasse Mod...ehrlich!

Hab ihn grad Installiert... Wenn ich auf die Links( »Dein Foto-Blog oder »Alle Foto-Blogs) klicke, geht zwar die neue Seite auf, bekomme aber folgende Fehlermeldung:

Warning: file() [function.file]: URL file-access is disabled in the server configuration in /var/www/web273/html/Galerie/includes/functions_pb.php on line 388

Warning: file(http://rinaldos.homeip.net/versions/blog_version) [function.file]: failed to open stream: no suitable wrapper could be found in /var/www/web273/html/Galerie/includes/functions_pb.php on line 388


Anscheinend mag er den Update Check nicht durchführen :-(
Naja, du kannst in der pb.php ziemlich am Ende

if($user_info['user_level'] ==ADMIN){
   
$file_exist url_exists_blog('http://rinaldos.homeip.net/versions/blog_version');
   if (
$file_exist == 1){
        
$installed_version preg_replace('/\\./''',$version);
        
$current_version get_version_blog($current_blog_version);
        
$current_version = ($current_version 2) /2;
        if (
$installed_version $current_version) {
           
$copyright_blog "<small><a href=\"http://www.rinaldos-world.de\"><font color=\"black\">this blog powered by www.rinaldos-world.de</a></font><br>Version: $version</small>";
           
$copyright_blog .= "<br><small><font color=\"red\">There is currently a new Version available.</font></small>";
        }
    }
}

auskommentieren, indem du  vor if ein /* setzt und hinter der letzten klammer ein */


Sollte dann so aussehen

Code: [Select]
/*if($user_info['user_level'] ==ADMIN){
   $file_exist = url_exists_blog('http://rinaldos.homeip.net/versions/blog_version');
   if ($file_exist == 1){
        $installed_version = preg_replace('/\\./', '',$version);
        $current_version = get_version_blog($current_blog_version);
        $current_version = ($current_version * 2) /2;
        if ($installed_version < $current_version) {
           $copyright_blog = "<small><a href=\"http://www.rinaldos-world.de\"><font color=\"black\">this blog powered by www.rinaldos-world.de</a></font><br>Version: $version</small>";
           $copyright_blog .= "<br><small><font color=\"red\">There is currently a new Version available.</font></small>";
        }
    }
}*/
Dann prüft er nicht mehr ob eine neue Version online ist .....

Gruß
Ingo


P.S. Es folgt bald eine neue Version. Da ist dann der TINYMCE Editor integriert. Dann wird es noch komfortabler, den BLOG Text zu formatieren.

Offline Fryz

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Fryz' Media Galerie
Re: MOD PhotoBlog
« Reply #17 on: June 16, 2009, 07:06:48 PM »
Danke rinaldos, jetzt klappt alles :-)

rinaldos

  • Guest
Re: MOD PhotoBlog
« Reply #18 on: June 16, 2009, 07:24:37 PM »
Welche PHP Version benutzt du eigentlich?

Offline Fryz

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Fryz' Media Galerie
Re: MOD PhotoBlog
« Reply #19 on: June 17, 2009, 09:41:31 PM »
Server Version: 5.0.32

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: MOD PhotoBlog
« Reply #20 on: June 28, 2009, 03:32:29 PM »
Habe alles in meiner bestehenden Gallery installiert...

Wenn ich nun ein Blog erstellen möchte (Als Admin), kommt folgender Fehler:
Quote
   
Fehler

Sie sind nicht angemeldet oder haben nicht die erforderlichen Rechte für diese Seite!
   Bitte warten Sie bis zur automatischen Weiterleitung!
Oder Klicken Sie Zum Eintrag

Woran kann das liegen?

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: MOD PhotoBlog
« Reply #21 on: June 28, 2009, 03:37:37 PM »
Ich auch habe diese fehler wann ich neue blog kreiren wollte , wir mussen auf Rinaldo warten  :D

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: MOD PhotoBlog
« Reply #22 on: June 29, 2009, 09:03:50 AM »
Hello. I instaled this mob but I have this error When I go to Control Panel
Code: [Select]
Parse error: syntax error, unexpected ';', expecting ')' in /home/dragos/public_html/member.php on line 945
But on line 945 in member.php I have this

Code: [Select]
//-----------------------
// BLOG MOD START
//-----------------------
   $sql = "SELECT COUNT(users_pb_id) AS blogs
            FROM ".USERS_PB_TABLE."
            WHERE user_id_pb = ".$user_row['user_id']." AND user_pb_private = 0";        ==============this is line 945=========
   $result = $site_db->query_firstrow($sql);
   $num_blog_1 = $result['blogs'];

    $user_pb_link = "<a href=\"".ROOT_PATH."pb.php?action=showpb&id=".$user_row['user_id']."\">".$lang['user_pb_too_pb'].$user_row['user_name']." (".$num_blog_1.")</a>";

    $site_template->register_vars(array(
    "user_pb_link" => $user_pb_link
    ));
//-----------------------
// BLOG MOD END
//-----------------------

What should I do ?
Thanks,
Dragos Popovici
« Last Edit: January 21, 2010, 08:35:52 AM by mayashu »

rinaldos

  • Guest
Re: MOD PhotoBlog
« Reply #23 on: June 29, 2009, 10:04:46 AM »
@mayashu
I think you have an cut and paste error. These lines have to work :-)You are the only one with this error :-( please try again this step.

@Benny
Welche Version nutzt du?

Gruß

Ingo

@all. es kommt die tage eine neue Version. Um den Fehler zu beheben, das man nicht ausreichende rechte hat (da es bei mir so klappt) finde

if ($action == "save") {
  
$user_id $_GET['user_id'];
  if(
$user_info['user_id'] == $user_id) {
      
$msg $lang['no_permission'];
      
$afg "false";
      
show_error_page("
    <b>"
.$lang['no_permission']."</b><table border=0 cellspacing=0 cellpadding=8><tr><td valign=\"top\">
    <td>"
.$lang['user_pb_new_wait']."
    <a href=pb.php?action=showpb&id="
.$_POST['id'].">".$lang['user_pb_new_to']."</a></td></tr></table>");
    }


und ersetze

if ($action == "save") {
/*  $user_id = $_GET['user_id'];
  if($user_info['user_id'] == $user_id) {
      $msg = $lang['no_permission'];
      $afg = "false";
      show_error_page("
    <b>".$lang['no_permission']."</b><table border=0 cellspacing=0 cellpadding=8><tr><td valign=\"top\">
    <td>".$lang['user_pb_new_wait']."
    <a href=pb.php?action=showpb&id=".$_POST['id'].">".$lang['user_pb_new_to']."</a></td></tr></table>");
    }*/


Der Fehler, wird in der nächsten Version behoben sein ..... Sorry :-(
« Last Edit: June 29, 2009, 11:38:24 AM by rinaldos »

Offline mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: MOD PhotoBlog
« Reply #24 on: June 29, 2009, 01:54:07 PM »
I double check the code but I have sa same error.
an d I see another code error in :
http://dragospopovici.ro/4i/pb.php?action=showpb
At the top of the page apeare this error:
Code: [Select]
Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/dragos/public_html/4i/includes/functions_pb.php on line 388

Warning: file(http://rinaldos.homeip.net/versions/blog_version) [function.file]: failed to open stream: no suitable wrapper could be found in /home/dragos/public_html/4i/includes/functions_pb.php on line 388

Code: [Select]
function get_version_blog() {
        $current_blog_version = 'http://rinaldos.homeip.net/versions/blog_version';
        $array = file($current_blog_version);                                               =================line 388==========
        $current_blog_version = $array[0];
        $current_blog_version = preg_replace('/\\./', '',$current_blog_version);
     return $current_blog_version;
}

rinaldos

  • Guest
Re: MOD PhotoBlog
« Reply #25 on: June 29, 2009, 02:17:29 PM »
try these

http://www.4homepages.de/forum/index.php?topic=24953.msg137302#msg137302

It is an error with update check. In next version it is fixed ....

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: MOD PhotoBlog
« Reply #26 on: June 29, 2009, 02:56:53 PM »
@ rinaldos,
nutze die 1.7.7

Habe nun dein Fix eingebaut, der Eintrag findet zwar statt, aber bei der Erstellung, kommt folgender Fehler:
Quote
Warning: move_uploaded_file(/www/htdocs/w00b2576/anitube/data/media_blog/1246280005-1-1-a003fd396242dabb136adf0489c2451a.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /www/htdocs/w00b2576/anitube/pb.php on line 1432

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpfmpBFY' to '/www/htdocs/w00b2576/anitube/data/media_blog/1246280005-1-1-a003fd396242dabb136adf0489c2451a.jpg' in /www/htdocs/w00b2576/anitube/pb.php on line 1432

Wie gesagt, der Eintrag ist da!

Wenn ich den Eintrag nun aufrufe, über der Ligininfo.htm dann steht da noch zusätzlich:
Quote
Es muss erst durch den ADMIN eine BLOG Kategorie erstellt werden!

Ich weis nicht wo ich die Kategorie erstellen kann. Da wo ich was auswählen möchte, gibt es nichts zum auswählen.

Un unter:
pb.php?action=edit_entry&entry=1

Sind keine Einträge vorhanden!

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: MOD PhotoBlog
« Reply #27 on: June 29, 2009, 03:05:07 PM »
Benny,

bei dir ist PHP SAFE MODE auf ON..
http://www.4homepages.de/forum/index.php?topic=6836.0

[edit]
* ist
« Last Edit: June 29, 2009, 09:22:19 PM by Nicky »
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

rinaldos

  • Guest
Re: MOD PhotoBlog
« Reply #28 on: June 29, 2009, 03:08:37 PM »
@Nicky,
 danke für den hinweis, werde das als Voraussetzung für den MOD mit aufnehmen

@Benny
Wenn du als Admin eineloggt bist und auf Alle Photoblogs klickst, solltest du einen link sehen mit neu

Offline mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: MOD PhotoBlog
« Reply #29 on: June 29, 2009, 09:49:30 PM »
thank you. That fixet my second problem but I do have the first problem "active"  :(