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

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

0 Members and 2 Guests are viewing this topic.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD]Another Simple News Publishing Mod
« Reply #225 on: February 16, 2007, 02:39:17 PM »
Hi 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
here: http://www.myart.es/search.htm?search_new_images=1 in search.php

that two lines are:
Code: [Select]
     if ((strpos( $founding_title, $search_str ) != 0) ||
         (strpos( $founding_text,  $search_str ) != 0)){

and a few more lines near them:
Code: [Select]
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);
 }

please.. i need help.. my version is 1.7.3 and i have this mod installed and work fine but i have this problem in search T_T how could i fix this problem please?
the problem is in [ADDON] Search in News Title and Text ( [MOD]Another Simple News Publishing Mod )
INSTALL: is the code from: Search in news /MTsv DN/
: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 #226 on: March 20, 2007, 04:03:09 PM »
Hola

I've searched all 16 pages, lol. Is it possible to allow users to comment on news?

Thanks much :)

Jen

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD]Another Simple News Publishing Mod
« Reply #227 on: March 22, 2007, 09:07:08 PM »
Hola :D

pues.. me lo instalé hace tiempo y desgraciadamente nadie ha hecho ese ADDON a este mod lo siento. Aunque la verdad a mi también me gustaria.. y seguro q a muchos otros usuarios.  Tengo la version 1.7.3 y todo me va bien a escepcion de añadir las noticias al search q me da error

no yet sorry but it would be really great
: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 MDMC

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #228 on: April 03, 2007, 02:11:08 AM »
bei mir wird nix angezeigt wenn ich auf die news.php oder die templates gehe... wenn mit jmd helfen kann bitte per pm, sonst wirds zu unübersichtlich^^

Offline Jenn

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #229 on: May 14, 2007, 09:22:27 PM »
Could anyone help me with this? Pretty please? :)

Hola

I've searched all 16 pages, lol. Is it possible to allow users to comment on news?

Thanks much :)

Jen

SnaFy

  • Guest
Re: [MOD]Another Simple News Publishing Mod
« Reply #230 on: July 18, 2007, 04:21:14 PM »

#-----[ OPEN ]---------------------------------
#
admin/settings.php

#
#-----[ FIND ]---------------------------------
#
Code: [Select]
show_setting_row("highlight_admin", "radio");
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code: [Select]
show_table_separator($setting_group[8], 2, "#setting_group_8");
show_setting_row("news_home_display", "show_news_display_options");
show_setting_row("news_nb");
show_setting_row("news_nb_days");
show_setting_row("news_cutoff");
show_setting_row("news_html", "radio");
show_setting_row("news_bbcode", "radio");
show_setting_row("news_bbcodeimg", "radio");
#
#-----[ FIND ]---------------------------------
#
Code: [Select]
// end of functions
#
#-----[ BEFORE, ADD ]------------------------------------------
#
Code: [Select]
function show_news_display_options($setting_name, $setting_value) {
  global $news_display_optionlist;
  foreach ($news_display_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}


hi man i have 4 images 1.7.4 i don't find this step plz help

Offline Koosje

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [MOD]News archive
« Reply #231 on: July 27, 2007, 10:09:58 AM »
In this discussion is becomming complecated because there are so many reactions. What I do, I still don't have a news page with the archive. News is very well installed, MySql-database works, the latest news on the frontpage works, news settings works, paging on news.php works. Permissions are set. Is there a new mod with the right modifacations en installation guide.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #232 on: July 31, 2007, 07:33:04 PM »
Quote
hi man i have 4 images 1.7.4 i don't find this step plz help

Last part in admin/functions.php file. Not admin/settings.php file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Koosje

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #233 on: August 09, 2007, 07:17:46 PM »
Is it possible to ask a news item at once by knowing his id like the thumbnails does. This wil ask a link like "details.php?image_id=xx".
A link like news.php?news_id=xx shows the whole page.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #234 on: August 09, 2007, 08:06:05 PM »
Need work on layout from news.php file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Koosje

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #235 on: August 10, 2007, 06:27:38 PM »
@thunderstrike
Can you tell me how, this is to complecated for me? thanks already!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #236 on: August 11, 2007, 12:54:42 AM »
Right now ... with no affect layout - no possible do (template need parse for no affect).
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline MadSci

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #237 on: September 16, 2007, 03:38:50 PM »
Guys I just integrated the Simple news publishing MOD and have one question:

this is the mod: http://www.4homepages.de/forum/index.php?topic=9064.0

now if you go to ACP and then to the Add news on the right side a form will pop-up with News title and News content.
Now if you click on the news content and get the page source then you see:

<td><p><textarea name="news_text" rows="15" cols="80"></textarea></p></td>

I need to add an ID to that text area like:

<td><p><textarea name="news_text" id="news_text" rows="15" cols="80"></textarea></p></td>

and need to insert a small javascript tag right under that line:

anyone knows how to do that. I spend the last hour looking the different phps and have no clue were this form is rendered.

thanx.

ms

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #238 on: September 16, 2007, 03:44:46 PM »
In admin/admin_functions.php file,

find:

Quote
echo "<tr class=\"".get_row_bg()."\" valign=\"top\">\n<td><p class=\"rowtitle\">".$title."</p></td>\n<td><p><textarea name=\"".$name."\" rows=\"".$rows."\" cols=\"".$cols."\">".format_text($value, 2)."</textarea></p></td>\n</tr>\n";

replace:

Code: [Select]
echo "<tr class=\"".get_row_bg()."\" valign=\"top\">\n<td><p class=\"rowtitle\">".$title."</p></td>\n<td><p><textarea name=\"".$name."\" id=\"".$name."\" rows=\"".$rows."\" cols=\"".$cols."\">".format_text($value, 2)."</textarea></p></td>\n</tr>\n";

This will add ID in textarea with variable name.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline MadSci

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: [MOD]Another Simple News Publishing Mod
« Reply #239 on: September 16, 2007, 04:20:40 PM »
Thank you thunder my man,
if I want to address this field with JavaScript were should I put the script.
If I echo it right under that line it gives err..

ms