• [MOD]Another Simple News Publishing Mod 5 0 5 1
Currently:  

Author Topic: [MOD]Another Simple News Publishing Mod  (Read 348852 times)

0 Members and 1 Guest are viewing this topic.

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD]Another Simple News Publishing Mod
« Reply #210 on: December 03, 2006, 06:24:06 PM »
RSS crashed,  two errors appears if I go to http://www.webax.it/rss.php?action=images

Notice:  Use of undefined constant version - assumed 'version' in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/rss.php on line 42

Notice:  Undefined index:  version in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/rss.php on line 42


These errors occours perhaps after installing MOD Multi-Language support for any text
Alessio
my homepage: http://www.webax.it

Offline MTsv DN

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • UsefulUtils for you...
Re: [MOD]Another Simple News Publishing Mod
« Reply #211 on: December 10, 2006, 11:22:23 AM »
Hi for ALL...

How I must change an Search Engine for searching in News???

Thanks...
Respect, UsefulUtils TM /MTsv DN/

Offline MTsv DN

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • UsefulUtils for you...
Re: [MOD]Another Simple News Publishing Mod
« Reply #212 on: December 10, 2006, 10:08:22 PM »
Hi again...

I'm only learning PHP...and English too :oops: and you may think what this code is crazy, but it work:
File: search.php
Find:
Code: [Select]
$content = $site_template->parse_template("search_form");
}

Add after:
Code: [Select]
//-----------------------------------------------------
//--- Search in news -------------------------------------
//-----------------------------------------------------
    $sql = "SELECT COUNT(*) AS num_rows_all
            FROM ".NEWS_TABLE." n";
    $row = $site_db->query_firstrow($sql);
    $num_rows_all = $row['num_rows_all'];

$count = 0;
    for ($i = 1; $i < $num_rows_all+1; $i++) {
        $sql = "SELECT n.news_title
                FROM ".NEWS_TABLE." n
                WHERE n.news_id = $i";
        $row = $site_db->query_firstrow($sql);
$found_str   = '_ ';
        $found_str  .= $row['news_title'];
        $found_str  .= ' ';
$sub_str     = ' ';
        $sub_str    .= $search_keywords;
        $sub_str    .= ' ';

        $found_title = $row['news_title'];
        if (strpos( $found_str, $sub_str ) != 0) {
  $count++;
          print $found_title; // Trying
          print '<br>';         // Trying
}
        $site_db->free_result($row);
    }
//-----------------------------------------------------
//--- Search in news -------------------------------------
//-----------------------------------------------------

Now I have the trouble at Shown Result... Anybody, help me please!!!
Respect, UsefulUtils TM /MTsv DN/

Offline MTsv DN

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • UsefulUtils for you...
[ADDON] Search in News Title and Text ([MOD]Another Simple News Publishing Mod)
« Reply #213 on: December 11, 2006, 09:29:21 AM »
Now I have the trouble at Shown Result... Anybody, help me please!!!

Hi... Thanks for anybody :? It's a Sarcasm :? And now:

[ADDON] Search in News Title and Text ( [MOD]Another Simple News Publishing Mod )
INSTALL:
OPEN Search.php

FIND:
Code: [Select]
if (!$num_rows_all && $show_result == 1)  {
  $msg = preg_replace("/".$site_template->start."search_keywords".$site_template->end."/", $search_keywords, $lang['search_no_results']);
}

REPLACE WITH:
Code: [Select]
//-----------------------------------------------------
//--- Search in news /MTsv DN/ ------------------
//-----------------------------------------------------
 $founding_title    = '';
 $founding_text     = '';
 $founded_title     = '';
 $founded_text      = '';
 $search_str        = $search_keywords;
 $count_newses      = 0;
 $num_rows_news     = 0;
 $sql = "SELECT COUNT(*) AS num_rows_news
         FROM ".NEWS_TABLE." n";
 $row = $site_db->query_firstrow($sql);
 $num_newses = $row['num_rows_news'];

 for ($i = 1; $i < $num_newses + 1; $i++) {
     $sql = "SELECT n.news_title, n.news_text
             FROM ".NEWS_TABLE." n
             WHERE n.news_id = $i";
  $result = $site_db->query($sql);
$news_row = array();
while ($row = $site_db->fetch_array($result)) {
   $news_row[] = $row;
}
$site_db->free_result($result);
$num_news = sizeof($news_row);

     $row = $site_db->query_firstrow($sql);
     $founding_title   = '_';
     $founding_title  .= $news_row[0]['news_title'];
     $founding_text    = '_';
     $founding_text   .= $news_row[0]['news_text'];
     $founded_title    = $news_row[0]['news_title'];
     $founded_text     = $news_row[0]['news_text'];
     if ((strpos( $founding_title, $search_str ) != 0) ||
         (strpos( $founding_text,  $search_str ) != 0)){
        $count_news++;
     }
     $site_db->free_result($news_row);
 }
//-----------------------------------------------------
//--- Search in news /MTsv DN/ ------------------
//-----------------------------------------------------

if (!$num_rows_all && $show_result == 1) {
 if (!$count_news && $show_result == 1) {
  $msg = preg_replace("/".$site_template->start."search_keywords".$site_template->end."/", $search_keywords, $lang['search_no_results']);
 }
}

FIND:
Code: [Select]
  $content = $thumbnails;
  unset($thumbnails);
} // end if
else {

ADD AFTER:
Code: [Select]
if ($count_news == 0) {
  $site_template->register_vars(array(
    "search_keywords" => format_text(stripslashes($org_search_keywords), 2),
    "search_user" => format_text(stripslashes($org_search_user), 2),
    "lang_search_by_keyword" => $lang['search_by_keyword'],
    "lang_search_by_username" => $lang['search_by_username'],
    "lang_new_images_only" => $lang['new_images_only'],
    "lang_search_terms" => $lang['search_terms'],
    "lang_or" => $lang['or'],
    "lang_and" => $lang['and'],
    "lang_category" => $lang['category'],
    "lang_search_fields" => $lang['search_fields'],
    "lang_all_fields" => $lang['all_fields'],
    "lang_name_only" => $lang['name_only'],
    "lang_description_only" => $lang['description_only'],
    "lang_keywords_only" => $lang['keywords_only'],
    "lang_calendar" => $lang['calendar'],
    "category_dropdown" => get_category_dropdown($cat_id)
  ));

  if (!empty($additional_image_fields)) {
    $additional_field_array = array();
    foreach ($additional_image_fields as $key => $val) {
      if (isset($lang[$key.'_only'])) {
        $additional_field_array['lang_'.$key.'_only'] = $lang[$key.'_only'];
      }
    }
    if (!empty($additional_field_array)) {
      $site_template->register_vars($additional_field_array);
    }
  }
  $content = $site_template->parse_template("search_form");
 }
}

if ($count_news && $show_result == 1)  {
  $founding_title    = '';
  $founding_text     = '';
  $founded_title     = '';
  $founded_text      = '';
  $search_str        = $search_keywords;
  for ($i = 1; $i < $num_newses + 1; $i++) {
      $sql = "SELECT n.news_id, n.news_title, n.news_text, n.user_name, n.news_date
              FROM ".NEWS_TABLE." n
              WHERE n.news_id = $i";
    $result = $site_db->query($sql);
  $news_row = array();
  while ($row = $site_db->fetch_array($result)) {
$news_row[] = $row;
  }
  $site_db->free_result($result);
  $num_news = sizeof($news_row);
 
      $founding_title   = '_';
      $founding_title  .= $news_row[0]['news_title'];
      $founding_text   = '_';
      $founding_text  .= $news_row[0]['news_text'];  
      $founded_title = $news_row[0]['news_title'];
      $founded_text = $news_row[0]['news_text'];
 
      if ((strpos( $founding_title, $search_str ) != 0) ||
          (strpos( $founding_text,  $search_str ) != 0))
      {
$comments =  '';
        $newsPerPage = 5;
        $link_arg = $site_sess->url(ROOT_PATH."search.php?show_result=1");
        include_once(ROOT_PATH.'includes/paging.php');
        $getpaging = new Paging($page, $newsPerPage, $num_news, $link_arg);

        $offset = $getpaging->get_offset();

        $site_template->register_vars(array(
                "lang_calendar" => $lang['calendar'],
                "paging" => $getpaging->get_paging(),
                "paging_stats" => $getpaging->get_paging_stats()
        ));

$comments =  '
<table width="450" border="0" cellspacing="0" cellpadding="0">
         <tr>
          <td class="head1">
         <table width="100%" border="0" cellpadding="3" cellspacing="1">
          <tr class="imagerow1">
<td width="100%" valign="top">';
    $comments .=  "<a href=\"./news_headlines.php?id_news=".$news_row[0]['news_id']."\"><b>".$news_row[0]['news_title']."</b></a>".sprintf($lang['news_posted_by'], $news_row[0]['user_name'], format_date($config['date_format']." ".$config['time_format'], $news_row[0]['news_date']));
  $comments .=  '
</td>
    </tr>
    <tr class="imagerow2">
  <td width="100%" valign="top"><br/>';
  $comments .=  format_text($news_row[0]['news_text'], ((isset($config['news_html']))?$config['news_html']:0), 0, ((isset($config['news_bbcode']))?$config['news_bbcode']:1), ((isset($config['news_bbcodeimg']))?$config['news_bbcodeimg']:1));
  $comments .=  '<br/>
</td>
    </tr>
   </table>
      </td>
         </tr>
        </table>';
 
        $content  .= '
      <table width="100%" border="0" cellspacing="1" cellpadding="6" class="forumline">
           <tr>
        <td class="row1">';
             $content .= $comments;
             $content .= '
    </td>
           </tr>
          </table>';
      }
  }
  $site_db->free_result($news_row);
}
else {
 if ($num_rows_all == 0) {

FIND:
Code: [Select]
    }
  }
  $content = $site_template->parse_template("search_form");

ADD AFTER:
Code: [Select]
}
That's all...
« Last Edit: December 11, 2006, 11:54:54 AM by MTsv DN »
Respect, UsefulUtils TM /MTsv DN/

Offline MTsv DN

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • UsefulUtils for you...
[ADDON] Search in News Title and Text ([MOD] Another Simple News Publishing Mod)
« Reply #214 on: December 11, 2006, 10:14:48 AM »
File news_headlines.php:
Code: [Select]
<?php

$main_template 
'news';
define('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php');

//-----------------------------------------------------
//---Show Guestbook Comments---------------------------
//-----------------------------------------------------

if (isset($_POST['id_news']) || isset($_GET['id_news']))
{
$id_news = (intval($_POST['id_news']) ) ? intval($_POST['id_news']) : intval($_GET['id_news']);
if ($id_news)
{
$site_sess->set_session_var("id_news"$id_news);
$session_info['id_news'] = $id_news;
}
}

    
$newsPerPage 100;

$sql "SELECT COUNT(news_id) AS news FROM ".NEWS_TABLE;
$result $site_db->query_firstrow($sql);
$num_news $result['news'];
$site_db->free_result();

$num_rows_all = (isset($num_news)) ? $num_news 0;

$link_arg $site_sess->url(ROOT_PATH."news.php");
include_once(ROOT_PATH.'includes/paging.php');
$getpaging = new Paging($page$newsPerPage$num_rows_all$link_arg);

$offset $getpaging->get_offset();

$site_template->register_vars(array(
   
"paging" => $getpaging->get_paging(),
"paging_stats" => $getpaging->get_paging_stats()
));

    
$sql "SELECT n.news_id, n.news_title, n.news_text, n.user_name, n.news_date
            FROM "
.NEWS_TABLE." n
            WHERE n.news_id = 
$id_news";
    
$result $site_db->query($sql);
$news_row = array();
while ($row $site_db->fetch_array($result)) {
$news_row[] = $row;
    }
$site_db->free_result($result);
$num_news sizeof($news_row);

$comments "";

if ($news_row[0]['news_id'] != '') {
$comment_user_name htmlspecialchars($news_row[0]['comment_user_name']);

$admin_links "";
if ($user_info['user_level'] == ADMIN)
{
$admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/news.php?action=editnews&amp;news_id=".$news_row[0]['news_id'])."\" target=\"admin_edit\">".$lang['edit']."</a>&nbsp;";
$admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/news.php?action=removenews&amp;news_id=".$news_row[0]['news_id'])."\" target=\"admin_edit\">".$lang['delete']."</a>";
}

$site_template->register_vars(array(
    "news_title" => "<b>".$news_row[0]['news_title']."</b>".sprintf($lang['news_posted_by'], $news_row[0]['user_name'], format_date($config['date_format']." ".$config['time_format'], $news_row[0]['news_date'])),
"news_text" => format_text($news_row[0]['news_text'], ((isset($config['news_html']))?$config['news_html']:0), 0, ((isset($config['news_bbcode']))?$config['news_bbcode']:1), ((isset($config['news_bbcodeimg']))?$config['news_bbcodeimg']:1)),
"admin_links" => $admin_links,
));
$comments .= $site_template->parse_template("news_bit");
}
else
{
$comments $lang['no_news'];
}

//---End Show Guestbook Comments----
$site_template->register_vars(array(
  "news_contents" => $comments
));
$contents $site_template->parse_template("news_show");

  
$txt_clickstream $lang['news_main'];

//-----------------------------------------------------
//---Clickstream---------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];

if (
$getpaging->page 1)
{
$clickstream .= "<a href=\"".$site_sess->url(ROOT_PATH."news.php")."\">".$lang['news_main']."</a>".$config['category_separator'].$lang['page']." ".$getpaging->page."</span>";
}
else
$clickstream .= $txt_clickstream."</span>";

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"contents" => $contents,
  
//"news_contents" => $comments,
  
"clickstream" => $clickstream
));
unset(
$contents);
$site_template->print_template($site_template->parse_template($main_template));
include(
ROOT_PATH.'includes/page_footer.php');

?>
« Last Edit: December 11, 2006, 11:55:31 AM by MTsv DN »
Respect, UsefulUtils TM /MTsv DN/

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD]Another Simple News Publishing Mod
« Reply #215 on: December 11, 2006, 05:20:55 PM »
RSS crashed,  two errors appears if I go to http://www.webax.it/rss.php?action=images

Notice:  Use of undefined constant version - assumed 'version' in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/rss.php on line 42

Notice:  Undefined index:  version in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/rss.php on line 42


These errors occours perhaps after installing MOD Multi-Language support for any text

I have resolved the problem adding to rss.php this code

error_reporting(E_ALL ^ E_NOTICE);
« Last Edit: December 12, 2006, 12:57:54 PM by Alessio »
Alessio
my homepage: http://www.webax.it

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD]Another Simple News Publishing Mod
« Reply #216 on: December 12, 2006, 10:30:16 AM »
Quote
$lang['news_main'] = 'News';
$lang['no_news'] = 'No news';
$lang['news_deleted'] = ' news deleted';
$lang['newss_deleted'] = ' news deleted';
$lang['news_deletion'] = 'News deletion';
$lang['newss'] = 'news';
$lang['news'] = 'news';
$lang['news_modified'] = 'News modified successfully.';
$lang['news_modified_nok'] = 'Error during news modification.';
$lang['news_deletion_confirmation'] = 'Do you really want to delete the %s selected news.';
$lang['edit_news_title'] = 'News #%d posted by %s';
$lang['news_title'] = 'Title';
$lang['news_content'] = 'Content';
$lang['news_date'] = 'Date';
$lang['modify_news'] = 'Edit news';
$lang['news_author'] = 'Author';
$lang['news_add'] = 'Add a news';
$lang['news_add_ok'] = 'News added successfully.';
$lang['news_posted_by'] = ' -- Posted by <b>%s</b> on <i>%s</i>';
$lang['news_archive'] = 'Archives';
$lang['page'] = 'Page';


ITALIAN

$lang['news_main'] = 'Notizie';
$lang['no_news'] = 'Nessuna notizia';
$lang['news_deleted'] = ' notizia cancellata';
$lang['newss_deleted'] = ' notizia cancellata';
$lang['news_deletion'] = 'Cancellazione della notizia';
$lang['newss'] = 'notizie';
$lang['news'] = 'notizia';
$lang['news_modified'] = 'Notizia modificata con successo.';
$lang['news_modified_nok'] = 'Errore durante la modifica.';
$lang['news_deletion_confirmation'] = 'Vuoi veramente cancellare la(e) %s notizia(e) selezionata(e)';
$lang['edit_news_title'] = 'Notizia #%d pubblicata da %s';
$lang['news_title'] = 'Titolo';
$lang['news_content'] = 'Contenuto';
$lang['news_date'] = 'Data';
$lang['modify_news'] = 'Modifica notizia';
$lang['news_author'] = 'Autore';
$lang['news_add'] = 'Aggiungi notizia;
$lang['news_add_ok'] = 'Notizia aggiunta con successo.';
$lang['news_posted_by'] = ' -- Pubblicata da <b>%s</b> il <i>%s</i>';
$lang['news_archive'] = 'Archivio';
$lang['page'] = 'Pagina';
Alessio
my homepage: http://www.webax.it

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD]Another Simple News Publishing Mod
« Reply #217 on: December 27, 2006, 09:24:59 PM »
Hi! I installed the addon from MTsvDN about search but I have the next error:
Code: [Select]
Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 278

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 279

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 278

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 279

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 278

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 279

please could you help me ¿?

__________________________
And i have a problem with Read More.. when i click in the name from the new i go to http://www.yosoyfriki.com/myart/news.php?news_id= then i go to archive section, i would like see only the article that i selected. And I have other problem see it please in my home: http://www.yosoyfriki.com/myart/index.php all the title from the new is up and all articles down... there isn't order.. please could you help me¿?
__________________________
and i would like the users can comment my new.. is it possible?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD]Another Simple News Publishing Mod
« Reply #218 on: December 28, 2006, 12:18:11 AM »
Some modifications that i did and works right, maybe i can help you:

index.php
I add a link to the user profile that posted the new.
Find:
Code: [Select]
($new_is_new)?In the same line find the next or something like this:
Code: [Select]
sprintf($lang['news_posted_by'], $image_row['user_name'], format_date($config['date_format']." ".$config['time_format'], $image_row['news_date']));Replace to:
" Posteed by <a href=\"" .$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$image_row['user_id'])."\">".$image_row['user_name']."</a> ".sprintf(format_date($config['date_format']." ".$config['time_format'], $image_row['news_date']));
_______
Add an avatar or userpic. This changes is to add an userpic from Member picture mod from V@no but with a little modifications this works to avatar mod.

index.php
Find:
Code: [Select]
if (!isset($config['news_home_display']) || $config['news_home_display'] == 1)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." ORDER BY news_date DESC LIMIT 0, ".((isset($config['news_nb']))?$config['news_nb']:5);
else if ($config['news_home_display'] == 2)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." WHERE news_date > ".(time() - ((isset($config['news_nb_days']))?$config['news_nb_days']:15)*86400)." ORDER BY news_date DESC";
REplace to:
Code: [Select]
if (!isset($config['news_home_display']) || $config['news_home_display'] == 1)
$sql = "SELECT news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id ORDER BY news_date DESC LIMIT 0, ".((isset($config['news_nb']))?$config['news_nb']:5);
else if ($config['news_home_display'] == 2)
$sql = "SELECT news_id, news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id, news_date > ".(time() - ((isset($config['news_nb_days']))?$config['news_nb_days']:15)*86400)." ORDER BY news_date DESC";
Now you can use the userpic from the user that posted the new
Find:
Code: [Select]
$news .= "<td width=\"100%\" valign=\"top\">\n<br/>";Add after:
Code: [Select]
if($image_row['userpic'] == "" || $image_row['userpic'] == "blank.gif");
else
$news .= "<a href=\"" .$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$image_row['user_id'])."\"><img src=\"data/userpic/".$image_row['userpic']."\" align=\"left\" border=0 /></a>";

news.php
Find:
Code: [Select]
format_text($news_row[$i]['news_text'], ((isset($config['news_html']))?$config['news_html']:0), 0, ((isset($config['news_bbcode']))?$config['news_bbcode']:1), ((isset($config['news_bbcodeimg']))?$config['news_bbcodeimg']:1)),Add before in line:
Code: [Select]
(($news_row[$i]['userpic'] == "" || $news_row[$i]['userpic'] == "blank.gif")?"":"<a href=\"" .$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$news_row[$i]['user_id'])."\"><img src=\"data/userpic/".$news_row[$i]['userpic']."\" align=\"left\" border=0 /></a>").
Find:
Code: [Select]
$sql = "SELECT news_id, news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." ORDER BY news_date DESC LIMIT $offset, $newsPerPage";Replace to:
Code: [Select]
$sql = "SELECT news_id, news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id ORDER BY news_date DESC LIMIT $offset, $newsPerPage";
That's all ^o^

^^ Is the first time that i modify something in php and this works!! I'm happy... although that changes aren't important I hope that I could help someone.
« Last Edit: December 28, 2006, 01:44:43 AM by ccsakuweb »
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD]Another Simple News Publishing Mod
« Reply #219 on: February 12, 2007, 10:24:33 AM »
Hi! I installed the addon from MTsvDN about search but I have the next error:
Code: [Select]
Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 278

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 279

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 278

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 279

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 278

Warning: strpos() [function.strpos]: Empty delimiter. in /home/yosoyfri/public_html/myart/search.php on line 279

please could you help me ¿?

__________________________
And i have a problem with Read More.. when i click in the name from the new i go to http://www.yosoyfriki.com/myart/news.php?news_id= then i go to archive section, i would like see only the article that i selected. And I have other problem see it please in my home: http://www.yosoyfriki.com/myart/index.php all the title from the new is up and all articles down... there isn't order.. please could you help me¿?
__________________________
and i would like the users can comment my new.. is it possible?


please... could anyone help me??
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Parasco

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #220 on: February 13, 2007, 08:39:50 PM »
Hi to all,

maybe who know, why i see blank page in news.php, when i click on the "Arhive" ?
I dont see news archive there :/


VERY IMPORTANT
Your news pages will show up blank when you click on archives, but the solution that ACTUALLY works can be found at: http://www.4homepages.de/forum/index.php?topic=6824.15 :D

Enjoy!

PS: Great MOD!

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD]Another Simple News Publishing Mod
« Reply #221 on: February 14, 2007, 12:01:13 AM »
don't you have an error in search?? Warning: strpos() [function.strpos]: Empty delimiter.
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Jenn

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #222 on: February 15, 2007, 10:38:54 PM »
Could someone tell me if the code in the very first post is the correct code or are there snippets of code throughout this topic that are needed?

Thanks
Jen

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD]Another Simple News Publishing Mod
« Reply #223 on: February 15, 2007, 11:01:21 PM »
Could someone tell me if the code in the very first post is the correct code or are there snippets of code throughout this topic that are needed?

Thanks
Jen

Hi Jenn,
for my site I have followed the first post and then I have applied the modification indicated in the following messages:

http://www.4homepages.de/forum/index.php?topic=9064.msg80021#msg80021

http://www.4homepages.de/forum/index.php?topic=9064.msg43607#msg43607

http://www.4homepages.de/forum/index.php?topic=9064.msg71516#msg71516

http://www.4homepages.de/forum/index.php?topic=9064.msg57321#msg57321

Sorry for my bad english.
« Last Edit: April 25, 2007, 03:48:14 PM by Alessio »
Alessio
my homepage: http://www.webax.it

Offline Jenn

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #224 on: February 16, 2007, 02:37:26 AM »
Thanks so much Alessio :) I appreciate it :)