Advertisement:

Author Topic: MessagePreviewOnMouseOver  (Read 179332 times)

Offline choloman05

  • Full Member
  • ***
  • Posts: 620
  • Gender: Male
    • Competition Web Marketing
Re: MessagePreviewOnMouseOver
« Reply #20 on: September 20, 2006, 07:19:55 PM »
 Any news on felixibility of character # to be shown?

Offline choloman05

  • Full Member
  • ***
  • Posts: 620
  • Gender: Male
    • Competition Web Marketing
Re: MessagePreviewOnMouseOver
« Reply #21 on: October 02, 2006, 07:15:19 PM »
I have this installed on 1.1RC2, running Dilber MC theme. I have a few mods. Sometimes the message preview works, but most of the time it does not. Can anyone help? I'd like for this to work, it's a good mod. Thanks.

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,775
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
Re: MessagePreviewOnMouseOver
« Reply #22 on: October 02, 2006, 07:25:23 PM »
Open up MessageIndex.php and search for
Code: [Select]
LEFT(mf.body, 384) AS firstBody
Change 384 to a number.

Then search for
Code: [Select]
if ($smfFunc['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $smfFunc['substr']($row['firstBody'], 0, 128) . '...';
and change 128 to a number.

Warning: Increasing this number decreases performance for the query. I don't recommend you do so.
Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Offline choloman05

  • Full Member
  • ***
  • Posts: 620
  • Gender: Male
    • Competition Web Marketing
Re: MessagePreviewOnMouseOver
« Reply #23 on: October 03, 2006, 08:04:28 PM »
What does these numbers represent? I'm asking so I can get an idea of what I should change them to. Thanks for your help too.

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,775
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
Re: MessagePreviewOnMouseOver
« Reply #24 on: October 04, 2006, 02:24:16 AM »
384 is the amount of characters that is selected from the database. 128 is the amount of characters that are displayed. You can just increase the 128 and not touch the query which is probably what you should do. Increase it to 384. I think there might also be a browser limit on alt tags. Not sure.
Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Offline MysticTavern

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Female
  • Fantasy is the best cure for reality.
    • The Mystic Tavern
Re: MessagePreviewOnMouseOver
« Reply #25 on: October 04, 2006, 03:59:55 PM »
I was wondering if someone would be so kind as to post the -exact- changes that are made to the code in the MessageIndex.php file, so I could apply the same changes to the same MessageIndex.php file for the theme babylon? I'm asking the same question with a few other mods that work only with the default theme.
http://www.themystictavern.com [nofollow] 

The Mystic Tavern--Dream no small dream...

Offline haktanir2

  • Jr. Member
  • **
  • Posts: 220
    • Guresmania
Re: MessagePreviewOnMouseOver
« Reply #26 on: October 05, 2006, 01:59:52 AM »
Worked without any problems on 1.1 RC3, thanks.  :D

Offline Tanks

  • Full Member
  • ***
  • Posts: 583
  • Gender: Male
  • Danish Dude
Re: MessagePreviewOnMouseOver
« Reply #27 on: October 05, 2006, 04:05:03 AM »
Can this be made to show pictures attached in that post ??

Offline NEMINI

  • SMF Hero
  • ******
  • Posts: 1,570
  • Gender: Male
Re: MessagePreviewOnMouseOver
« Reply #28 on: October 05, 2006, 06:40:00 AM »
I was wondering if someone would be so kind as to post the -exact- changes that are made to the code in the MessageIndex.php file, so I could apply the same changes to the same MessageIndex.php file for the theme babylon? I'm asking the same question with a few other mods that work only with the default theme.
Check out http://docs.simplemachines.org/index.php?topic=402
signatures are boring.

Offline haktanir2

  • Jr. Member
  • **
  • Posts: 220
    • Guresmania
Re: MessagePreviewOnMouseOver
« Reply #29 on: October 05, 2006, 11:10:26 AM »
I was wondering if someone would be so kind as to post the -exact- changes that are made to the code in the MessageIndex.php file, so I could apply the same changes to the same MessageIndex.php file for the theme babylon? I'm asking the same question with a few other mods that work only with the default theme.
Just open the zip file, there should be a main file showing all the changes, search there for MessageIndex.php and it will show you the changes made.

Offline MysticTavern

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Female
  • Fantasy is the best cure for reality.
    • The Mystic Tavern
Re: MessagePreviewOnMouseOver
« Reply #30 on: October 05, 2006, 08:09:10 PM »
Thank you both so much. That worked. I've just now run into the problem that the code the mod changes in the default theme isn't present in the babylon theme. So now I'm not sure what I have to add, or replace. Which I'm sure is the main problem most people have when trying to apply mods to any other theme except default.
http://www.themystictavern.com [nofollow] 

The Mystic Tavern--Dream no small dream...

Offline choloman05

  • Full Member
  • ***
  • Posts: 620
  • Gender: Male
    • Competition Web Marketing
Re: MessagePreviewOnMouseOver
« Reply #31 on: October 13, 2006, 01:11:44 PM »
Open up MessageIndex.php and search for
Code: [Select]
LEFT(mf.body, 384) AS firstBody
Change 384 to a number.

Then search for
Code: [Select]
if ($smfFunc['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $smfFunc['substr']($row['firstBody'], 0, 128) . '...';
and change 128 to a number.

Warning: Increasing this number decreases performance for the query. I don't recommend you do so.

thanks, but I couldn't find any of that code.  ???
« Last Edit: October 16, 2006, 04:30:49 PM by choloman05 »

Offline colleenbbr

  • Semi-Newbie
  • *
  • Posts: 55
Re: MessagePreviewOnMouseOver
« Reply #32 on: October 19, 2006, 12:08:43 PM »
Are the changes you posted for RC2 or RC3?

I am looking for template changes for Dilber MC on RC3..any ideas?

Thanks,
Lisa

Offline unrelenting

  • Full Member
  • ***
  • Posts: 526
Re: MessagePreviewOnMouseOver
« Reply #33 on: October 31, 2006, 10:12:25 PM »
Does anyone know what to change in the Classic Theme, any version. I'm using 1.1 RC3.

Offline unrelenting

  • Full Member
  • ***
  • Posts: 526
Re: MessagePreviewOnMouseOver
« Reply #34 on: November 07, 2006, 09:53:22 PM »
Does anyone know what to change in the Classic Theme, any version. I'm using 1.1 RC3.

Surely someone has found a way to add this to the Classic Theme.  ???

Offline choloman05

  • Full Member
  • ***
  • Posts: 620
  • Gender: Male
    • Competition Web Marketing
Re: MessagePreviewOnMouseOver
« Reply #35 on: November 10, 2006, 05:54:22 PM »
I think instructions for applying any mod to a custom theme will work, won't they?
  http://docs.simplemachines.org/index.php?topic=402

Offline unrelenting

  • Full Member
  • ***
  • Posts: 526
Re: MessagePreviewOnMouseOver
« Reply #36 on: November 10, 2006, 07:21:27 PM »
I think instructions for applying any mod to a custom theme will work, won't they?
  http://docs.simplemachines.org/index.php?topic=402

I know how to add it manually, I just don't know where to add the code in the classic theme. The way it is laid out is completely different than the default. It's not even close to the same or I could do it myself.

Offline snork13

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,305
  • Gender: Male
  • so little time
    • simplemachines.org
Re: MessagePreviewOnMouseOver
« Reply #37 on: November 11, 2006, 11:36:22 AM »
I think instructions for applying any mod to a custom theme will work, won't they?
  http://docs.simplemachines.org/index.php?topic=402

I know how to add it manually, I just don't know where to add the code in the classic theme. The way it is laid out is completely different than the default. It's not even close to the same or I could do it myself.

I take a look at the classic theme.

-Snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Offline unrelenting

  • Full Member
  • ***
  • Posts: 526
Re: MessagePreviewOnMouseOver
« Reply #38 on: November 11, 2006, 04:28:49 PM »
I think instructions for applying any mod to a custom theme will work, won't they?
  http://docs.simplemachines.org/index.php?topic=402

I know how to add it manually, I just don't know where to add the code in the classic theme. The way it is laid out is completely different than the default. It's not even close to the same or I could do it myself.

I take a look at the classic theme.

-Snork13

Thanks, Snork.

Offline snork13

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,305
  • Gender: Male
  • so little time
    • simplemachines.org
Re: MessagePreviewOnMouseOver
« Reply #39 on: November 11, 2006, 06:44:20 PM »
@unrelenting

give this one a try...

-Snork13
« Last Edit: November 11, 2006, 06:51:49 PM by snork13 »
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1