Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Zeck klausimai

Parašė Zeck· 2009 Rugs. 22 21:09:06
#1

Ieskojau googleje bet neradau, gal jus zinot ta taga kuri irasius i puslapi po jusu nustatyto laiko permeta i kita nustatyta puslapi. Jai zinot parasykit :)

Redagavo Zeck· 2010 Bir. 5 14:06:22

Parašė aš deadlowe-duxas· 2009 Rugs. 23 09:09:57
#2

turi omenyje redirecta ? bent jau kiek supratau is tavo sito posto

Parašė tm· 2009 Rugs. 23 10:09:33
#3

Pasidarai index.php ir idedi sita koda ;)

<HTML>
<HEAD>

<META HTTP-EQUIV="refresh" CONTENT="4;URL=http://www.one.lt">

</HEAD>
<BODY>

<CENTER><h1>Naujas m&#251;sø adresas <b><u>www.one.lt</u></b></h1></CENTER>

<br><br>
</BODY>



Parašė Zeck· 2009 Rugs. 23 10:09:33
#4

tm dekui +10 :) .

Parašė tm· 2009 Rugs. 23 11:09:51
#5

Nėr už ka ;) ...

Parašė Zeck· 2009 Rugs. 23 13:09:20
#6

Gal zinote kaip is sitos naujausiu straipsniu paneles padaryti naujausias video?

openside("Paskutiniai straipsniai ");
echo "<div class='side-label'><b>Paskutiniai straipsniai</b></div>\n";
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</tr>
</table>";



Redagavo Zeck· 2009 Rugs. 23 13:09:28

Parašė iStyle· 2009 Rugs. 23 13:09:01
#7

Pagal mane tai šitas kodas ne naujausi,bet paskutiniai straipsniai :p

Parašė Zeck· 2009 Rugs. 23 13:09:19
#8

Radai prie ko prisikabinti :] .

Parašė iStyle· 2009 Rugs. 23 13:09:30
#9

Išjunk smailus kode.

Parašė Zeck· 2009 Rugs. 23 13:09:57
#10

Isjungti .

Parašė Zeck· 2009 Rugs. 23 14:09:31
#11

Sugalvojau kaip. Gal zinot kaip padaryt kad sita koda rodytu straipniuose?

<script type="text/javascript" src="http://www.red-orchestra.xz.lt/swfobject.js"></script><div align="center"><p id="grotuvas">Jei nematai filmuko, <a href="http://www.macromedia.com/go/getflashplayer">atsisiųsk FLASH</a>.</p>
<script type="text/javascript">var s1 = new SWFObject("http://www.red-orchestra.xz.lt/player.swf", "single", "600", "400", "7");s1.addParam("allowfullscreen","true");
s1.addVariable("width","600");s1.addVariable("height","400");s1.addVariable("file","http://www.red-orchestra.xz.lt/video/asas.flv");s1.addVariable("type","flv");
s1.addVariable("showdigits","true");s1.addVariable("autostart","false");s1.addVariable("image","0x000000");
s1.addVariable("backcolor","0x33ff33");s1.addVariable("frontcolor","0x000");s1.addVariable("lightcolor","0x704200");s1.addVariable("screencolor","0x000000");s1.write("grotuvas");
</script></td>





EDIT: Nebereikia pasidariau :)

Redagavo Zeck· 2009 Rugs. 23 14:09:12

Parašė Zeck· 2009 Rugs. 23 18:09:38
#12

Niekaip nepadarau kad headeris butu centre. Gal jums pavyks?

<?

/************************/
/* Theme Settings      */
/************************/

$body_text = "#D7DCE9";
$body_bg = "#34353B";
$theme_width = "99%";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width,$settings;

   echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
   echo "<tr><td align='center' valign='top'>";
   echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
   echo "<tr><td align='center' valign='top'>";
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
   echo "<td align='center' width='60%' background='".THEME."images/cellpic_bkg.jpg' height='140'><a align='center' alt='center' href='".BASEDIR."index.php'><img src='".THEME."images/logo.png' alt='' title='".$settings[sitename]."'></td>";
   echo "<td width='40%' background='".THEME."images/cellpic_bkg.jpg' height='140'>";
   echo "</td></tr></table>";
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
   echo "<td><table width='100%' height='28' border='0' cellpadding='4' cellspacing='0'>";
   $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
   echo "<td class='cellpic'>\n";
      $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
      if ($data['link_url']!="---") {
      if ($i != 0) { echo "  <img src='".THEME."images/divider.gif' alt=''>  "; } else { echo "\n"; }
   $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
      if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
   echo "<a href='".$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
   } else {
   echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
   }
$i++;
      }
   }
}
   echo ($i == 0 ? " " : "")."</td>\n";
   echo "<td align='right' class='cellpic' nowrap><strong>".ucwords(showdate($settings['subheaderdate'], time()))."</strong>";
   echo "</td></tr></table></td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
   echo "<tr valign='top'>";
   echo "<td valign='middle' align='right'>";
   echo "<table width='100%' cellpadding='4' bgcolor='#34353B' cellspacing='0' border='0'>";
}

function render_footer($license=false) {
   
global $theme_width,$settings,$locale;

   echo "</tr>\n</table>\n";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
   echo "<td>".stripslashes($settings['footer'])."<br>";
   echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='30'>";
   echo "<tr><td class='footer' valign='middle' width='35%'>";
      if ($license == false) {
   echo "Varikliukas: Php-Fusion";
   }
   echo "</td>";
   echo "<td class='footer' align='center' width='22%'>";
   echo "Kopijuoti griežtai draudžiama © 2009 </a></td>";
   echo "<td class='footer' align='right' width='33%'><span class='stats'><b>".$settings['counter']."</b></span> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
   echo "</td></tr></table></center></table></table></table>\n";
}


function render_news($subject, $news, $info) {
   
global $locale;
   
   echo "<table border='0' style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='".THEME."images/cellpic3.gif' height='24'><img src='".THEME."images/small_arrow.gif' alt='' hspace='3'><font class='block-title'>$subject</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>&nbsp;";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {
   
global $locale;
   
   echo "<table style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='".THEME."images/cellpic3.gif' height='24'><img src='".THEME."images/small_arrow.gif' alt='' hspace='3'><font class='block-title'>$subject</font></td>";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #191928'>";
   echo "<tr><td background='".THEME."images/cellpic2.gif' bgcolor='#34353B' height='22'><font class='head-title'>&nbsp;$title</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td class='main-body'>\n";
}

// Close table end
function closetable() {
   echo "</td></tr></table>\n";
}

function openside($title) {

   echo "<table style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
   echo "<img src='".THEME."images/small_arrow.gif' alt='' hspace='3'><font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td bgcolor='#191928' class='side-body' width='100%'>";
}

function closeside() {
   echo "</td></tr></taašable border='0' cellpadding='0' cellspacing='0' width='100%'>
  <tr>
    <td width='100%' background='".THEME."images/panfoot.gif'>&nbsp;</td>
  </tr>
</table>";
   tablebreak();
}

function opensidex($title,$open="on") {

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";

   echo "<table border='0' style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
   echo "<img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".THEME."images/back1.gif'>";
   echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}


function closesidex() {

   echo "</div></td></tr></table>";
   tablebreak();
}

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>



Redagavo Zeck· 2009 Rugs. 23 18:09:52

Parašė MAnjack· 2009 Rugs. 23 19:09:58
#13

  echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";



į
  echo "<table width='100%' align='center' border='0' cellspacing='0' cellpadding='0'><tr>";



Parašė Zeck· 2009 Rugs. 23 19:09:08
#14

[c]MAnjack parašė:
  echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";



į
  echo "<table width='100%' align='center' border='0' cellspacing='0' cellpadding='0'><tr>";


[/
c]

Nepadejo :s

Parašė Zeck· 2009 Rugs. 23 19:09:01
#15

MAnjack parašė:
  echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";



į
  echo "<table width='100%' align='center' border='0' cellspacing='0' cellpadding='0'><tr>";




Nepadejo :s

Parašė Zeck· 2009 Rugs. 23 19:09:18
#16

MAnjack parašė:
  echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";



į
  echo "<table width='100%' align='center' border='0' cellspacing='0' cellpadding='0'><tr>";




Nepadejo :s

Parašė Zeck· 2009 Rugs. 25 15:09:26
#17

Gal turit kas nors game server status scripta?

Parašė Deiviux.eu· 2009 Rugs. 26 09:09:46
#18

www.phpfusion.lt tikrai rasi ;)

Parašė Zeck· 2009 Rugs. 26 15:09:15
#19

Jai linka numestum butu neblogai :) beje man ne kokiam cs ar gta reikia,o rimtam zaidimui "Red Orchestra" ;)

Parašė citni· 2009 Rugs. 26 16:09:09
#20

Ta prasme kaip hata.lt ar koks? Ar server list?

Parašė Zeck· 2009 Rugs. 26 17:09:20
#21

Kaip toki http://callofduty.lt/serveriai.php arba kaip toki http://callofdutyworld.lt/ .Seip nelabai svarbu koks tas listas bus, bet kad veiktu ant red orchestra zaidimo

Redagavo Zeck· 2009 Rugs. 26 17:09:29

Parašė Zeck· 2009 Rugs. 26 20:09:56
#22

up

Parašė Zeck· 2009 Spa. 10 16:10:17
#23

