[Aphrodite] Extended Quote Tag

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

[Aphrodite] Extended Quote Tag

Postby Bicet on Sun Jul 03, 2005 6:02 pm

You can grab the mod @ http://www.opentools.de this is an extract from the install file.

Code: Select all
#################################################################
## Mod Title: Extended Quote Tag
## Mod Version: 1.0.0
## Author: Acyd Burn < acyd.burn@gmx.de > - Meik Sievertsen - http://www.opentools.de/
## Description:
##      This Mod adds an extended functionality on the [quote] BBCode Tag.
##      You are able to view the Post from which the User quoted and you have the ability
##      to quote directly from the Topic Review Window.
##      To let this Mod recognise the Post, the Quote Tag has this extended systax (old syntax works):
##         [quote=p="<post_id>"][/quote]
##         [quote="<Username>";p="<post_id>"][/quote]
##      After the Message got parsed you will see an additional Link:
##         Quote (View Post):
##         Username wrote (View Post):
##      Within the Topic Review Window a Quote Button is added to each Post.
##      After clicking on this Button the Quote is added to the current Post Area.
##############################################################

This is the result, if you like it continue on reading
Image

First of all you must install the mod without modifying any tpl files, after apply this code:

Code: Select all
#
#-----[ OPEN ]---------------------------------------------
#
templates/ca_aphrodite/bbcode.tpl

#
#-----[ FIND ]---------------------------------------------
#
<!-- BEGIN quote_open --><blockquote><h6>{L_QUOTE}:</h6><!-- END quote_open -->

#
#-----[ AFTER, ADD ]---------------------------------------
#
<!-- BEGIN quote_username_post_open -->
<blockquote><h6>{USERNAME} {L_WROTE}: [{U_VIEW_POST}]</h6>
<!-- END quote_username_post_open -->
<!-- BEGIN quote_post_open -->
<blockquote><h6>{L_QUOTE}: [{U_VIEW_POST}]</h6>
<!-- END quote_post_open -->

#
#-----[ OPEN ]---------------------------------------------
#
templates/ca_aphrodite/posting_topic_review.tpl

#
#-----[ FIND ]---------------------------------------------
# around line 1
<!-- BEGIN switch_inline_mode -->

#
#-----[ BEFORE, ADD ]---------------------------------------
#
<script language="JavaScript" type="text/javascript">
<!--

message = new Array();
<!-- BEGIN postrow -->
message[{postrow.U_POST_ID}] = "[quote="{postrow.POSTER_NAME}";p="{postrow.U_POST_ID}"]\n{postrow.PLAIN_MESSAGE}\n[/quote]";
<!-- END postrow -->

function addquote(post_id) {

   window.parent.document.post.message.value += message[post_id];
   window.parent.document.post.message.focus();
   return;
}

//-->
</script>

#
#-----[ FIND ]---------------------------------------------
#
<div class="post-subject">{postrow.POST_SUBJECT}&nbsp;

#
#-----[ INLINE AFTER, ADD ]---------------------------------------
#
<span class="genmed"><input type="button" class="button" name="addquote" value="Quote" style="width: 50px" onClick="addquote({postrow.U_POST_ID});" /></span>

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

#
#-----[ FIND ]---------------------------------------------
#
      <span class="pagination">{PAGINATION}</span>
   </span></td>
</tr>
</table>

#
#-----[ AFTER, ADD ]---------------------------------------
#
<script language="Javascript" type="text/javascript">
<!--
   function open_postreview(ref)
   {
      height = screen.height / 3;
      width = screen.width / 2;
      window.open(ref, '_phpbbpostreview', 'HEIGHT=' + height + ',WIDTH=' + width + ',resizable=yes,scrollbars=yes');
      return;
   }
//-->
</script>


#
#-----[ OPEN ]---------------------------------------------
#
templates/ca_aphrodite/style.css

