 |
phpBB2 Mods A demo forum demonstrating my mods
|
| View previous topic :: View next topic |
| Author |
Message |
Afkamm Site Admin
Joined: 22 Sep 2004 Posts: 568 Location: Scotland
|
|
| Back to top |
|
 |
Afkamm Site Admin
Joined: 22 Sep 2004 Posts: 568 Location: Scotland
|
Posted: Sun Aug 13, 2006 7:03 pm Post subject: |
|
|
There's currently a bug that appears when you have quotes within quotes. In the install file, when asked to do the following...
| Code: | #
#-----[ OPEN ]---------------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------------------------
#
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text);
$text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text);
// New one liner to deal with opening quotes with usernames...
// replaces the two line version that I had here before..
$text = preg_replace("/\[quote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['quote_username_open'], $text);
#
#-----[ REPLACE WITH ]-------------------------------------------
#
// Start Autolinks For phpBB2 MOD
/*
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text);
$text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text);
// New one liner to deal with opening quotes with usernames...
// replaces the two line version that I had here before..
$text = preg_replace("/\[quote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['quote_username_open'], $text);
*/
$text = bbencode_second_pass_quote($text, $uid, $bbcode_tpl);
// End Autolinks For phpBB2 MOD
|
...don't do it. Ignore this part and I'll try and fix the bbencode_second_pass_quote() function that's called.
_________________ Marc
Remember, Google is your friend. |
|
| Back to top |
|
 |
Afkamm Site Admin
Joined: 22 Sep 2004 Posts: 568 Location: Scotland
|
Posted: Wed Aug 16, 2006 9:43 pm Post subject: |
|
|
To fix the order bug (when you deleted an autolink the order got messed up) in v2.1.2 to become v2.1.3 do the following
| Code: | #
#----[ OPEN ]------------
#
admin/admin_autolinks.php
#
#----[ FIND ]------------
#
$id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : '';
#
#----[ REPLACE WITH ]----
#
$id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : '';
#
#----[ FIND ]------------
#
$hidden_fields = '<input type="hidden" name="save" value="me" /><input type="hidden" name="delete" value="1" /><input type="hidden" name="id" value="' . $link_id . '" />';
#
#----[ INLINE, FIND ]----
#
<input type="hidden" name="id" value="' . $link_id . '" />
#
#----[ REPLACE WITH ]----
#
<input type="hidden" name="id" value="' . $link_id . '|' . $link_order . '" />
|
_________________ Marc
Remember, Google is your friend. |
|
| Back to top |
|
 |
Afkamm Site Admin
Joined: 22 Sep 2004 Posts: 568 Location: Scotland
|
Posted: Fri Sep 01, 2006 10:43 am Post subject: |
|
|
Thanks to femu for finding a bug. Here's the fix to take 2.1.3 to 2.1.4
| Code: | #
#----[ OPEN ]-----
#
includes/functions.php
#
#----[ FIND ]-----
#
function obtain_autolink_list(&$orig_autolink, &$replacement_autolink, $forum_id)
{
global $db, $userdata;
#
#----[ INLINE, FIND ]-----
#
$userdata
#
#----[ AFTER ADD ]-----
#
, $phpEx
#
#----[ FIND ]-----
#
append_sid(index.$phpEx) . '?lurl='
#
#----[ REPLACE WITH ]-----
#
append_sid("index.$phpEx") . '?lurl='
#
#----[ SAVE/CLOSE FILE ]-----
#
|
_________________ Marc
Remember, Google is your friend. |
|
| Back to top |
|
 |
|
|
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 can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|