Susiduriau su didele beda. Atsidarius tinklapi http://redorchestra.lt viskas gerai bet kai nori uzeiti foruma ismeta lentele kad tinklapis kenkejiskas http://redorchestra.lt/forum/ind... . Paleiciau forumo failus vistiiek tas pats. Kaip sutvarkyti kad nemestu sio ispejimo?

Parašė iGolf· 2009 Spa. 10 16:10:58
#24

Čia reikia kažką google daryti man atrodo ir viskas bus gerai. :)

Parašė Zeck· 2009 Spa. 10 16:10:52
#25

Kazka bandau su ja daryti, bet kaip pirma karta susidures nekas gaunasi

Parašė iGolf· 2009 Spa. 10 16:10:09
#26

Yra straipsnis man atrodo Peacemaker parašytas :).

Parašė Zeck· 2009 Spa. 10 16:10:32
#27

Paieskosiu

Parašė Zeck· 2009 Spa. 11 17:10:47
#28

Turiu dar viena klausima. Kaip susikurti faila i kuri mestu uzbanintus vartotujus ir jame rasytu priezasti uz ka uzbanintas t.y ainu i Administracijos panelė/Vartotojų administracija/Juodasis sąrašas ten irasau vartotojo kuri noriu uzbaninti ip ir priezasti. Noreciau kad ta priezasti rodytu tam susikurtam faile pwz ban.php

Tikiuosi supratot esme

Parašė Zeck· 2009 Spa. 11 22:10:52
#29

up

Parašė ArturasS· 2009 Spa. 13 15:10:14
#30

Čia jau reikia į kodus lysti. Galima su fwrite funkcija tik aš nepamenu tarkim kodo kuris nuskaito nick na čia tik pvz:

$fopt = fopen("uzbaninti.txt", "w");
fwrite($fopt, "<b>Uzbanintas</b> - $nick <b>Trukmė</b> - $ban_laikas <b>Priežastis</b> - $uz_ka\n");
fclose($fopt);




Tik čia reikės sukurti tą failą ir sužinoti fusiono nick, trukmės ir priežasties nuskaityma ir šiame kode pakeisti. O kodą įmesti reikės į ta failą kuriame patvirtini baną...

Redagavo ArturasS· 2009 Spa. 13 16:10:54

Parašė Zeck· 2009 Spa. 13 15:10:16
#31

Cia kaip supratau reikia susikurti faila uzbaninti.txt ir jame irasyti uzbaninto zmogaus ip taip? O kaip suprasti mesti ta koda i faila kuriame patvirtinu bana?

Parašė ArturasS· 2009 Spa. 13 15:10:50
#32

Ne, čia reikia tik sukurti šitą failą, o šitą kodą įterpti į tą baninimo failą, nežinau kaip jis vadinasi, bet jame ten prie baninimo funkcijos įrašai kodą ir vietoj "$nick", "$ban_laikas" ir "$uz_ka" reikia įrašyti tuos nuskaitymo kodus kurie yra fusione... Čia nelabai paprasta jei nesupranti php... Nu aš nežinau kaip paiškinti.. :D

EDIT: Kodą įterpti reikai kažkur į "/administration/members.php"..

Redagavo ArturasS· 2009 Spa. 13 15:10:33

Parašė Zeck· 2009 Spa. 13 15:10:20
#33

parasysiu i skype tau geriau

Parašė Zeck· 2009 Spa. 31 00:10:46
#34

Tarkim turiu duom baze. Taciau esu antras uzsiregistraves zmogus. Ar imanoma apkeisti vietomis kad as buciau pirmas uzsiregistraves ir buciau vyriausias :?

Parašė Niger· 2009 Spa. 31 00:10:38
#35

galima ;)

Parašė Zeck· 2009 Spa. 31 01:10:40
#36

Kokiu budu? :)

Parašė Zeck· 2009 Lap. 1 23:11:29
#37

:?

Parašė Zeck· 2009 Gru. 19 21:12:45
#38

Negi niekas nezino? :( .

Parašė Zeck· 2010 Sau. 23 11:01:42
#39

Kaip padaryti kad saukykloje parasius pranesima mestu ne i news.php o i kita nuoroda :?

Parašė Pakartoti slaptažodį· 2010 Sau. 23 11:01:05
#40

infusions/shoutbox.php > FORM ACTION == 'tavo norimas psl' vietoje ".FUSION_SELF."

Parašė Zeck· 2010 Sau. 23 11:01:57
#41

Pas mane ne originalus shoutboxas. Prisegiau koki naudoju .

Parašė Pakartoti slaptažodį· 2010 Sau. 23 11:01:03
#42

130 eilutė, xxxxx pakeisk į norimą failą. :)

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
| Shoutbox v6.01.4 - Modded by Shedrock 2006
+----------------------------------------------------*/

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

if (file_exists(INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."shoutbox_panel/locale/English.php";
}

require_once INFUSIONS."shoutbox_panel/bb_script.php";

   echo "<script type='text/javascript' language='JavaScript'>
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;}
</script>

   <script type='text/javascript' src='".INFUSIONS."shoutbox_panel/editor.js'></script><script src='".INFUSIONS."shoutbox_panel/boxover.js'></script><script type='text/javascript' src='http://download.skype.com/share/skypebuttons/js/skypeCheck.js'></script>
   <script language='javascript' type='text/javascript'>

function fuzetext(elname, wrap1, wrap2) {
   if (document.selection) { // for IE
      var str = document.selection.createRange().text;
      document.forms['shoutform'].elements[elname].focus();
      var sel = document.selection.createRange();
      sel.text = wrap1 + str + wrap2;
      return;
   } else if ((typeof document.forms['shoutform'].elements[elname].selectionStart) != 'undefined') { // for Mozilla
      var txtarea = document.forms['shoutform'].elements[elname];
      var selLength = txtarea.textLength;
      var selStart = txtarea.selectionStart;
      var selEnd = txtarea.selectionEnd;
      var oldScrollTop = txtarea.scrollTop;
      //if (selEnd == 1 || selEnd == 2)
      //selEnd = selLength;
      var s1 = (txtarea.value).substring(0,selStart);
      var s2 = (txtarea.value).substring(selStart, selEnd)
      var s3 = (txtarea.value).substring(selEnd, selLength);
      txtarea.value = s1 + wrap1 + s2 + wrap2 + s3;
      txtarea.selectionStart = s1.length;
      txtarea.selectionEnd = s1.length + s2.length + wrap1.length + wrap2.length;
      txtarea.scrollTop = oldScrollTop;
      txtarea.focus();
      return;
   } else {
      insertText(elname, wrap1 + wrap2);
   }
}
</script>";

openside($locale['120']);

   if (checkrights("S") && $action == "delete" && isNum($shout_id)) {
   $result = dbquery("DELETE FROM ".DB_PREFIX."shoutbox WHERE shout_id='$shout_id'");
}
if (iMEMBER || $settings['guestposts'] == "1") {
   if (isset($_POST['post_shout'])) {
      $flood = false;
      if (iMEMBER) {
         $shout_name = $userdata['user_id'];
      } elseif ($settings['guestposts'] == "1") {
         $shout_name = trim(stripinput($_POST['shout_name']));
         $shout_name = preg_replace("(^[0-9]*)", "", $shout_name);
         if (isNum($shout_name)) $shout_name="";
      }
         $shout_message = str_replace("\n", " ", $_POST['shout_message']);
         $shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
         $shout_message = preg_replace("/([^\s]{85})/", "$1\n", $shout_message);
         $shout_message = trim(stripinput(censorwords($shout_message)));
         $shout_message = str_replace("\n", "<br>", $shout_message);

      if ($shout_name != "" && $shout_message != "") {
         $result = dbquery("SELECT MAX(shout_datestamp) AS last_shout FROM ".$db_prefix."shoutbox WHERE shout_ip='".USER_IP."'");
         if (!iSUPERADMIN || dbrows($result) > 0) {
            $data = dbarray($result);
            if ((time() - $data['last_shout']) < $settings['flood_interval']) {
               $flood = true;
               $result = dbquery("INSERT INTO ".$db_prefix."flood_control (flood_ip, flood_timestamp) VALUES ('".USER_IP."', '".time()."')");
               if (dbcount("(flood_ip)", "flood_control", "flood_ip='".USER_IP."'") > 4) {
                  if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='".$userdata['user_id']."'");
               }
            }
         }
         if (!$flood) $result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
      }
      fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
   }
//Added Ban MOD Start
   if ($step == "ban") {
      if ($act == "on") {
         if ($user_id != 1) {
            $result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='$user_id'");
            header("Location:".BASEDIR."news.php");
         }
      } elseif ($act == "off") {
         $result = dbquery("UPDATE ".$db_prefix."users SET user_status='0' WHERE user_id='$user_id'");
            header("Location:".BASEDIR."news.php");

      }
   }
//Added Ban MOD End

//Smiley Popup.
   echo "<script type='text/javascript' language='JavaScript'>
<!-- Begin
function smileys(URL) {
day = new Date();
id = day.getTime();
eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=90,left = 407,top = 329');\");
}
// End Smiley Popup-->
</script>

<form name='shoutform' method='post' action='xxxxx'>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
   if (iGUEST) {
   echo $locale['121']."<br>
<input type='text' name='shout_name' value='' class='textbox' maxlength='30' style='width:140px;'><br>".$locale['122']."<br>\n";
   }
   echo "<textarea onKeyDown=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" onKeyUp=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" id='shout_message' name='shout_message' rows='4' class='textbox' style='margin-bottom:-5px; width:140px;'>".str_replace("<br>", "", $data['shout_message'])."</textarea>
</td></tr><tr>
<td align='left'>
<input style='margin-top:10px; margin-bottom:5px;' alt='".$locale['fb_002']."' title='".$locale['fb_002']."' type='submit' name='post_shout' value='".$locale['123']."' class='button'>
</td>
<td align='right'>
<a style='text-decoration:none; font-weight:normal;' href=\"javascript:smileys('".INFUSIONS."shoutbox_panel/smileys.php')\">Šypsenėlės</a>
</td>
</tr>
</table>
</form>";

} else {
   echo "<center>".$locale['125']."</center><br>\n";
}
$result = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$numrows = dbresult($result, 0);
$result = dbquery(
   "SELECT * FROM ".$db_prefix."shoutbox LEFT JOIN ".$db_prefix."users
   ON ".$db_prefix."shoutbox.shout_name=".$db_prefix."users.user_id
   ORDER BY shout_datestamp DESC LIMIT 0,".$settings['numofshouts']
);
if (dbrows($result) != 0) {
   $i = 0;
   while ($data = dbarray($result)) {

//Modded for user ban display names.
if (iMEMBER){if ($data['user_status'] == 1) {
   echo "";
   }else{
   echo "<span class='shoutboxname'><a href=\"javascript:fuzetext('shout_message','@".$data['user_name'].":%20-%20','');\"><img src='".INFUSIONS."shoutbox_panel/amp.png' alt='".$locale['fb_006']."' title='".$locale['fb_006']."'></a></span> ";
}
   }else if ($data['user_status'] == "1") {
   echo "<span style='color:#0000FF;' title='".$locale['fb_011']."'><b># </b></span>";
   }else if ($data['user_status'] == "0"){
   echo "<img alt='' src='".THEME."images/bullet.gif'> ";
   }
if ($data['user_status'] == 1) {
      if (iMEMBER){
   echo "<span style='color:#0000FF;' title='".$locale['fb_011']."'><b># </b></span>";
   }else if ($data['user_status'] == "0"){
   echo "<img alt='' src='".THEME."images/bullet.gif'> ";
   }
}
//end ban display names.

//Modded for colored names.
      $shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
      if ($data[user_level] == "103") {
      $userx = "<font color='#F75013'><b>".$data[user_name]."</b></font>";
      }else if ($data[user_level] == "102") {
      $userx = "<font color='#008000'><b>".$data[user_name]."</b></font>";
      }else if ($data[user_level] == "101") {
      $userx = "<font color='#3333CC'><b>".$data[user_name]."</b></font>";
      }if ($data['user_status'] == 1) {
      $userx = "<font color='#B0B0B0' title='".$locale['fb_011']."'>".$data[user_name]."</font>";
}
// end color mod.

      if ($data['user_name']) {
         echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title=\"header=[ ".str_replace("]", "]]", str_replace("[", "[[", $data['user_name']))."] body=[ ".str_replace("]", "]]", str_replace("[", "[[", "<center>".($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'>" : "<img src='".IMAGES."noav.gif' alt='".$locale['u017']."'>")."</center><br /><b>Forumo žinučių:</b> ".$data['user_posts']."<br>".($data['user_aim'] ? "<img src='http://mystatus.skype.com/smallclassic/".$data['user_aim']."' style='border: none;' alt='".$data['user_aim']."' />" : "").""))."]\">$userx</a>";
      } else {
         echo $data['shout_name']."\n";
      }
      echo "<br>\n<span class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</span>";

   $wiadomosc = nl2br(parseshoutubb(parseubb(parsesmileys($data['shout_message']))));
   $shout_wiadomosc = wordwrap($wiadomosc , 500, " ", 1);

         if ($userdata['user_level'] >= 103) {
         echo "<br>\n[<a href='".ADMIN."shoutbox.php".$aidlink."&amp;action=edit&amp;shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> - <a href='".FUSION_SELF.$aidlink."&amp;action=delete&amp;shout_id=".$data['shout_id']."' class='side'>Trinti</a>] ";
         if ($data['user_status'] == "1") {
         echo "[<a href='".FUSION_SELF.$aidlink."&amp;step=ban&amp;act=off&amp;sortby=$sortby&amp;rowstart=$rowstart&amp;user_id=".$data['user_id']."' class='side'>BAN</a>]";
         }else if ($data[user_level] == "103") {
         echo"";
         }else if ($data['user_status'] == "0") {
         echo "[<a href='".FUSION_SELF.$aidlink."&amp;step=ban&amp;act=on&amp;sortby=$sortby&amp;rowstart=$rowstart&amp;user_id=".$data['user_id']."' class='side'>BAN</a>]";
         }
   echo "<br><span style='font-size:8px;'>".$locale['fb_010']."".$data['user_ip']."</span><br>";
   } else {
   echo "<br>\n";
}
      echo "<span class='shoutbox'>".$shout_wiadomosc ."</span><br>\n";
      if ($i != $numrows) echo "<br>\n";
   }
   if ($numrows > $settings['numofshouts']) {
      echo "<center>\n<img src='".THEME."images/bullet.gif' alt=''>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a>
<img src='".THEME."images/bulletb.gif' alt=''></center>\n";
   }
} else {
   echo "<div align='left'>".$locale['127']."</div>\n";
}
closeside();
?>




Parašė Zeck· 2010 Sau. 23 11:01:50
#43

Neveikia ?|

Parašė And2s· 2010 Sau. 23 12:01:30
#44

Viskas veikia, tiesiog jis pakeite į "xxxxx" tai todel tave redirectina i 404 klaida. 130 eilutej pasikeisk i kokį nori failą.

Parašė Zeck· 2010 Sau. 23 12:01:09
#45

As minejau kokias nors klaidas? ta xxxxx as pakeiciau nedurnas juk.... bet vistiek nemeta i koki noriu faila

Redagavo Zeck· 2010 Sau. 23 12:01:58

Parašė Pakartoti slaptažodį· 2010 Sau. 23 12:01:36
#46

Parodyk kaip pakeitei tą eilutę. :)

Parašė Zeck· 2010 Sau. 23 14:01:16
#47

// End Smiley Popup-->
</script>

<form name='shoutform' method='post' action='naujienos'>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
   if (iGUEST) {
   echo $locale['121']."<br>
<input type='text' name='shout_name' value='' class='textbox' maxlength='30' style='width:140px;'><br>".$locale['122']."<br>\n";
   }




Po to bandziau tiesiogine nuoroda

// End Smiley Popup-->
</script>

<form name='shoutform' method='post' action='http://redorchestra.lt/naujienos'>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
   if (iGUEST) {
   echo $locale['121']."<br>
<input type='text' name='shout_name' value='' class='textbox' maxlength='30' style='width:140px;'><br>".$locale['122']."<br>\n";
   }




Beje pas mane idiegta seo

Parašė Zeck· 2010 Bal. 17 19:04:02
#48

Straipsniuose radau tokia pamoka https://webdnd.com/paneles-abi-v...pusej,s128 Pakeitus side-left ir side-right kodus abidvi paneles atsiranda kairei pusei, o kaip padaryti kad juos atsidurtu desineje?

Parašė Zeck· 2010 Bal. 17 20:04:45
#49

Straipsniuose radau tokia pamoka https://webdnd.com/paneles-abi-v...pusej,s128 Pakeitus side-left ir side-right kodus abidvi paneles atsiranda kairei pusei, o kaip padaryti kad juos atsidurtu desineje?

Parašė Zeck· 2010 Geg. 22 20:05:32
#50

Šiandien užeinu i saita o jis susikraipes :| gal zinot kas cia negerai? url http://redorchestra.lt

Parašė Zeck· 2010 Geg. 27 22:05:51
#51

Susikuriu .htaccess failiuka i ji irasau

AuthName "Section Name"
AuthType Basic
AuthUserFile /administrator/.htpasswd
Require valid-user

P to susikuriu .htpasswd

susigeneruoju koda iklijuoju uzsaugau ir sumetu i ftp. Noriu eiti i adminke praso nick pass suvedu ir ismeta error
The page you are looking for is temporarily unavailable.
Please try again later.


.

Gal kas zino del ko?

Parašė Zeck· 2010 Bir. 5 14:06:15
#52

Sveiki. Prireikė jūsų pagalbos. Sugalvojau į naujienas įdiegti seo, susiradau pamoką viska padariau kaip rašė ir ant galo rašo, kad reikia theme.php faile šita kodą

echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);




pakeisti šitu

echo openform("N",$info['news_id']).newsposter($info," ·")
.seonewsopts($info,"·").closeform("N",$info['news_id']);





Viskas būtų be problemų tačiau aš savo theme.php faile naujienas esu persidaręs


<td align='right' class='news-footer' ><a  href='news.php?readmore=". $info ['news_id']."' class='ni' style='padding-right: 20px;'><u>Skaityti daugiau</u></a>
<a  href='news.php?readmore=".$info['news_id']."'  class='ni' style='padding-right: 20px;'><u>Komentarai:[".$info['news_comments']."]</u></a>\n";

echo "</td>
</tr>
</table>\n";

}





Taigi klausimas būtų toks ar eitų į mano koda kaip nors įkišti ta antrą kodą, kad veiktų seo?

Redagavo Zeck· 2010 Bir. 5 14:06:09

Parašė .Vaidas.· 2010 Bir. 5 14:06:31
#53

Kodėl niekas jam nepadeda, aš čia beveik nieko neįkertu. :DD

Parašė Impossibru· 2010 Bir. 5 14:06:49
#54

Kokį tu čia SEO naudoji?

Parašė Zeck· 2010 Bir. 5 15:06:09
#55

Kaip suprast koki? Naujienu, su seoname ir .htaccess

http://www.phpfusion-mods.net/ar...ticle_id=3

Redagavo Zeck· 2010 Bir. 5 15:06:11

Parašė Impossibru· 2010 Bir. 5 16:06:36
#56

Matos kaip skaitai gerai, 5 komentaras po tuo straipsniu:
News:

Find:

$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);

Add below:

// Seo mod begin
$seoSubject = stripslashes($data['news_subject']);
// Seo mod end

Find:

$news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat_id']."'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Replace with:

$news_cat_image = "<a href='".seoname($data['news_cat_name'])."-nc".$data['news_cat_id'].".htm'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Find:

$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> ·\n" : "";

Replace with:

$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$locale['042']."</a> ·\n" : "";

Find:

$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Replace with:

$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Find:

$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> ·\n" : "";

Replace with:

$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$locale['042']."</a> ·\n" : "";

Find:

$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Replace with:

$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Find:

$ncount++;
} else {

Add below:

$news_info['news_subject'] = $seoSubject;

Find:

$news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Replace with:

$news_cat_image = "<a href='".seoname($data2['news_cat_name'])."-nc".$data2['news_cat_id'].".htm'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Done!

Parašė Zeck· 2010 Bir. 5 16:06:08
#57

news.php buvo pridetas ;) maciau sita pagalvojau kad cia tiem kurie kazka yra dare su savo news.php ir kad patys pasiredaguotu

Parašė Zeck· 2010 Bir. 6 18:06:09
#58

Pasidariau tokia nuoroda <a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".htm'>

Bet kai spaudziu skaityti daugiau tinklapis persikrauna ir viskas, neparodo visos naujienos. Gal galit kas patvarkyt sita nuoroda

Redagavo Zeck· 2010 Bir. 6 18:06:46

Parašė Zeck· 2010 Bir. 6 19:06:24
#59

Pasidariau tokia nuoroda <a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".htm'>

Bet kai spaudziu skaityti daugiau tinklapis persikrauna ir viskas, neparodo visos naujienos. Gal galit kas patvarkyt sita nuoroda

Parašė edeni· 2010 Bir. 6 19:06:24
#60

<a href='".seoname($subject)."-rn".$info['news_id'].".html>



Parašė Zeck· 2010 Bir. 6 19:06:09
#61

Goku viskas butu klase bet nuoroda nekokia gaunas

%3Ca-name-news-18-id-news-18-%3E%3C-a%3EPati-naujausia-naujiena-rn1.html




Gal dar galetum pakoreguoti koda kad sita eilute dingtu?
%3Ca-name-news-18-id-news-18-%3E%3C-a%3E




EDIT: paspaudiau perziureti kitas naujienas ir is viso pradejo nebeveikti :| nuoroda meta ta pacia bet klaida ismeta ?:|

Redagavo Zeck· 2010 Bir. 6 19:06:51

Parašė edeni· 2010 Bir. 6 19:06:19
#62

      <?
       
      function seoname($seoit) {
      $seoit = strip_tags($seoit);
      $seoit = str_replace('=',' ',$seoit);
      $seoit = str_replace('/',' ',$seoit);
      $seoit = str_replace('\\',' ',$seoit);
      $seoit = str_replace('@',' ',$seoit);
      $seoit = str_replace('~',' ',$seoit);
      $seoit = str_replace('!',' ',$seoit);
      $seoit = str_replace('£',' ',$seoit);
      $seoit = str_replace('?',' ',$seoit);
      $seoit = str_replace('!',' ',$seoit);
      $seoit = str_replace('$',' ',$seoit);
      $seoit = str_replace('%',' ',$seoit);
      $seoit = str_replace('^',' ',$seoit);
      $seoit = str_replace('*',' ',$seoit);
      $seoit = str_replace('_',' ',$seoit);
      $seoit = str_replace('{',' ',$seoit);
      $seoit = str_replace('}',' ',$seoit);
      $seoit = str_replace('[',' ',$seoit);
      $seoit = str_replace(']',' ',$seoit);
      $seoit = str_replace('-',' ',$seoit);
      $seoit = str_replace(' & ',' ',$seoit);
      $seoit = str_replace('"',' ',$seoit);
      $seoit = str_replace('.',' ',$seoit);
      $seoit = str_replace('\'',' ',$seoit);
      $seoit = str_replace(',',' ',$seoit);
      $seoit = str_replace(' ','-',$seoit);
      $seoit = str_replace(' ','-',$seoit);
      $seoit = str_replace(' ','-',$seoit);
      $seoit = str_replace(':','',$seoit);
      $seoit = str_replace('#','',$seoit);
      $seoit = str_replace('(','',$seoit);
      $seoit = str_replace(')','',$seoit);
      $seoit = str_replace('---','-',$seoit);
      $seoit = str_replace('--','-',$seoit);
      $seoit = strtolower($seoit);
      return $seoit;
      }

      function seonewsopts($info,$sep,$class="") {
      global $locale; $res = "";
      $link_class = $class ? " class='$class' " : "";
      if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='".seoname($info['news_subject'])."-rn".$info['news_id'].".htm'".$link_class.">".$locale['042']."</a> ".$sep." ";
      if ($info['news_allow_comments']) $res .= "<a href='".seoname($info['news_subject'])."-rn".$info['news_id'].".htm'".$link_class.">".$info['news_comments'].$locale['043']."</a> ".$sep." ";
      if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['044']."\n";
      $res .= $sep." <a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>\n";
      return $res;
      }
      ?>




įdėk šita seoname.php failą ir nesakyk, kad neveikia pats esu taip pasidaręs ir kuo puikiausiai veikia. Jeigu neveikia reiškia rankos kreivos.

Redagavo edeni· 2010 Bir. 6 19:06:38

Parašė Zeck· 2010 Bir. 6 19:06:30
#63

Dabar nuoroda tobula, taciau neatidaro puslapio, not found meta. O pries tai viska puikiai atidare, nesuprantu kas cia pasidare

Parašė edeni· 2010 Bir. 6 19:06:27
#64

Tai čia jau pas tave problemos, nes pas mane kuo puikiausiai veikia.

Atsidaryk .htaccess ir ten įrašyk

RewriteRule ^(.*)-rn([0-9]*).html$ news.php?readmore=$2 [L,NC]



Redagavo edeni· 2010 Bir. 6 19:06:20

Parašė Zeck· 2010 Bir. 6 19:06:56
#65

Gal news.php neatitinka?

Parašė Impossibru· 2010 Bir. 6 20:06:20
#66

".seoname($info['news_subject'])."-rn".$info['news_id'].".htm



Žiūrėkis .htaccess failą kaip yra parašyta jau...

Parašė Zeck· 2010 Bir. 6 20:06:09
#67

Abiem po +10 pas Goku buvo galune html Del to nieko ir nesigavo. Dekui abiem :)

Parašė Zeck· 2010 Bir. 7 14:06:39
#68

Gal kas žino iš kur gauti toki arba panašų balsavimo scripta?



Parašė edeni· 2010 Bir. 7 14:06:59
#69

Ant V7 http://www.ltfusion.lt/siuntinys,35

Parašė Zeck· 2010 Bir. 7 14:06:21
#70

O ant v6 nera?

Parašė DEMO_user· 2010 Bir. 7 17:06:28
#71

Yra, mačiau ant kelių svetainių, bet ainu dar paieškoti internete, gal raiu įmesiu.

Parašė Zeck· 2010 Bir. 7 22:06:44
#72

Butu neblogai ;) pats ieskojau neradau :D

Parašė Zeck· 2010 Bir. 7 22:06:23
#73

Butu neblogai ;) pats ieskojau bet v6 neradau :D

Parašė Zeck· 2010 Bir. 16 23:06:08
#74

Gal kas galetu is search.php istrinti visus pasirinkimus ko ieskoti ir palikti jog ieskotu tik naujienu? :)

Stai kodas

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."search.php";

$news_per_page = 11; $posts_per_page = 20;

if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;

if (isset($stype)) $stype = $stype;
if (isset($stext)) $stext = stripinput($stext);

if (!isset($stype)) $stype = isset($_POST['stype']) ? $_POST['stype'] : "a";
if (!isset($stext)) $stext = isset($_POST['stext']) ? stripinput($_POST['stext']) : "";

opentable($locale['400']);
echo "<center>
<form name='searchform' method='post' action='".FUSION_SELF."'>
".$locale['401']." <input type='text' name='stext' value='$stext' class='textbox' style='width:200px'>
<input type='submit' name='search' value='".$locale['408']."' class='button'><br>
<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['402']."
<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['403']."
<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['404']."
<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['405']."
<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['406']."
<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['407']."
</form>
</center>\n";
closetable();

