[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

Indy News

Go to page 1, 2  Next
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ›  Sonstige Module

View previous topic :: View next topic  
Author Message
Guest






PostPosted: 12.05.2004 16:05
Post subject: Indy News

Das Cpg Nuke gefällt mir sehr gut, jedoch bekomme ich das Modul Indy News nicht Installiert.
Fatal error: Call to undefined function: sql_query() in /opt/web1/html/html/modules/IndyNews/index.php on line 60

In der Index von Indy News steht folgendes in zeile 60
$result = sql_query("SELECT admUpSize, usrUpSize, anmUpSize, UnpFType, enablThumb, numNewsImg, posNewsImg, imgIndDefW, imgIndDefH, imgArtDefW, imgArtDefH, tmplArt from ".$prefix."_media_config where id='1'", $dbi);

Ohne das Modul bekomme ich halt leider auch meine alten News nicht Imprtiert

Vieleicht kann ja jemand helfen

Grüße Rupert
Back to top
Reha
Agent
Agent

Offline Offline
Joined: Apr 20, 2004
Posts: 87
Location: Stuttgart
PostPosted: 12.05.2004 16:27
Post subject: Re: Indy News

Hallo Gast Smile

ist das hier vielleicht dein Problem?

www.cpgnuke.com/FAQ/in...cat=1.html

ich bin mir nicht sicher aber hier steht das mann einige Sachen
ändern muss von nuke -> cpg


Reha please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile ICQ Number MSN Messenger Photo Gallery
Guest






PostPosted: 14.05.2004 02:07
Post subject: Re: Indy News

danke für die Antwort,
da wirst du wohl recht haben, aber da alle umzustricken ist bei Indy News wohl heftig viel Arbeit. Na ja ich werde es mal probieren
Back to top
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 14.05.2004 13:44
Post subject: Re: Indy News

$result = sql_query("SELECT admUpSize, usrUpSize, anmUpSize, UnpFType, enablThumb, numNewsImg, posNewsImg, imgIndDefW, imgIndDefH, imgArtDefW, imgArtDefH, tmplArt from ".$prefix."_media_config where id='1'", $dbi);

ändern in

$result = $db->sql_query("SELECT admUpSize, usrUpSize, anmUpSize, UnpFType, enablThumb, numNewsImg, posNewsImg, imgIndDefW, imgIndDefH, imgArtDefW, imgArtDefH, tmplArt from ".$prefix."_media_config where id='1'");

und oben in der funktion
global $db; statt global $dbi Wink


Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
Reha
Agent
Agent

Offline Offline
Joined: Apr 20, 2004
Posts: 87
Location: Stuttgart
PostPosted: 14.05.2004 15:55
Post subject: Re: Indy News

na dann viel Spaß Smile

Naja es wird sich auf jedenfall lohnen Exclamation


Reha please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile ICQ Number MSN Messenger Photo Gallery
Guest






PostPosted: 14.05.2004 20:28
Post subject: Re: Indy News

Danke das habe ich auch schon gefunden nur sin diese Parameter und andere in sovielen Dateien von Indy News das ich das ganze schon aufgegeben habe.
Trotzdem

vielen dank für eure Hilfe
Back to top
spoddig
Guest





PostPosted: 18.05.2004 13:27
Post subject: Re: Indy News

Nun habe ich mich doch an die Arbeit gemacht und mit den Änderungen begonnen. Sind bei dem Modul halt gleich mal ein paar hundert Änderungen,wenn ich zum laufen bekomme dann stelle ich es gerne als Download zur Verfügung.
Back to top
Guest






PostPosted: 18.05.2004 15:07
Post subject: Re: Indy News

Nun komme ich leider alleine nicht weiter, ich habe alle Dateien abgeändert und fehlende Tabellen in der Datenbank angelget. Soweit so gut nur mit der Version block-modules habe ich Probleme. Die geht so leider nicht und mit der Original von cpg gehts halt auch nicht. Vieleicht hat ja jemand ne Idee worans liegt.

<?php
######################################################################
# [Indy]News hacking
#-------------------------
# Version: 0.8b
#
# By : JoyDivision (Kolja)
# (http://www.bergamoblog.it)
# (gava@bergamoblog.it)
#
# Tech support on www.bergamoblog.it/forum.php
######################################################################
# This hack is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

if (eregi("block-Modules.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}

global $prefix, $db, $admin, $Version_Num;

$result = $db->sql_query("select main_module from ".$prefix."_main");
list($main_module) = $db->sql_fetchrow($result, $db);

/* If the module doesn't exist, it will be removed from the database automaticaly */

$result = $db->sql_query("select title from ".$prefix."_modules");
while (list($title) = $db->sql_fetchrow($result, $db)) {
$a = 0;
$handle=opendir('modules');
while ($file = readdir($handle)) {
if ($file == $title) {
$a = 1;
}
}
closedir($handle);
if ($a == 0) {
$db->sql_query("delete from ".$prefix."_modules where title='$title'");
}
}

/* Now we make the Modules block with the correspondent links */

$content .= "<strong>&lt;big&gt;&amp;middot;&lt;/big&gt;</strong>&amp;nbsp;&lt;a href=\"index.php\"&gt;"._HOME."&lt;/a&gt;<br>\n";
//JD Start
if($Version_Num*1 &lt; 5.6){
$result = $db-&gt;sql_query("select title, custom_title from ".$prefix."_modules where active='1' ORDER BY title ASC");
}else{
$result = $db-&gt;sql_query("select title, custom_title from ".$prefix."_modules where active='1' ORDER BY custom_title ASC");
}
//JD End
while(list($m_title, $custom_title) = $db-&gt;sql_fetchrow($result, $db)) {
$m_title2 = ereg_replace("_", " ", $m_title);
if ($custom_title != "") {
$m_title2 = $custom_title;
}
//JD Start
#if ($m_title != $main_module) {
if ($m_title != $main_module &amp;&amp; $m_title != "IndyNews") {
//JD End
$content .= "<strong>&lt;big&gt;&amp;middot;&lt;/big&gt;</strong>&amp;nbsp;&lt;a href=\"modules.php?name=$m_title\"&gt;$m_title2&lt;/a&gt;<br>\n";
}
}

/* If you're Admin you and only you can see Inactive modules and test it */
/* If you copied a new module is the /modules/ directory, it will be added to the database */

if (is_admin($admin)) {
$handle=opendir('modules');
while ($file = readdir($handle)) {
if ( (!ereg("[.]",$file)) ) {
$modlist .= "$file ";
}
}
closedir($handle);
$modlist = explode(" ", $modlist);
sort($modlist);
for ($i=0; $i &lt; sizeof($modlist); $i++) {
if($modlist[$i] != "") {
$result = $db-&gt;sql_query("select mid from ".$prefix."_modules where title='$modlist[$i]'");
list ($mid) = $db-&gt;sql_fetchrow($result, $db);
if ($mid == "") {
//JD Start
if($Version_Num*1 &lt; 5.6){
$db-&gt;sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '', '0', '0')");
}else{
$db-&gt;sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0')");
}
//JD end
}
}
}
$content .= "<br>&lt;center&gt;<b>"._NOACTIVEMODULES."</b><br>";
$content .= "&lt;font class=\"tiny\"&gt;"._FORADMINTESTS."&lt;/font&gt;&lt;/center&gt;<br>";
$result = $db-&gt;sql_query("select title, custom_title from ".$prefix."_modules where active='0' ORDER BY title ASC");
while(list($mn_title, $custom_title) = $db-&gt;sql_fetchrow($result, $db)) {
$mn_title2 = ereg_replace("_", " ", $mn_title);
if ($custom_title != "") {
$mn_title2 = $custom_title;
}
$content .= "<strong>&lt;big&gt;&amp;middot;&lt;/big&gt;</strong>&amp;nbsp;&lt;a href=\"modules.php?name=$mn_title\"&gt;$mn_title2&lt;/a&gt;<br>\n";
$a = 1;
}
if ($a != 1) {
$content .= "<strong>&lt;big&gt;&amp;middot;&lt;/big&gt;</strong>&amp;nbsp;<i>"._NONE."</i><br>\n";
}
}
?&gt;
Back to top
Reha
Agent
Agent

Offline Offline
Joined: Apr 20, 2004
Posts: 87
Location: Stuttgart
PostPosted: 18.05.2004 17:43
Post subject: Re: Indy News

$db->sql_fetchrow($result, $db)
$db->sql_fetchrow($result)

Ich glaube das hier ist dein Fehler?!
Bin mir da aber auch nicht sicher Sad

Sag mal bitte bescheid wenn du es zum laufen bekommst!!
Habe auch noch ein paar Module die ich gerne zum laufen bringen
möchte Smile


Reha please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile ICQ Number MSN Messenger Photo Gallery
Guest






PostPosted: 18.05.2004 18:03
Post subject: Re: Indy News

Nein das wars leider nicht
Back to top
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 19.05.2004 13:26
Post subject: Re: Indy News

PHP:
$result = $db->sql_query("select main_module from ".$prefix."_main"); 
list(
$main_module) = $db->sql_fetchrow($result, $db);



".$prefix."_main gibt es nicht mehr bei cpg

und in obigen code ist noch vieles zu verbessern !!!!

und du solltest die fehlermeldungen mit posten


Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
spoddig
Guest





PostPosted: 19.05.2004 13:59
Post subject: Re: Indy News

Erstmal ein Danke für die Antwort.
Ich habe alle Dateien geändert aber noch imme Fehler.
Frage:
Welche der beiden Änderungen ist die richtige?
Array:
$db->sql_fetchrow($result, $db) 
$db->sql_fetchrow($result) 

Zur Zeit probier ichs mit der ersten

Folgende Fehlermeldung bekomme ich zur Zeit beim Aufruf des Moduls:
Fatal error: Call to undefined function: gettopics() in /opt/web1/html/modules/News/index.php on line 115

Das hier ist die betreffende Zeile:
115> getTopics($s_sid);

Ich hoffe ich krieg das Modul noch zum laufen inzwischen sitz ich da schon zig Stunden dran.
Back to top
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 19.05.2004 14:05
Post subject: Re: Indy News

$db->sql_fetchrow($result) ist richtig


gettopics ist in mainfile bedeutet du musst dieses einlesen

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);


an anfang der datei einfügen


Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 19.05.2004 14:06
Post subject: Re: Indy News

ps warum meldest du dich hier nicht an Laughing

wäre doch persönlicher


Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
spoddig
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: May 19, 2004
Posts: 208

PostPosted: 19.05.2004 14:16
Post subject: Re: Indy News

Aber Hallo das ging ja flott mit der Antwort.
Habe mich auch schon angemeldet, allerdings habt ihr da nen kleinen Bug,
Nach dem klick auf den Aktivierung link funktieoniert der Login Link nicht kommt die fehlerseite. Der normale Login geht dann aber.

Viele Grüße aus Palma

Rupert Spoddig


spoddig please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ›  Sonstige Module
Page 1 of 2
All times are GMT + 1 Hour
Go to page 1, 2  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy