Main Menu
Survey
Google vyľadávanie
PHP-Nuke Patched
Do not miss
PHP-Nuke Slovakia :: Zobraziť tému - Blok ako v uvode
Pred pridaním akéhokoľvek príspevku si prečítajte PRAVIDLÁ. Ak zistíme, že ste ktorékoľvek pravidlo porušili, Váš príspevok zmažeme a nedostane sa Vám odpovede!
Zobraziť predchádzajúcu tému :: Zobraziť nasledujúcu tému
Autor
Správa
mirec Novice Zaregistrovaný od: 22. 03. 2007 Príspevky: 11
Návrat hore
Sponzor
drakeman Webmaster Zaregistrovaný od: 30. 04. 2005 Príspevky: 4398 Bydlisko: Slovakia
Zaslal: po jún 08, 2009 9:11 pm Predmet:
Aky blok myslis? _________________Post Affiliate Pro | Affiliate tracking software
Návrat hore
mirec Novice Zaregistrovaný od: 22. 03. 2007 Príspevky: 11
Zaslal: po jún 08, 2009 9:35 pm Predmet:
no vsetky tie bloky ako su na index.php by som chcel mat aj tam ked otvoris clanok aby tam nebolo napr.: hodnotenie clanku, moznosti ale normalne ako na index.php: anketa, login,...
Návrat hore
Blassen Moderator Zaregistrovaný od: 30. 05. 2005 Príspevky: 758
Návrat hore
mirec Novice Zaregistrovaný od: 22. 03. 2007 Príspevky: 11
Zaslal: št jún 11, 2009 9:11 pm Predmet:
Blassen napísal: je potřeba upravit:
modules/News/article.php
Ano myslel som si ale neviem co tam mam upravit.
Návrat hore
Blassen Moderator Zaregistrovaný od: 30. 05. 2005 Príspevky: 758
Návrat hore
mirec Novice Zaregistrovaný od: 22. 03. 2007 Príspevky: 11
Zaslal: ne jún 14, 2009 8:45 pm Predmet:
no skusam skusam a nejde mi to
poradis nejak?
Návrat hore
Blassen Moderator Zaregistrovaný od: 30. 05. 2005 Príspevky: 758
Zaslal: st jún 17, 2009 9:18 pm Predmet:
[code]
<?php
/**
* edited by Blassen
* http://blassenweb.net
**/
if (!stristr($_SERVER['SCRIPT_NAME'], "modules.php") OR !defined('UN_KERNELFILES_LOADED')) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$optionbox = "";
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
if (stristr($_SERVER['REQUEST_URI'],"mainfile")) {
Header("Location: modules.php?name=".$module_name."&file=article&sid=".$sid);
} elseif (!isset($sid) && !isset($tid)) {
Header("Location: index.php");
}
if (isset($sid)) $sid = intval($sid);
if (isset($tid)) $tid = intval($tid);
if ($save AND is_user($user)) {
cookiedecode($user);
$db->sql_query("UPDATE ".UN_TABLENAME_USERS." SET umode='".$mode."', uorder='".$order."', thold='".$thold."' WHERE uid='".intval($cookie[0])."'");
getusrinfo($user);
$info = base64_encode($userinfo['user_id'].":".$userinfo['username'].":".$userinfo['user_password'].":".$userinfo['storynum'].":".$userinfo['umode'].":".$userinfo['uorder'].":".$userinfo['thold'].":".$userinfo['noscore']);
setcookie("user", $info,time()+$cookieusrtime);
}
if ($op == "Reply") {
Header("Location: modules.php?name=".$module_name."&file=comments&op=Reply&pid=0&sid=".$sid."&mode=".$mode."&order=".$order."&thold=".$thold);
}
$result = $db->sql_query("SELECT a.name, a.url, a.email, s.catid, s.aid, s.time, s.title, s.hometext, s.bodytext, s.topic, s.informant, s.notes, s.acomm, s.haspoll, s.pollID, s.score, s.ratings, s.associated, sc.title AS topic_title FROM ".UN_TABLENAME_STORIES." s LEFT JOIN ".UN_TABLENAME_STORIES_CAT." sc ON sc.catid = s.catid LEFT JOIN ".UN_TABLENAME_AUTHORS." a ON a.aid = s.aid WHERE s.sid='".$sid."'");
$numrows = $db->sql_numrows($result);
if ($numrows != 1) {
Header("Location: index.php");
exit();
}
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$catid = $row['catid'];
$aid = stripslashes($row['aid']);
$time = $row['time'];
$title = stripslashes(check_html($row['title'], "nohtml"));
$hometext = un_doTexy(stripslashes($row['hometext']));
$bodytext = un_doTexy(stripslashes($row['bodytext']));
$topic = $row['topic'];
$informant = stripslashes($row['informant']);
$notes = un_doTexy(stripslashes($row['notes']));
$acomm = $row['acomm'];
$haspoll = $row['haspoll'];
$pollID = $row['pollID'];
$score = $row['score'];
$ratings = $row['ratings'];
if ($aid == "") {
Header("Location: modules.php?name=".$module_name);
}
$db->sql_query("UPDATE ".UN_TABLENAME_STORIES." SET counter=counter+1 WHERE sid='".$sid."'");
$artpage = 1;
$pagetitle = $title;
require("header.php");
$artpage = 0;
formatTimestamp($time);
$title = stripslashes(check_html($title, "nohtml"));
if ($notes != "") {
$notes = "<br /><br /><b>"._NOTE."</b> <i>".$notes."</i>";
} else {
$notes = "";
}
if($bodytext == "") {
$bodytext = $hometext.$notes;
} else {
$bodytext = $hometext."<br /><br />".$bodytext.$notes;
}
if($informant == "") {
$informant = $anonymous;
}
getTopics($sid);
if ($catid != 0) {
$title1 = stripslashes(check_html($row['topic_title'], "nohtml"));
$title = "<a href=\"modules.php?name=".$module_name."&file=categories&op=newindex&catid=".$catid."\"><font class=\"storycat\">".$title1."</font></a>: ".$title;
}
echo "<table width=\"100%\" border=\"0\"><tr><td valign=\"top\" width=\"100%\">\n";
if (!defined("UN_NEWTHEME_LOADED")) {
themearticle($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext);
} else {
$un_story_details = Array();
$un_story_details['story_id'] = $sid;
$un_story_details['story_title'] = $title = stripslashes(check_html($row['title'], "nohtml"));
$un_story_details['hometext'] = un_doTexy(stripslashes($row['hometext']));
$un_story_details['bodytext'] = un_doTexy(stripslashes($row['bodytext']));
$un_story_details['notes'] = un_doTexy(stripslashes($row['notes']));
$un_story_details['cat_id'] = $catid;
$un_story_details['cat_title'] = $title1;
$un_story_details['time'] = $time;
$un_story_details['haspoll'] = $haspoll;
$un_story_details['pollID'] = $pollID;
$un_story_details['author_info'] = array('name' => stripslashes($row['name']), 'url' => stripslashes($row['url']), 'email' => stripslashes($row['email']));
un_themearticle($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext, $un_story_details);
}
echo "</td><td valign=\"top\">\n";
blocks(right);
echo "</td></tr></table>\n";
cookiedecode($user);
if ($row['associated'] != "") {
include("modules/".$module_name."/associates.php");
}
if ((($cookie[4] != "nocomments") OR ($acomm == 0)) OR ($articlecomm == 1)) {
include("modules/".$module_name."/comments.php");
}
include ("footer.php");
?>
[/code] _________________BLASSENweb
Theme Demo System
Zvyšte si zdarma návštěvnost Vaší stránky !
Návrat hore
Sponzor
mirec Novice Zaregistrovaný od: 22. 03. 2007 Príspevky: 11
Zaslal: št jún 18, 2009 12:28 pm Predmet: Re: Blok ako v uvode
a je to dikes:-)
Návrat hore
Nemôžete odosielať novú správu do tohto fóraNemôžete odpovedať na správu v tomto fóreNemôžete upravovať svoje príspevky v tomto fóreNemôžete mazať svoje príspevky v tomto fóreNemôžete hlasovať v tomto fóre
Powered by phpBB © 2001, 2002 phpBB Group
phpnuke_v2006 v1.0 Template By XPfighter © 2006