#
#-----[ FIND ]---------------------------------------------
#
.post-text blockquote {
   color: #444;
   display: block;
   margin: 5px 20px;
   width: auto;
   border: solid 1px #D0D0D0;
   background: #FFF url(images/bg_quote_content.gif) bottom right no-repeat;
   padding: 5px;
   font-size: 12px;
}

#
#-----[ AFTER, ADD ]---------------------------------------
#
.post-text blockquote a, .post-text blockquote a:visited {
   color: #777;
   text-decoration: none;
   border-bottom: dotted 1px #666;
}

.post-text blockquote a:hover, .post-text blockquote a:active {
   color: #FF1010;
   text-decoration: none;
   border-bottom: dotted 1px #FF1010;
}


After that just copy this file to templates/ca_aphrodite:

[code filename="post_review.tpl"]<!-- INCLUDE xs/xs_code_functions.tpl -->
<script language="Javascript" type="text/javascript">
<!--
function open_postreview(ref)
{
height = screen.height / 3;
width = screen.width / 2;
window.open(ref, '_phpbbpostreview', 'HEIGHT=' + height + ',WIDTH=' + width + ',resizable=yes,scrollbars=yes');
}
//-->
</script>

<table class="forumline" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr align="right">
<td class="row-header" colspan="2" ><span><a href="{U_VIEW_OLDER_POST}" class="nav">{L_VIEW_PREVIOUS_POST}</a> :: <a href="{U_VIEW_NEWER_POST}" class="nav">{L_VIEW_NEXT_POST}</a> &nbsp;</span></td>
</tr>
<tr>
<th class="thRight" nowrap="nowrap">{L_AUTHOR}</th>
<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td class="row-post-author" nowrap="nowrap">
<span class="post-name"><a name="{postrow.U_POST_ID}"></a>{postrow.POSTER_NAME}</span><br />
{postrow.RANK_IMAGE}
<span class="post-images">{postrow.POSTER_AVATAR}</span>
<div class="post-details">
{postrow.POSTER_JOINED}<br />
{postrow.POSTER_POSTS}<br />
{postrow.POSTER_FROM}<br />
{postrow.POSTER_GENDER}

</div><br />
<img src="templates/ca_aphrodite/images/spacer.gif" width="150" height="1" alt="" />
</td>


<td class="row-post" width="100%" height="100%">
<div class="post-buttons-top post-buttons">{postrow.ARROWS} <span class="img-main">{postrow.QUOTE_IMG}</span> {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG} {postrow.TOPIC_VIEW_IMG} {postrow.U_R_CARD} {postrow.U_Y_CARD} {postrow.U_G_CARD} {postrow.U_B_CARD}</div>
<div class="post-subject"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" /></a> {postrow.POST_SUBJECT}&nbsp;</div>
<div class="post-text">
{postrow.MESSAGE}<br />
<span class="gensmall">{postrow.EDITED_MESSAGE}</span>
{postrow.ATTACHMENTS}
<br /><br /><br />
{postrow.SIGNATURE}

</div>
</td>

</tr>
<tr>
<td class="row-post-date">{postrow.POST_DATE}</td>
<td class="row-post-buttons post-buttons">{postrow.POSTER_ONLINE_STATUS_IMG}{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.SKYPE_IMG} {postrow.ICQ_IMG}</td>
</tr>
<!-- END postrow -->
</table>
[/code]
User avatar
Bicet
Coder
Coder
 
Posts: 247
Joined: Mon Nov 15, 2004 7:50 pm

Postby Florian Schmidt on Tue Sep 13, 2005 7:20 am

Well, everything is fine, except, I would change the post_review.tpl a bit, because it's just a "review":

Code: Select all
<script language="Javascript" type="text/javascript">
<!--
function open_postreview(ref)
{
   height = screen.height / 3;
   width = screen.width / 2;
   window.open(ref, '_phpbbpostreview', 'HEIGHT=' + height + ',WIDTH=' + width + ',resizable=yes,scrollbars=yes');
}
//-->
</script>
<div class="forumline nav-div">
   <div class="nav-links">
      <!-- BEGIN postrow -->
      <div class="nav-links-left">
         {postrow.POST_DATE}
      </div>
      <!-- END postrow -->
      <a href="{U_VIEW_OLDER_POST}">{L_VIEW_PREVIOUS_POST}</a> | <a href="{U_VIEW_NEWER_POST}">{L_VIEW_NEXT_POST}</a>
   </div>
</div>

<table class="forumline" width="100%" cellspacing="0" cellpadding="0">
   <!-- BEGIN postrow -->
   <tr>
      <td class="row-post" width="100%" height="100%">
         <div class="post-subject">{postrow.POST_SUBJECT}</div>
         <div class="post-text">{postrow.MESSAGE}</div>
      </td>
   </tr>
   <!-- END postrow -->
</table>


And one question with the $lang['No_newer_posts'] and $lang['No_older_posts'] ....would there be a way to put this in the message-window and not to get it with the index-header? And how to put a "close window"-link underneath...!! ??

EDIT: Ok, and then for the "Quote-Button"...

I put

$quote_img = '<img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with_quote'] . '" border="0" />';

and

'QUOTE_IMG' => $quote_img,

in topic_review.php

and this is my posting_topic_review.tpl (only the postrow-part)

Code: Select all
<!-- BEGIN postrow -->
<tr>
   <td class="row-post-author">
      <span class="post-name"><a name="{postrow.U_POST_ID}"></a>{postrow.POSTER_NAME}</span><br />
      <img src="templates/ca_aphrodite/images/spacer.gif" width="150" height="1" alt="" />
   </td>
   <td class="row-post" width="100%">
      <div class="post-buttons-top post-buttons"><span class="img-main"><a href="#" name="addquote" onClick="addquote({postrow.U_POST_ID});">{postrow.QUOTE_IMG}</a></span>&nbsp;</div>
      <div class="post-subject">{postrow.POST_SUBJECT}&nbsp;</div>
      <div class="post-text">{postrow.MESSAGE}</div>
   </td>
</tr>
<tr>
   <td class="spaceRow" colspan="2"><img src="templates/ca_aphrodite/images/spacer.gif" width="1" height="3" alt="" /></td>
</tr>
<!-- END postrow -->


I think it's nicer to have it look like the original, rather then a stupid aligned button that only looks ok in subSilver...

EDIT 2:

Ok, last I cleaned up show_post.php dealing with the couple of variables left:

Code: Select all
<?php
/***************************************************************************
*                               show_post.php
*                            -------------------
*   begin                : Saturday, Nov 23, 2002
*   copyright            : (C) 2002 Meik Sievertsen
*   email                : acyd.burn@gmx.de
*
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);

//
// Start initial var setup
//
if ( isset($HTTP_GET_VARS['p']))
{
   $post_id = intval($HTTP_GET_VARS['p']);
}

if ( !isset($post_id) )
{
   message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}

//
// Find topic id if user requested a newer
// or older topic
//
if ( isset($HTTP_GET_VARS['view']) )
{
   if ( $HTTP_GET_VARS['view'] == 'next' || $HTTP_GET_VARS['view'] == 'previous' )
   {
      $sql_condition = ( $HTTP_GET_VARS['view'] == 'next' ) ? '>' : '<';
      $sql_ordering = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'ASC' : 'DESC';

      $sql = "SELECT topic_id, post_time FROM " . POSTS_TABLE . " WHERE post_id = " . $post_id . " LIMIT 1";

      if ( !($result = $db->sql_query($sql)) )
      {
         message_die(GENERAL_ERROR, "Could not obtain newer/older post information", '', __LINE__, __FILE__, $sql);
      }

      $row = $db->sql_fetchrow($result);

      $topic_id = $row['topic_id'];
      $post_time = $row['post_time'];

      $sql = "SELECT post_id FROM " . POSTS_TABLE . "
         WHERE topic_id = $topic_id
         AND post_time $sql_condition " . $post_time . "
         ORDER BY post_time $sql_ordering
         LIMIT 1";
      
      if ( !($result = $db->sql_query($sql)) )
      {
         message_die(GENERAL_ERROR, "Could not obtain newer/older post information", '', __LINE__, __FILE__, $sql);
      }
      
      if ($row = $db->sql_fetchrow($result))
      {
         $post_id = $row['post_id'];
      }
      else
      {
         $gen_simple_header = TRUE;
         
         $message = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'No_newer_posts' : 'No_older_posts';
         message_die(GENERAL_MESSAGE, $message);
      }
   }
}

if ( !isset($post_id) )
{
   message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}

//
// Get topic info ...
//
$sql = "SELECT t.topic_title, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments
   FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p
   WHERE p.post_id = $post_id
      AND t.topic_id = p.topic_id
      AND f.forum_id = t.forum_id";
      
$tmp = '';

if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}

if ( !($forum_row = $db->sql_fetchrow($result)) )
{
   message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}

$forum_id = $forum_row['forum_id'];
$topic_title = $forum_row['topic_title'];
      
//
// Start session management
//
$userdata = session_pagestart($user_ip, $forum_id);
init_userprefs($userdata);
//
// End session management
//

$is_auth = array();
$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row);

if ( !$is_auth['auth_read'] )
{
   message_die(GENERAL_MESSAGE, sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']));
}

//
// Define censored word matches
//
if ( empty($orig_word) && empty($replacement_word) )
{
   $orig_word = array();
   $replacement_word = array();

   obtain_word_list($orig_word, $replacement_word);
}

//
// Dump out the page header and load viewtopic body template
//
$gen_simple_header = TRUE;

$page_title = $lang['Post_review'] . ' - ' . $topic_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->set_filenames(array(
   'reviewbody' => 'post_review.tpl')
);

$view_prev_post_url = append_sid("show_post.$phpEx?p=$post_id&amp;view=previous");
$view_next_post_url = append_sid("show_post.$phpEx?p=$post_id&amp;view=next");

$template->assign_vars(array(
   'L_AUTHOR' => $lang['Author'],
   'L_MESSAGE' => $lang['Message'],
   'L_POSTED' => $lang['Posted'],
   'L_POST_SUBJECT' => $lang['Post_subject'],
   'L_VIEW_NEXT_POST' => $lang['View_next_post'],
   'L_VIEW_PREVIOUS_POST' => $lang['View_previous_post'],

   'U_VIEW_OLDER_POST' => $view_prev_post_url,
   'U_VIEW_NEWER_POST' => $view_next_post_url)
);
   
//
// Go ahead and pull all data for this topic
//
$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.post_id = $post_id
   AND p.poster_id = u.user_id
   AND p.post_id = pt.post_id
   LIMIT 1";

if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not obtain post/user information', '', __LINE__, __FILE__, $sql);
}

//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
if ( $row = $db->sql_fetchrow($result) )
{
   $mini_post_img = $images['icon_minipost'];
   $mini_post_alt = $lang['Post'];

   $i = 0;
   do
   {
      $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']);

      //
      // Handle anon users posting with usernames
      //
      if ( $poster_id == ANONYMOUS && $row['post_username'] != '' )
      {
         $poster = $row['post_username'];
      }

      $temp_url = '';

      if ( $poster_id != ANONYMOUS )
      {
      
      }

      $temp_url = append_sid("posting.$phpEx?mode=quote&amp;" . POST_POST_URL . "=" . $row['post_id']);
      $quote_img = '<a href="' . $temp_url . '" target="_parent"><img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with_quote'] . '" border="0" /></a>';
      $quote = '<a href="' . $temp_url . '" target="_parent">' . $lang['Reply_with_quote'] . '</a>';

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

      $message = $row['post_text'];
      $bbcode_uid = $row['bbcode_uid'];

      //
      // Note! The order used for parsing the message _is_ important, moving things around could break any
      // output
      //

      //
      // If the board has HTML off but the post has HTML
      // on then we process it, else leave it alone
      //
      if ( !$board_config['allow_html'] )
      {
         if ( $row['enable_html'] )
         {
            $message = preg_replace('#(<)([\/]?.*?)(>)#is', "&lt;\\2&gt;", $message);
         }
      }

      //
      // Parse message and/or sig for BBCode if reqd
      //
      if ( $board_config['allow_bbcode'] )
      {
         if ( $bbcode_uid != '' )
         {
            $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
         }
      }
      $message = make_clickable($message);

      //
      // Replace naughty words
      //
      if ( count($orig_word) )
      {
         $post_subject = preg_replace($orig_word, $replacement_word, $post_subject);
         $message = preg_replace($orig_word, $replacement_word, $message);
      }

      //
      // Parse smilies
      //
      if ( $board_config['allow_smilies'] )
      {
         if ( $row['user_allowsmile'] && $user_sig != '' )
         {
            $user_sig = smilies_pass($user_sig);
         }

         if ( $row['enable_smilies'] )
         {
            $message = smilies_pass($message);
         }
      }

      //
      // Replace newlines (we use this rather than nl2br because
      // till recently it wasn't XHTML compliant)
      //
      $message = str_replace("\n", "\n<br />\n", $message);

      //
      // Again this will be handled by the templating
      // code at some point
      //
      $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
      $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

      $template->assign_block_vars('postrow', array(
         'ROW_COLOR' => '#' . $row_color,
         'ROW_CLASS' => $row_class,
         'POSTER_NAME' => $poster,
         'POST_DATE' => $post_date,
         'POST_SUBJECT' => $post_subject,
         'MESSAGE' => $message, 

         'MINI_POST_IMG' => $mini_post_img,
         'QUOTE_IMG' => $quote_img,
         'QUOTE' => $quote,

         'L_MINI_POST_ALT' => $mini_post_alt,

         'U_POST_ID' => $row['post_id'])
      );

      $i++;
   }
   while ( $row = $db->sql_fetchrow($result) );
}
else
{
   message_die(GENERAL_MESSAGE, 'Topic_post_not_exist', '', __LINE__, __FILE__, $sql);
}

$template->pparse('reviewbody');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>


So at least I also got rid of the stupid header when there are no more post's....only question would be, how I would put the link "close window" in the $message-line...
User avatar
Florian Schmidt
Registered User
Registered User
 
Posts: 157
Joined: Tue Jan 11, 2005 7:53 am
Location: Germany - St. Blasien

Postby joebanana on Wed Dec 07, 2005 7:17 pm

Hey could I get that for MorpheusX please ?
joebanana
Registered User
Registered User
 
Posts: 32
Joined: Sat Apr 16, 2005 2:41 pm

Postby joebanana on Tue Dec 13, 2005 3:23 pm

[quote user="joebanana" post="59879"]Hey could I get that for MorpheusX please ?[/quote]

Nobody ? :|
joebanana
Registered User
Registered User
 
Posts: 32
Joined: Sat Apr 16, 2005 2:41 pm

Postby Florian Schmidt on Tue Jan 10, 2006 10:22 pm

I got a problem with 2.0.19 and
Code: Select all
$html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#', '#"#');
$html_entities_replace = array('&amp;', '&lt;', '&gt;', '&quot;');


If I use the '#"#' here, it will NOT build up the Link after the username...am I the only one with that problem? Is there a fix rather then putting out the little update here...?

EDIT: I guess, there would have to be a change in bbcode.php-part:
Code: Select all
   $text = bbencode_first_pass_pda($text, $uid, '[quote]', '[/quote]', '', false, '');
   $text = bbencode_first_pass_pda($text, $uid, '/\[quote=\\\\&quot;(.*?)\\\\&quot;\]/is', '[/quote]', '', false, '', "[quote:$uid=\"\\1\"]");

   $text = bbencode_first_pass_pda($text, $uid, '/\[quote=p=(\\"[0-9]+\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=p=\\1]");
   $text = bbencode_first_pass_pda($text, $uid, '/\[quote=(\\"[^"]*?\\");p=(\\"[0-9]+\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=\\1;p=\\2]");
but how to remove " here the right way....I don't know
User avatar
Florian Schmidt
Registered User
Registered User
 
Posts: 157
Joined: Tue Jan 11, 2005 7:53 am
Location: Germany - St. Blasien

Postby kfj on Wed Jan 11, 2006 5:28 am

I was gonna install this on my 2.0.19 board but if it don't work...
kfj
Registered User
Registered User
 
Posts: 67
Joined: Sat Dec 17, 2005 3:33 pm

Postby Florian Schmidt on Wed Jan 11, 2006 6:19 am

...i think there should be a way to build up the link differently but......hmhmhm...seems that Porutchik on phpBB has got it: http://www.phpbb.com/phpBB/viewtopic.ph ... 66#1925766

...finally even the broken preview (only quots in code etc.) seems to be fixed with it :-)
User avatar
Florian Schmidt
Registered User
Registered User
 
Posts: 157
Joined: Tue Jan 11, 2005 7:53 am
Location: Germany - St. Blasien

Postby Uniko on Wed Jan 11, 2006 5:51 pm

can you post the good code for 2.0.19
+------------------------------+
+--------Hi there
+------------------------------+
User avatar
Uniko
Registered User
Registered User
 
Posts: 310
Joined: Thu Feb 03, 2005 8:42 pm

Postby Florian Schmidt on Wed Jan 11, 2006 7:44 pm

Well, like he said:

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]------------------------------------------
#
   $text = bbencode_first_pass_pda($text, $uid, '/\[quote=\\\\&quot;(.*?)\\\\&quot;\]/is', '[/quote]', '', false, '', "[quote:$uid=\"\\1\"]");

#
#-----[ BEFORE, ADD ]------------------------------------------
#

   // [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff with an pre-defined post entry
   $text = bbencode_first_pass_pda($text, $uid, '/\[quote=p=\\\\&quot;([0-9]+)\\\\&quot;\]/is', '[/quote]', '', false, '', "[quote:$uid=p=\"\\1\"]");

   $text = bbencode_first_pass_pda($text, $uid, '/\[quote=\\\\&quot;(.*?)\\\\&quot;;p=\\\\&quot;([0-9]+)\\\\&quot;\]/is', '[/quote]', '', false, '', "[quote:$uid=\"\\1\";p=\"\\2\"]");

#
#-----[ FIND ]------------------------------------------
#
   // [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff with an pre-defined post entry
   $text = bbencode_first_pass_pda($text, $uid, '/\[quote=p=(\\"[0-9]+\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=p=\\1]");

   $text = bbencode_first_pass_pda($text, $uid, '/\[quote=(\\"[^"]*?\\");p=(\\"[0-9]+\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=\\1;p=\\2]");

#
#-----[ REPLACE WITH ]---------------------------------------------
# (just remove the lines)


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


These are the changes wich have to be done to get it show up right...
User avatar
Florian Schmidt
Registered User
Registered User
 
Posts: 157
Joined: Tue Jan 11, 2005 7:53 am
Location: Germany - St. Blasien

Postby Uniko on Wed Jan 11, 2006 8:28 pm

where can i get this file xs_code_functions.tpl

when i click on view post i get this
Code: Select all
Template->make_filename(): Error - included template file not found: xs/xs_code_functions.tpl


EDIT found it !
viewtopic.php?t=5460
+------------------------------+
+--------Hi there
+------------------------------+
User avatar
Uniko
Registered User
Registered User
 
Posts: 310
Joined: Thu Feb 03, 2005 8:42 pm


Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 0 guests

cron