Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved]Place inline MOD
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved]Place inline MOD
PostPosted: 07/23/2007 6:08 AM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 10:47 PM
Location: Klang, Malaysia
malaysiC.gif
Master, imposible i can add the place inline function beside my attachment
button ?
This is called bbcode?





Last edited by masteranu84 on 07/25/2007 3:49 PM; edited 1 time in total
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Place inline MOD
PostPosted: 07/23/2007 3:14 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:47 PM
Location: St Pete, FL
peace.gif
Yes, you should be able to place the display anywhere you want.  But it doesn't look like you have the Place inline MOD installed at the moment...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Place inline MOD
PostPosted: 07/23/2007 3:20 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 10:47 PM
Location: Klang, Malaysia
malaysiC.gif
Nightrider wrote:
Yes, you should be able to place the display anywhere you want.  But it doesn't look like you have the Place inline MOD installed at the moment...

dontknow


ya master, coz until now i still cannot search the Place inline MOD. can tell me what the collect MOD name? i dunno what MOD name that called.
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Place inline MOD
PostPosted: 07/23/2007 3:54 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:47 PM
Location: St Pete, FL
peace.gif
I don't know the name of the MOD either.  I don't think I've ever seen it before...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Place inline MOD
PostPosted: 07/23/2007 4:19 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 10:47 PM
Location: Klang, Malaysia
malaysiC.gif
Nightrider wrote:
I don't know the name of the MOD either.  I don't think I've ever seen it before...

dontknow


I has find many site..i don;t think this is a MOD..but is some code..nvm..i try go search again~
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Place inline MOD
PostPosted: 07/23/2007 4:28 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:47 PM
Location: St Pete, FL
peace.gif
If you know a site that has this installed, you can always ask the admin where he got the MOD...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Place inline MOD
PostPosted: 07/23/2007 6:20 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 10:47 PM
Location: Klang, Malaysia
malaysiC.gif
I want install the Download Topics and Posts..but get this error again~~

Code:
Error Detail
 
Critical Error

Function Trace: open_files[5]->modio_open[1]

Could not open [language/lang_german/lang_main.php] for reading.
MOD script line #221 :: FAQ :: Report
 
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Place inline MOD
PostPosted: 07/23/2007 6:57 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:47 PM
Location: Birmingham, UK.
greatbrE.gif
masteranu84 wrote:
I want install the Download Topics and Posts..but get this error again~~

Code:
Error Detail
 
Critical Error

Function Trace: open_files[5]->modio_open[1]

Could not open [language/lang_german/lang_main.php] for reading.
MOD script line #221 :: FAQ :: Report
 


You can delete the German EM command as you won't be using the German language on your site.

Here's the install file without the German command

Code:
##############################################################
## MOD Title:      Download Topics and Posts
## MOD Author: OXPUS < > (Karsten Ude) http://www.oxpus.de
## MOD Description:   Insert links on viewtopic to save the whole topic or one post of it in a textfile
## MOD Version:      1.0.6
##
## Installation Level:   Easy
## Installation Time:   5-10 Minutes
## Files To Edit:   4
##         viewtopic.php
##         language/lang_english/lang_main.php
##         language/lang_german/lang_main.php
##         templates/subSilver/viewtopic_body.tpl
##
## Included Files:   n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
##   2005-04-11 - Version 1.0.6
##      - Fix security issue to prevent downloading not allowed topics or posts
##     For update replace in viewtopic.php all after "if ( $download )"
##
##   2005-04-09 - Version 1.0.5
##      - Fix security issue
##     For update replace in viewtopic.php all after "if ( $download )"
##
##   2005-03-18 - Version 1.0.4
##      - Fix filename for downloading textfile
##     For update replace in viewtopic.php all after "if ( $download )"
##
##   2005-01-12 - Version 1.0.3
##      - Fix HTML-Chars on saved Text
##     For update replace in viewtopic.php all after "if ( $download )"
##
##   2004-06-13 - Version 1.0.2
##      - Fix missing include in viewtopic.php
##     For update insert after
##      include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
##     this line:
##      include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
##
##   2004-05-29 - Version 1.0.1
##      - Remove BBCodes and HTML-Chars from saved Text.
##     For update replace in viewtopic.php all after "if ( $download )"
##
##   2004-05-27 - Version 1.0.0
##      - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);

#
#-----[ AFTER, ADD ]------------------------------------------
#
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

#
#-----[ FIND ]------------------------------------------
#
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;

#
#-----[ AFTER, ADD ]------------------------------------------
#
$download = ( isset($HTTP_GET_VARS['download']) ) ? $HTTP_GET_VARS['download'] : '';

#
#-----[ FIND ]------------------------------------------
#
//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( $download )
{
   $sql_download = ( $download != -1 ) ? " AND p.post_id = " . intval($download) . " " : '';

   $orig_word = array();
   $replacement_word = array();
   obtain_word_list($orig_word, $replacement_word);

   $sql = "SELECT u.*, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid
      FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
      WHERE p.topic_id = $topic_id
         $sql_download
         AND pt.post_id = p.post_id
         AND u.user_id = p.poster_id
         ORDER BY p.post_time ASC, p.post_id ASC";
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, "Could not create download stream for post.", '', __LINE__, __FILE__, $sql);
   }

   $download_file = '';

   $is_auth_read = array();

   while ( $row = $db->sql_fetchrow($result) )
   {
      $is_auth_read = auth(AUTH_ALL, $row['forum_id'], $userdata);

      $poster_id = $row['user_id'];
      $poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $row['username'];

      $post_date = create_date($board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone']);

      $post_subject = ( $row['post_subject'] != '' ) ? $row['post_subject'] : '';

      $bbcode_uid = $row['bbcode_uid'];
      $message = $row['post_text'];
      $message = strip_tags($message);
      $message = preg_replace("/\[.*?:$bbcode_uid:?.*?\]/si", '', $message);
      $message = preg_replace('/\[url\]|\[\/url\]/si', '', $message);
      $message = preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);

      $message = unprepare_message($message);
      $message = preg_replace('/(/', '(', $message);
      $message = preg_replace('/)/', ')', $message);
      $message = preg_replace('/:/', ':', $message);
      $message = preg_replace('/[/', '[', $message);
      $message = preg_replace('/]/', ']', $message);
      $message = preg_replace('/{/', '{', $message);
      $message = preg_replace('/}/', '}', $message);

      if (count($orig_word))
      {
         $post_subject = preg_replace($orig_word, $replacement_word, $post_subject);

         $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1));
      }

      $break = "\n\r";
      $line = '-----------------------------------';
      $download_file .= $break.$line.$break.$poster.$break.$post_date.$break.$break.$post_subj ect.$break.$line.$break.$message.$break;
   }

   $disp_folder = ( $download == -1 ) ? 'Topic_'.$topic_id : 'Post_'.$download;

   if (!$is_auth_read['auth_read'])
   {
      $download_file = sprintf($lang['Sorry_auth_read'], $is_auth_read['auth_read_type']);
      $disp_folder = 'Download';
   }

   $filename = $board_config['sitename']."_".$disp_folder."_".date("Ymd",time()).".tx t";
   header('Content-Type: text/x-delimtext; name="'.$filename.'"');
   header('Content-Disposition: attachment;filename="'.$filename.'"');
   header('Content-Transfer-Encoding: plain/text');
   header('Content-Length: '.strlen($download_file));
   print $download_file;

   exit;
}

#
#-----[ FIND ]------------------------------------------
#
//
// Send vars to template
//
$template->assign_vars(array(

#
#-----[ AFTER, ADD ]------------------------------------------
#
   'L_DOWNLOAD_POST' => $lang['Download_post'],
   'L_DOWNLOAD_TOPIC' => $lang['Download_topic'],
   'DOWNLOAD_TOPIC' => append_sid("viewtopic.$phpEx?download=-1&amp;".POST_TOPIC_URL."=".$top ic_id),

#
#-----[ FIND ]------------------------------------------
#
   $template->assign_block_vars('postrow', array(

#
#-----[ AFTER, ADD ]------------------------------------------
#
      'DOWNLOAD_POST' => append_sid("viewtopic.$phpEx?download=".$postrow[$i]['post_id']."&amp; ".POST_TOPIC_URL."=".$topic_id),

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// Viewtopic
//

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Download_post'] = 'Download Post';
$lang['Download_topic'] = 'Download Topic';

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{PAGINATION}

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<br /><a href="{DOWNLOAD_TOPIC}" class="genmed">{L_DOWNLOAD_TOPIC}</a>

#
#-----[ FIND ]------------------------------------------
# // Or find another position
{postrow.POST_DATE}

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
&nbsp;<a href="{postrow.DOWNLOAD_POST}" class="genmed">{L_DOWNLOAD_POST}</a>

#
#-----[ FIND ]------------------------------------------
#
{PAGINATION}

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<br /><a href="{DOWNLOAD_TOPIC}" class="genmed">{L_DOWNLOAD_TOPIC}</a>


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


banana
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Place inline MOD
PostPosted: 07/24/2007 5:06 AM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 10:47 PM
Location: Klang, Malaysia
malaysiC.gif
I has delete already..since i has install 2 times this MOD.But still get another error.hehe.
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Place inline MOD
PostPosted: 07/24/2007 5:21 AM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 10:47 PM
Location: Klang, Malaysia
malaysiC.gif
Code:
Error Detail
 
Critical Error

IN-LINE AFTERADDFAILED: Malformed script. An IN-LINE FIND was not previously performed.
MOD script line #231 :: FAQ :: Report


I get this error msg
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0928s (PHP: 66% - SQL: 34%) - SQL queries: 57 - GZIP disabled - Debug on