if ($stext != "" && strlen($stext) >= "3") {
   tablebreak();
   opentable($locale['409']);
   if ($stype == "a") {
      $result = dbquery(
         "SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
         INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
         WHERE ".groupaccess('article_cat_access')." AND (article_subject LIKE '%$stext%' || article_article LIKE '%$stext%')"
      );
      $rows = dbrows($result);
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['410'] : $locale['411']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT ta.*,tac.*, tu.user_id,user_name FROM ".$db_prefix."articles ta
            INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
            LEFT JOIN ".$db_prefix."users tu ON ta.article_name=tu.user_id
            WHERE ".groupaccess('article_cat_access')." AND (article_subject LIKE '%$stext%' || article_article LIKE '%$stext%')
            ORDER BY article_datestamp DESC LIMIT $rowstart,10"
         );
         while ($data = dbarray($result)) {
            if (eregi($stext, $data['article_subject']) && eregi($stext, $data['article_article'])) {
               $subj_c = substr_count(strtolower($data['article_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['article_article']), strtolower($stext));
               echo "<a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['article_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['433'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['434']."</span><br><br>";
            } elseif (eregi($stext, $data['article_article'])) {
               $text_c = substr_count(strtolower($data['article_article']), strtolower($stext));
               echo "<a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['article_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['434']."</span><br><br>";
            } elseif (eregi($stext, $data['article_subject'])) {
               $subj_c = substr_count(strtolower($data['article_subject']), strtolower($stext));
               echo "<a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['article_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['433']."</span><br>";
            }
         }
      } else {
         echo "<center>0 ".$locale['411'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=a&amp;stext=$stext&amp;")."\n</div>\n";
   } else   if ($stype == "n") {
      $rows = dbcount("(news_id)", "news", groupaccess('news_visibility')."AND (news_subject LIKE '%$stext%' || news_news LIKE '%$stext%' || news_extended LIKE '%$stext%')");
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['412'] : $locale['413']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT tn.*, user_id, user_name FROM ".$db_prefix."news tn
            LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
            WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().")
            AND (news_end='0'||news_end>=".time().") AND (news_subject LIKE '%$stext%' || news_news LIKE '%$stext%' || news_extended LIKE '%$stext%')
            ORDER BY news_datestamp DESC LIMIT $rowstart,10"
         );
         while ($data = dbarray($result)) {
            $numrows = dbcount("(news_id)", "news", groupaccess('news_visibility')." AND news_id>='".$data['news_id']."'");
            if ($numrows > $news_per_page) {
               $rstart = ceil($numrows / $news_per_page);
               $rstart = "?rowstart=".(($rstart-1)*$news_per_page);
            } else {
               $rstart = "";
            }
            if (eregi($stext, $data['news_subject']) && eregi($stext, $data['news_news']) && eregi($stext, $data['news_extended'])) {
               $subj_c = substr_count(strtolower($data['news_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['news_news']), strtolower($stext));
               $text_c2 = substr_count(strtolower($data['news_extended']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['435'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['436'].", ";
               echo $text_c2." ".($text_c2 == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            } elseif (eregi($stext, $data['news_subject']) && eregi($stext, $data['news_news'])) {
               $subj_c = substr_count(strtolower($data['news_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['news_news']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['435'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['436']."</span><br><br>";
            } elseif (eregi($stext, $data['news_subject']) && eregi($stext, $data['news_extended'])) {
               $subj_c = substr_count(strtolower($data['news_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['news_extended']), strtolower($stext));
               echo "<a href='news.php?readmore=".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['435'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            } elseif (eregi($stext, $data['news_news']) && eregi($stext, $data['news_extended'])) {
               $text_c = substr_count(strtolower($data['news_news']), strtolower($stext));
               $text_c2 = substr_count(strtolower($data['news_extended']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['436'].", ";
               echo $text_c2." ".($text_c2 == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            } elseif (eregi($stext, $data['news_news'])) {
               $text_c = substr_count(strtolower($data['news_news']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['436']."</span><br><br>";
            } elseif (eregi($stext, $data['news_extended'])) {
               $text_c = substr_count(strtolower($data['news_extended']), strtolower($stext));
               echo "<a href='news.php?readmore=".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            } elseif (eregi($stext, $data['news_subject'])) {
               $subj_c = substr_count(strtolower($data['news_subject']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            }
         }
      } else {
         echo "<center>0 ".$locale['413'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=n&amp;stext=$stext&amp;")."\n</div>\n";
   } elseif ($stype == "f") {
      $result = dbquery(
         "SELECT tp.*, tf.* FROM ".$db_prefix."posts tp
         INNER JOIN ".$db_prefix."forums tf USING(forum_id)
         WHERE ".groupaccess('forum_access')." AND (post_subject LIKE '%$stext%' || post_message LIKE '%$stext%')"
      );
      $rows = dbrows($result);
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['414'] : $locale['415']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT tp.*, tf.*, tu.user_id,user_name FROM ".$db_prefix."posts tp
            INNER JOIN ".$db_prefix."forums tf USING(forum_id)
            INNER JOIN ".$db_prefix."users tu ON tp.post_author=tu.user_id
            WHERE ".groupaccess('forum_access')." AND (post_subject LIKE '%$stext%' || post_message LIKE '%$stext%')
            ORDER BY post_datestamp DESC LIMIT $rowstart,10"
         );
         while ($data = dbarray($result)) {
            if (eregi($stext, $data['post_subject']) && eregi($stext, $data['post_message'])) {
               $subj_c = substr_count(strtolower($data['post_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['post_message']), strtolower($stext));
               echo "<a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>".$data['post_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['post_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['438'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['439']."</span><br><br>";
            } elseif (eregi($stext, $data['post_message'])) {
               $text_c = substr_count(strtolower($data['post_message']), strtolower($stext));
               echo "<a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>".$data['post_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['post_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['439']."</span><br><br>";
            } elseif (eregi($stext, $data['post_subject'])) {
               $subj_c = substr_count(strtolower($data['post_subject']), strtolower($stext));
               echo "<a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>".$data['post_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['post_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['438']."</span><br><br>";
            }
         }
      } else {
         echo "<center>0 ".$locale['415'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=f&amp;stext=$stext&amp;")."\n</div>\n";
   } elseif ($stype == "d") {
      $result = dbquery(
         "SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
         INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
         WHERE ".groupaccess('download_cat_access')." AND (download_title LIKE '%$stext%' || download_description LIKE '%$stext%')"
      );
      $rows = dbrows($result);
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['416'] : $locale['417']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
            INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
            WHERE ".groupaccess('download_cat_access')." AND (download_title LIKE '%$stext%' || download_description LIKE '%$stext%')
            ORDER BY download_title LIMIT $rowstart,10"
         );
         $i = 1;
         while ($data = dbarray($result)) {
            if ($data['download_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
               $new = " <span class='small'>".$locale['450']."</span>";
            } else {
               $new = "";
            }
            echo "<a href='downloads.php?cat_id=".$data['download_cat']."&amp;download_id=".$data['download_id']."' target='_blank'>".$data['download_title']."</a> - ".$data['download_filesize']." $new<br>\n";
            if ($data['download_description'] != "") echo stripslashes($data['download_description'])."<br>\n";
            echo "<span class='small'><font class='alt'>".$locale['451']."</font> ".$data['download_license']." |
<font class='alt'>".$locale['452']."</font> ".$data['download_os']." |
<font class='alt'>".$locale['453']."</font> ".$data['download_version']."<br>
<font class='alt'>".$locale['454']."</font> ".showdate("%d.%m.%y", $data['download_datestamp'])." |
<font class='alt'>".$locale['455']."</font> ".$data['download_count']."</span>\n";
            if ($i != $numrows) { echo "<br><br>\n"; } else { echo "\n"; }
            $i++;
         }
      } else {
         echo "<center>0 ".$locale['417'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=d&amp;stext=$stext&amp;")."\n</div>\n";
   } elseif ($stype == "w") {
      $result = dbquery(
         "SELECT tw.*,twc.* FROM ".$db_prefix."weblinks tw
         INNER JOIN ".$db_prefix."weblink_cats twc ON tw.weblink_cat=twc.weblink_cat_id
         WHERE ".groupaccess('weblink_cat_access')." AND (weblink_name LIKE '%$stext%' || weblink_description LIKE '%$stext%')"
      );
      $rows = dbrows($result);
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['418'] : $locale['419']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT tw.*,twc.* FROM ".$db_prefix."weblinks tw
            INNER JOIN ".$db_prefix."weblink_cats twc ON tw.weblink_cat=twc.weblink_cat_id
            WHERE ".groupaccess('weblink_cat_access')." AND (weblink_name LIKE '%$stext%' || weblink_description LIKE '%$stext%')
            ORDER BY weblink_name LIMIT $rowstart,10"
         );
         $i = 1;
         while ($data = dbarray($result)) {
            if ($data['weblink_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
               $new = " <span class='small'>".$locale['450']."</span>";
            } else {
               $new = "";
            }
            echo "<a href='weblinks.php?cat_id=".$data['weblink_cat']."&amp;weblink_id=".$data['weblink_id']."' target='_blank'>".$data['weblink_name']."</a>$new<br>\n";
            if ($data['weblink_description'] != "") echo $data['weblink_description']."<br>\n";
            echo "<span class='small'><font class='alt'>".$locale['454']."</font> ".showdate("%d.%m.%y", $data['weblink_datestamp'])." |
<span class='alt'>".$locale['456']."</span> ".$data['weblink_count']."</span>";
            echo ($i != $numrows ? "<br><br>\n" : "\n"); $i++;
         }
      } else {
         echo "<center>0 ".$locale['419'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=w&amp;stext=$stext&amp;")."\n</div>\n";
   } elseif ($stype == "m") {
      $rows = dbcount("(user_id)", "users", "user_name LIKE '%$stext%'");
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['420'] : $locale['421']).$locale['422'].":<br><br>\n";
         $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name LIKE '%$stext%' ORDER BY user_name");
         while ($data = dbarray($result)) {
            echo "<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
         }
      } else {
         echo "<center>0 ".$locale['421'].$locale['422'].".</center>\n";
      }
      closetable();
   }
}

require_once "side_right.php";
require_once "footer.php";
?>



Parašė Zeck· 2010 Bir. 17 14:06:27
#75

Gal kas galetu is search.php istrinti visus pasirinkimus ko ieskoti ir palikti jog ieskotu tik naujienu? :)

Stai kodas

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."search.php";

$news_per_page = 11; $posts_per_page = 20;

if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;

if (isset($stype)) $stype = $stype;
if (isset($stext)) $stext = stripinput($stext);

if (!isset($stype)) $stype = isset($_POST['stype']) ? $_POST['stype'] : "a";
if (!isset($stext)) $stext = isset($_POST['stext']) ? stripinput($_POST['stext']) : "";

opentable($locale['400']);
echo "<center>
<form name='searchform' method='post' action='".FUSION_SELF."'>
".$locale['401']." <input type='text' name='stext' value='$stext' class='textbox' style='width:200px'>
<input type='submit' name='search' value='".$locale['408']."' class='button'><br>
<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['402']."
<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['403']."
<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['404']."
<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['405']."
<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['406']."
<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['407']."
</form>
</center>\n";
closetable();

if ($stext != "" && strlen($stext) >= "3") {
   tablebreak();
   opentable($locale['409']);
   if ($stype == "a") {
      $result = dbquery(
         "SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
         INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
         WHERE ".groupaccess('article_cat_access')." AND (article_subject LIKE '%$stext%' || article_article LIKE '%$stext%')"
      );
      $rows = dbrows($result);
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['410'] : $locale['411']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT ta.*,tac.*, tu.user_id,user_name FROM ".$db_prefix."articles ta
            INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
            LEFT JOIN ".$db_prefix."users tu ON ta.article_name=tu.user_id
            WHERE ".groupaccess('article_cat_access')." AND (article_subject LIKE '%$stext%' || article_article LIKE '%$stext%')
            ORDER BY article_datestamp DESC LIMIT $rowstart,10"
         );
         while ($data = dbarray($result)) {
            if (eregi($stext, $data['article_subject']) && eregi($stext, $data['article_article'])) {
               $subj_c = substr_count(strtolower($data['article_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['article_article']), strtolower($stext));
               echo "<a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['article_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['433'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['434']."</span><br><br>";
            } elseif (eregi($stext, $data['article_article'])) {
               $text_c = substr_count(strtolower($data['article_article']), strtolower($stext));
               echo "<a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['article_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['434']."</span><br><br>";
            } elseif (eregi($stext, $data['article_subject'])) {
               $subj_c = substr_count(strtolower($data['article_subject']), strtolower($stext));
               echo "<a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['article_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['433']."</span><br>";
            }
         }
      } else {
         echo "<center>0 ".$locale['411'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=a&amp;stext=$stext&amp;")."\n</div>\n";
   } else   if ($stype == "n") {
      $rows = dbcount("(news_id)", "news", groupaccess('news_visibility')."AND (news_subject LIKE '%$stext%' || news_news LIKE '%$stext%' || news_extended LIKE '%$stext%')");
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['412'] : $locale['413']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT tn.*, user_id, user_name FROM ".$db_prefix."news tn
            LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
            WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().")
            AND (news_end='0'||news_end>=".time().") AND (news_subject LIKE '%$stext%' || news_news LIKE '%$stext%' || news_extended LIKE '%$stext%')
            ORDER BY news_datestamp DESC LIMIT $rowstart,10"
         );
         while ($data = dbarray($result)) {
            $numrows = dbcount("(news_id)", "news", groupaccess('news_visibility')." AND news_id>='".$data['news_id']."'");
            if ($numrows > $news_per_page) {
               $rstart = ceil($numrows / $news_per_page);
               $rstart = "?rowstart=".(($rstart-1)*$news_per_page);
            } else {
               $rstart = "";
            }
            if (eregi($stext, $data['news_subject']) && eregi($stext, $data['news_news']) && eregi($stext, $data['news_extended'])) {
               $subj_c = substr_count(strtolower($data['news_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['news_news']), strtolower($stext));
               $text_c2 = substr_count(strtolower($data['news_extended']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['435'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['436'].", ";
               echo $text_c2." ".($text_c2 == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            } elseif (eregi($stext, $data['news_subject']) && eregi($stext, $data['news_news'])) {
               $subj_c = substr_count(strtolower($data['news_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['news_news']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['435'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['436']."</span><br><br>";
            } elseif (eregi($stext, $data['news_subject']) && eregi($stext, $data['news_extended'])) {
               $subj_c = substr_count(strtolower($data['news_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['news_extended']), strtolower($stext));
               echo "<a href='news.php?readmore=".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['435'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            } elseif (eregi($stext, $data['news_news']) && eregi($stext, $data['news_extended'])) {
               $text_c = substr_count(strtolower($data['news_news']), strtolower($stext));
               $text_c2 = substr_count(strtolower($data['news_extended']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['436'].", ";
               echo $text_c2." ".($text_c2 == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            } elseif (eregi($stext, $data['news_news'])) {
               $text_c = substr_count(strtolower($data['news_news']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['436']."</span><br><br>";
            } elseif (eregi($stext, $data['news_extended'])) {
               $text_c = substr_count(strtolower($data['news_extended']), strtolower($stext));
               echo "<a href='news.php?readmore=".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            } elseif (eregi($stext, $data['news_subject'])) {
               $subj_c = substr_count(strtolower($data['news_subject']), strtolower($stext));
               echo "<a href='news.php".$rstart."#news_".$data['news_id']."'>".$data['news_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['news_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['437']."</span><br><br>";
            }
         }
      } else {
         echo "<center>0 ".$locale['413'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=n&amp;stext=$stext&amp;")."\n</div>\n";
   } elseif ($stype == "f") {
      $result = dbquery(
         "SELECT tp.*, tf.* FROM ".$db_prefix."posts tp
         INNER JOIN ".$db_prefix."forums tf USING(forum_id)
         WHERE ".groupaccess('forum_access')." AND (post_subject LIKE '%$stext%' || post_message LIKE '%$stext%')"
      );
      $rows = dbrows($result);
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['414'] : $locale['415']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT tp.*, tf.*, tu.user_id,user_name FROM ".$db_prefix."posts tp
            INNER JOIN ".$db_prefix."forums tf USING(forum_id)
            INNER JOIN ".$db_prefix."users tu ON tp.post_author=tu.user_id
            WHERE ".groupaccess('forum_access')." AND (post_subject LIKE '%$stext%' || post_message LIKE '%$stext%')
            ORDER BY post_datestamp DESC LIMIT $rowstart,10"
         );
         while ($data = dbarray($result)) {
            if (eregi($stext, $data['post_subject']) && eregi($stext, $data['post_message'])) {
               $subj_c = substr_count(strtolower($data['post_subject']), strtolower($stext));
               $text_c = substr_count(strtolower($data['post_message']), strtolower($stext));
               echo "<a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>".$data['post_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['post_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['438'].", ";
               echo $text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['439']."</span><br><br>";
            } elseif (eregi($stext, $data['post_message'])) {
               $text_c = substr_count(strtolower($data['post_message']), strtolower($stext));
               echo "<a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>".$data['post_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['post_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$text_c." ".($text_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['439']."</span><br><br>";
            } elseif (eregi($stext, $data['post_subject'])) {
               $subj_c = substr_count(strtolower($data['post_subject']), strtolower($stext));
               echo "<a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;pid=".$data['post_id']."#post_".$data['post_id']."'>".$data['post_subject']."</a><br>\n";
               echo "<span class='small2'>".$locale['040']."<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>\n";
               echo $locale['041'].showdate("longdate", $data['post_datestamp'])."</span><br>\n";
               echo "<span class='small'>".$subj_c." ".($subj_c == 1 ? $locale['430'] : $locale['431']).$locale['432'].$locale['438']."</span><br><br>";
            }
         }
      } else {
         echo "<center>0 ".$locale['415'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=f&amp;stext=$stext&amp;")."\n</div>\n";
   } elseif ($stype == "d") {
      $result = dbquery(
         "SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
         INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
         WHERE ".groupaccess('download_cat_access')." AND (download_title LIKE '%$stext%' || download_description LIKE '%$stext%')"
      );
      $rows = dbrows($result);
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['416'] : $locale['417']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
            INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
            WHERE ".groupaccess('download_cat_access')." AND (download_title LIKE '%$stext%' || download_description LIKE '%$stext%')
            ORDER BY download_title LIMIT $rowstart,10"
         );
         $i = 1;
         while ($data = dbarray($result)) {
            if ($data['download_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
               $new = " <span class='small'>".$locale['450']."</span>";
            } else {
               $new = "";
            }
            echo "<a href='downloads.php?cat_id=".$data['download_cat']."&amp;download_id=".$data['download_id']."' target='_blank'>".$data['download_title']."</a> - ".$data['download_filesize']." $new<br>\n";
            if ($data['download_description'] != "") echo stripslashes($data['download_description'])."<br>\n";
            echo "<span class='small'><font class='alt'>".$locale['451']."</font> ".$data['download_license']." |
<font class='alt'>".$locale['452']."</font> ".$data['download_os']." |
<font class='alt'>".$locale['453']."</font> ".$data['download_version']."<br>
<font class='alt'>".$locale['454']."</font> ".showdate("%d.%m.%y", $data['download_datestamp'])." |
<font class='alt'>".$locale['455']."</font> ".$data['download_count']."</span>\n";
            if ($i != $numrows) { echo "<br><br>\n"; } else { echo "\n"; }
            $i++;
         }
      } else {
         echo "<center>0 ".$locale['417'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=d&amp;stext=$stext&amp;")."\n</div>\n";
   } elseif ($stype == "w") {
      $result = dbquery(
         "SELECT tw.*,twc.* FROM ".$db_prefix."weblinks tw
         INNER JOIN ".$db_prefix."weblink_cats twc ON tw.weblink_cat=twc.weblink_cat_id
         WHERE ".groupaccess('weblink_cat_access')." AND (weblink_name LIKE '%$stext%' || weblink_description LIKE '%$stext%')"
      );
      $rows = dbrows($result);
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['418'] : $locale['419']).$locale['422'].":<br><br>\n";
         $result = dbquery(
            "SELECT tw.*,twc.* FROM ".$db_prefix."weblinks tw
            INNER JOIN ".$db_prefix."weblink_cats twc ON tw.weblink_cat=twc.weblink_cat_id
            WHERE ".groupaccess('weblink_cat_access')." AND (weblink_name LIKE '%$stext%' || weblink_description LIKE '%$stext%')
            ORDER BY weblink_name LIMIT $rowstart,10"
         );
         $i = 1;
         while ($data = dbarray($result)) {
            if ($data['weblink_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
               $new = " <span class='small'>".$locale['450']."</span>";
            } else {
               $new = "";
            }
            echo "<a href='weblinks.php?cat_id=".$data['weblink_cat']."&amp;weblink_id=".$data['weblink_id']."' target='_blank'>".$data['weblink_name']."</a>$new<br>\n";
            if ($data['weblink_description'] != "") echo $data['weblink_description']."<br>\n";
            echo "<span class='small'><font class='alt'>".$locale['454']."</font> ".showdate("%d.%m.%y", $data['weblink_datestamp'])." |
<span class='alt'>".$locale['456']."</span> ".$data['weblink_count']."</span>";
            echo ($i != $numrows ? "<br><br>\n" : "\n"); $i++;
         }
      } else {
         echo "<center>0 ".$locale['419'].$locale['422'].".</center>\n";
      }
      closetable();
      if ($rows > 10) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,10,$rows,3,FUSION_SELF."?stype=w&amp;stext=$stext&amp;")."\n</div>\n";
   } elseif ($stype == "m") {
      $rows = dbcount("(user_id)", "users", "user_name LIKE '%$stext%'");
      if ($rows != 0) {
         echo $rows." ".($rows == 1 ? $locale['420'] : $locale['421']).$locale['422'].":<br><br>\n";
         $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name LIKE '%$stext%' ORDER BY user_name");
         while ($data = dbarray($result)) {
            echo "<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
         }
      } else {
         echo "<center>0 ".$locale['421'].$locale['422'].".</center>\n";
      }
      closetable();
   }
}

require_once "side_right.php";
require_once "footer.php";
?>



Parašė Zeck· 2010 Bir. 18 23:06:46
#76

Sveiki. Gal zinote kaip padaryti kad naujienos pavadinime rodytu tik 30 raidziu, o jai pavadinimas ilgesnis toliau butu daugtaskiai?

Parašė MAnjack· 2010 Bir. 19 12:06:00
#77

echo trimlink("pavadinimas", 30);

Parašė Zeck· 2010 Bir. 19 19:06:38
#78

Kur kisti sita koda? i theme ar i news.php ?

Parašė Zeck· 2010 Bir. 23 15:06:51
#79

Gal kas gali pasakyti kaip ikisti MAnjack koda ir news.php ? jog pavadinime rodytu tik 30 simboliu?

Parašė flapas· 2010 Bir. 23 15:06:05
#80

Zeck parašė:
Gal kas gali pasakyti kaip ikisti MAnjack koda ir news.php ? jog pavadinime rodytu tik 30 simboliu?


parašyk į skype: namehas padėsiu.

Parašė Zeck· 2010 Bir. 23 15:06:53
#81

Gal kas turi minciu kaip is sita koda iterpti simboliu limito koda, kad naujienos pavadinime rodyti tik 30 simboliu?

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='557'
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>

Parašė Impossibru· 2010 Bir. 23 15:06:22
#82

function render_news($subject, $news, $info) {

global $trimlink;

echo "<table cellpadding='0' cellspacing='0' width='557'
<tr>
<td class='capmain'>trimlink("$subject", 30);</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
}



Redagavo Impossibru· 2010 Bir. 23 15:06:40

Parašė Zeck· 2010 Bir. 23 15:06:34
#83

Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/zeck/domains/domenas/public_html/themes/tema/theme.php on line 68


?|

Redagavo Zeck· 2010 Bir. 23 15:06:10

Parašė Pakartoti slaptažodį· 2010 Bir. 23 18:06:13
#84

function render_news($subject, $news, $info) {

global $trimlink;

echo "<table cellpadding='0' cellspacing='0' width='557'
<tr>
<td class='capmain'>trimlink('$subject', 30);</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
}

Parašė Zeck· 2010 Bir. 23 18:06:45
#85

Follow dabar naujienos pavadinima taip rodo

trimlink('Naujienos pavadinimas', 30);

Parašė AgS· 2010 Bir. 23 18:06:29
#86

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='557'
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>".trimlink($news,30)."</td>
</tr>
<tr>



Parašė Zeck· 2010 Bir. 23 19:06:29
#87

Man naujienos pavadinime reikia o ne pacioje naujienoje

Redagavo Zeck· 2010 Bir. 23 19:06:41

Parašė AgS· 2010 Bir. 23 19:06:20
#88

Tai tu news.php redaguok, prie to naujienos pavadinimo rašyk trimlink($subject,30);
tik $subject pasikeisk į tą, kuris naudojamas news.php

Parašė Zeck· 2010 Bir. 23 19:06:19
#89

Stai ta eilute

$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);

Parašė AgS· 2010 Bir. 23 19:06:27
#90

$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes(trimlink($data['news_subject'],30));




štai

Redagavo AgS· 2010 Bir. 23 19:06:48

Parašė Zeck· 2010 Bir. 23 19:06:51
#91

Negerai.
Parse error: syntax error, unexpected T_DNUMBER in /home/zeck/domains/domenas.lt/public_html/news.php on line 39

Redagavo Zeck· 2010 Bir. 23 19:06:38

Parašė AgS· 2010 Bir. 23 19:06:32
#92

redagavau po kelių sekundžių, buvau klaidą palikes

Parašė Zeck· 2010 Bir. 23 19:06:46
#93

Veikia dekui ;) +10

Redagavo Zeck· 2010 Bir. 23 19:06:56

Parašė Zeck· 2010 Bir. 23 19:06:58
#94

Dbr viskas butu klase bet kai paspaudi naujienos perziura ten nelimituoja raidziu :|

Parašė AgS· 2010 Bir. 23 19:06:50
#95

tai tu pakeitei tik ten kur pagrindiniam, susirask dar turėtu būt toks news_subject, ir jį pakeisk

Parašė Zeck· 2010 Bir. 23 19:06:06
#96

Nerandu news.php tokios tos eilutes :|

Parašė AgS· 2010 Bir. 23 20:06:32
#97

$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);




dar vienos tokios nėr?

Parašė Zeck· 2010 Bir. 23 20:06:33
#98

Ne nera. Panasios neradau

Parašė AgS· 2010 Bir. 23 20:06:19
#99

Pabandyk šį susirast:
$news_[$ncolumn] .= "<tr>\n<td class='tbl2'><strong>".$news_subject."</strong></td>\n</tr>\n";




ir keisk į
$news_[$ncolumn] .= "<tr>\n<td class='tbl2'><strong>".trimlink($news_subject,30)."</strong></td>\n</tr>\n";



Parašė Zeck· 2010 Bir. 23 20:06:25
#100

Neveikia ?|

Parašė AgS· 2010 Bir. 23 20:06:34
#101

O jei susiradus
$news_subject = $data['news_subject'];


ir pakeitus į
$news_subject = trimlink($data['news_subject'],30);



?

Parašė Zeck· 2010 Bir. 23 23:06:48
#102

Dbr veikia. Aciu :)

Parašė Zeck· 2010 Lie. 4 22:07:23
#103

Taigi turiu tokia panele

opentable("Atsitiktiniai serialai");

$result=dbquery("SELECT * FROM ".DB_PREFIX."news ORDER BY RAND() LIMIT 2");

if(dbrows($result)!=0){
while($data=dbarray($result)){
$result2 = dbquery("SELECT news_cat_name FROM ".DB_PREFIX."news_cats WHERE news_cat_id='$data[news_cat]'");

$category = dbresult($result2,0);





echo "<table cellpadding='5' cellspacing='0' width='100%' align='center'>
<tr>

<td><strong><center><a href='/".seoname(trimlink($data['news_subject'],20))."-rn".$data['news_id'].".htm' title='".$data['news_subject']."'
class='slink'>".trimlink($data[news_subject], 25)."</a></center></strong></td>



<tr>
<td><center><a href='/".seoname(trimlink($data['news_subject'],20))."-rn".$data['news_id'].".htm' title='".$data['news_subject']."'>
<img src='".$data['news_nuoroda']."' width='110px' height='150px'></center> </td>



</tr>
<tr>


</td>
</tr>
</table>\n";



}
}
closetable();



Taciau jos turini atvaizduoja vertikaliai t.y taip



O as noriu kad man atvaizduotu eiluteje ( horizontaliai) po 4

Taip




Kaip taip padaryti?

Redagavo Zeck· 2010 Lie. 4 22:07:40

Parašė vagis· 2010 Lie. 4 22:07:59
#104

Tau juos taip rodo nes, news.php kai parašai eina žemyn, jai nori redaguokis news.php failą ;)

Parašė Zeck· 2010 Lie. 4 23:07:06
#105

Nenusišnekėk ;)

Redagavo Zeck· 2010 Lie. 4 23:07:29

Parašė bruzgis· 2010 Lie. 4 23:07:04
#106

uzvesiu ant kelio tiesiog
echo "<table><tr>";
$i = 0;
while(..) {
$i++:
if($i % 4 == 0) echo "</tr><tr>";
echo "<td>isvedamas kodas</td>";
}


toliau tikiuosi sugebesi pasidaryt, kadangi matau koduotojas dizainu esi B)
kazkas taip turetu atrodyt...


opentable("Atsitiktiniai serialai");

$result=dbquery("SELECT * FROM ".DB_PREFIX."news ORDER BY RAND() LIMIT 2");
$i=0;
if(dbrows($result)!=0){
   echo "<table cellpadding='5' cellspacing='0' width='100%' align='center'><tr>";
   while($data=dbarray($result)){
      $result2 = dbquery("SELECT news_cat_name FROM ".DB_PREFIX."news_cats WHERE news_cat_id='$data[news_cat]'");
      $category = dbresult($result2,0);
         if($i % 4 == 0) echo "</tr><tr>";
         $i++;
      echo "<td>
            <table width='100%' height='100%'>
               <tr><td align='center'>
                  <strong><center><a href='/".seoname(trimlink($data['news_subject'],20))."-rn".$data['news_id'].".htm' title='".$data['news_subject']."' class='slink'>".trimlink($data[news_subject], 25)."</a></center></strong>
               </td></tr>
               <tr><td valign='top' align='center'>
                  <a href='/".seoname(trimlink($data['news_subject'],20))."-rn".$data['news_id'].".htm' title='".$data['news_subject']."'>
                  <img src='".$data['news_nuoroda']."' width='110px' height='150px' border='0'>
               </td></tr>
            </table>
           </td>";
   }
   if($i % 4 != 0) echo "</tr>";
   echo "</table>\n";
}
closetable();



Redagavo bruzgis· 2010 Lie. 4 23:07:14

Parašė Zeck· 2010 Lie. 4 23:07:59
#107

Dėkui tau ;)

Redagavo Zeck· 2010 Lie. 4 23:07:51

Parašė Zeck· 2010 Lie. 5 14:07:52
#108

Jau buvau to klauses bet niekas nepadejo :/ Taigi paklausiu dar karta kaip padaryti kad parasius pranesima saukykloje mestu ne i news.php o i mano parasyta linka?

Parašė Zeck· 2010 Lie. 5 17:07:55
#109

Jau buvau to klauses bet niekas nepadejo :/ Taigi paklausiu dar karta kaip padaryti kad parasius pranesima saukykloje mestu ne i news.php o i mano parasyta linka?

Parašė viva· 2010 Lie. 5 20:07:04
#110

O tai pasiziurek saukyklos faile kur meta ir pasiredaguok

Parašė Zeck· 2010 Lie. 5 20:07:51
#111

echo "<form name='shoutform' method='post' action='nukreipimo nuoroda'>

pas mane pradinis puslapis yra / irasius tik slesa meta i news.php

Parašė viva· 2010 Lie. 5 20:07:57
#112

echo "<form name='shoutform' method='post' action='nukreipimo nuoroda'>
Nu tai ir irasyk i nukreipimo nuoroda savo norima

Parašė Zeck· 2010 Lie. 5 20:07:08
#113

O dieve....

Zeck parašė:
echo "<form name='shoutform' method='post' action='nukreipimo nuoroda'>

pas mane pradinis puslapis yra / irasius tik slesa meta i news.php


EDIT: Susitvarkiau

Redagavo Zeck· 2010 Lie. 5 21:07:14

Parašė Zeck· 2010 Lie. 15 12:07:46
#114

Gal kas zino kdl man webas toki error meta? :]

Fatal error: Call to undefined function redirect() in /home/zeck/domains/online-tv.lt/public_html/index.php on line 14



Parašė Zeck· 2010 Rugs. 2 15:09:29
#115

Gal kas zino kodel man neveikia sita mokejimai.lt sistema?


get_sms.php failas

<?php
       $to = $_GET['to'];

        $sms = $_GET['sms'];

        $amount = $_GET['amount'];

        $from = $_GET['from'];

        $operator = $_GET['operator'];
       
        if(!empty($to) ||!empty($sms) || !empty($amount) || !empty($from) || !empty($operator))
{
         $sms = str_replace("$","$$",$sms);
           $sms = str_replace("|","l",$sms);

        $arr = array("^","%","\n");

       $sms = str_replace($arr,"",$sms);
      $sms = htmlspecialchars($sms);
      
      echo "Reklama sekmingai uzdeta.";
      
      list($raktazodis, $url, $antraste) = explode(" ", $sms);
      


$smsilgis = strlen($sms);
$urlilgis = strlen($url);

$nuokiekantraste = $urlilgis+1;

$antraste = substr($sms, $nuokiekantraste, 30);

$antraste = trim($antraste);
$url = trim($url);

$dddad = fopen("sms.rek","a+");
fwrite($dddad,"$url|$antraste\n");
fclose($dddad);
}
?>





atvaizdavimo failas


<?php

require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";


opentable("Slenkanti reklama");



 $kiekRek = 5; //kiek reklamu rodyti
 $rek = array_reverse(file("sms.rek"));
 for($i=0; $i<$kiekrek; $i++) {
   list($url, $antraste) = explode("|", $rek[$i]);
   if($rek[$i] != ""){
echo "<a href=\"http://$url\">$antraste</a><br/>";} }



closetable();


require_once "side_right.php";
require_once "footer.php";
?>



Parašė Zeck· 2010 Rugs. 7 16:09:44
#116

Turiu dabar tokia problemele. Saite nebeina niekur rasyti, nei saukykoje nei forume, parasai teksta spausti rasyti persikrauna puslapis ir viskas parasytas tekstas neatsiranda


PS tai nutiko poto kai bandziau idiegti user gold sistema

Redagavo Zeck· 2010 Rugs. 7 16:09:17

Parašė Zeck· 2010 Spa. 21 13:10:38
#117

Taigi turiu tokia problemele kaip itepti sita koda


if (checkvip($data['user_vip'])) echo "<img src='".IMAGES."vip.png' alt='VIP Narys' title='VIP Narys'>";
 

I profile.php kad rodytu vip icona prie niko

Stai ta vieta:


opentable($locale['420']);
	echo "<center><a href='".FUSION_SELF."?lookup=$lookup&view=last_comments'>Paskutiniai komentarai</a> | <a href='".FUSION_SELF."?lookup=$lookup&view=last_posts'>Paskutinės žinutės forume</a> | <a href='".FUSION_SELF."?lookup=$lookup&view=last_shouts'>Paskutiniai pranešimai šaukykloje</a></center>\n";
	echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>
<tr>
<td colspan='3'>
<table align='center' cellpadding='0' cellspacing='0' width='100%'>
<tr>
 
<td class='tbl2'>";
if($data[user_status]==1 ){
echo "<STRIKE>".$data['user_name']."</STRIKE><br>\n";
 
 
 
 
}
else if($data[user_status]==0){
echo "<b>".$data['user_name']."</b><br>\n";
 
};
echo "
 
 
<td align='right' class='tbl2'>".getuserlevel($data['user_level'])."</td>
</tr>
</table>
</td>

Redagavo Zeck· 2010 Spa. 21 14:10:08

Parašė Zeck· 2011 Sau. 5 16:01:20
#118

Sveiki turiu viena toki klausima, kaip uzdrausti google bot'ui ieiti i tam tikra aplanka? Pwz administracija, nes pas mane yra ip apsauga ir tie botai pastoviai lenda ir gauna banus.

Parašė Pakartoti slaptažodį· 2011 Sau. 5 17:01:32
#119

robots.txt

Parašė Zeck· 2011 Sau. 5 17:01:59
#120

Aciu padejai, +11

Redagavo Zeck· 2011 Sau. 5 17:01:22