News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Quote is Empty!

Started by Mari-chi, June 21, 2011, 03:05:46 PM

Previous topic - Next topic

Mari-chi

When I quote a post, it takes me to the text editor, but the content between the quotes is empty. ??? What's going on? I never noticed this before, haha.

The screenshot is in the attachment.

As you can see... There's nothing. o.O In the quote above the words "QUOTE #7", there is supposed to be the words "QUOTE #6", but it's blank.

hadesflames

But it actually displays the text between the quote tags in the text editor?

Mari-chi

<3

Nope, it's just blank. But that's only the case when I quote for the first time. For example:

"Content #1"

When I quote "Content #1", it won't show up. It would show up as:

Quote
Content #2

But when I quote the above, The words "Content #2" will show up in my third post. :/ Gah. I'm probably not making any sense. You can try it out in this topic: http://adlucem.net/index.php?topic=59.0

Username: testing
Password: testing

hadesflames

Mmk, so can you post up a copy of your Subs.php?

*psst read your pms on bryans site.

Mari-chi

Subs.php attached~ :D

(And replied XD)

hadesflames

What mods do you have installed?

Mari-chi

@_@ Loooots:

Order Custom Profile Fields
Stop Spammer
Custom Pages and Tabs
Read Sticky Topics
Hidden Admin
New Topic Button
Drafts
SubAccounts Mod
SimplePortal
SMF Advanced Topic Prefix Mod
Membergroup Legend
View PM or Subject List
SA Shop
Switch Permissions
reCAPTCHA for SMF
SimpleDesk
Forum Firewall
httpBL
Default Avatar
Guest Registration Notification
AjaxChat Integration
Annoy User
Remove images from quotes
Order Stickied Topics

hadesflames

Has anyone touched your Subs.php file, other than mods?

Mari-chi

*Raises hand* I have! But only to move around the menu items.

ETA: Oh, and to add BBCodes.

hadesflames

mmm...Why are there some stuff commented out at the beginning of the parse_bbc() function?

Mari-chi

? What stuff? Put it in [*code] :D

hadesflames

function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = array())
{
global $txt, $scripturl, $context, $modSettings, $user_info, $smcFunc;
static $bbc_codes = array(), $itemcodes = array(), $no_autolink_tags = array();
static $disabled, $default_disabled, $parse_tag_cache;

// Don't waste cycles
if ($message === '')
return '';

// Never show smileys for wireless clients.  More bytes, can't see it anyway :P.
if (WIRELESS)
$smileys = false;
elseif ($smileys !== null && ($smileys == '1' || $smileys == '0'))
$smileys = (bool) $smileys;

if (empty($modSettings['enableBBC']) && $message !== false)
{
if ($smileys === true)
parsesmileys($message);

return $message;
}

// Just in case it wasn't determined yet whether UTF-8 is enabled.
if (!isset($context['utf8']))
$context['utf8'] = (empty($modSettings['global_character_set']) ? $txt['lang_character_set'] : $modSettings['global_character_set']) === 'UTF-8';

/*
// If we are not doing every tag then we don't cache this run.
if (!empty($parse_tags) && !empty($bbc_codes))
{
$temp_bbc = $bbc_codes;
$bbc_codes = array();
}
*/

// Sift out the bbc for a performance improvement.
// if (empty($bbc_codes) || $message === false || !empty($parse_tags))
// I wish I didn't had to do this... puff...
if (empty($bbc_codes) || $message === false)

butch2k

AFAIK it's simple portal which is doing this.

Mari-chi

o.O Simple Portal? Why would Simple Portal comment out the stuff about bbc?

I... Have no clue why that was commented out. But I removed them, and the quotes are working properly now! Thanks Aldo. <3

hadesflames


Advertisement: