News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

MessagePreviewOnMouseOver

Started by snork13, February 03, 2006, 12:39:52 AM

Previous topic - Next topic

thecatlady

Quote from: Kindred on April 25, 2007, 09:16:30 PM
Mods, in general, only install themselves on the default theme.

On any other theme, you will have to manually apply the mod code.

In this case, the doce would need to be updated in the babylon theme's messageindex.template.php.

I knew I would have to do something manually... I installed flashchat, and had to make it work in Babylon.  I am a novice, and after about 2 hours...I actually got it to work (complete with a button and all).

I guess I missed what, I needed to do in order to get the Mouseover to work in Babylon.  I have been searching for the code to put in, and I am either blind, stupid or both!

Kindred

nah, not either... just a newbie. :) (which is curable)

look at the mod files for this mod and look in the install.XML file (or something similarly named... but not the packageinfo.xml)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

thecatlady

Quote from: Kindred on April 25, 2007, 09:22:56 PM
nah, not either... just a newbie. :) (which is curable)

look at the mod files for this mod and look in the install.XML file (or something similarly named... but not the packageinfo.xml)

See... I found ALL of that, and now I just need to know what to do with it!!!  I swear you guys are wizards and breeze through this with ease, but I have NO clue, and I am trying to do this on my own so that I learn what I am doing.  Getting pointed down the right path is always my first step, once I am where I need to be, I can do the modifications.  It took awhile with flashchat, but I was able to do it without having to post any requests for help.  This is not as easy believe it or not, because it isn't really spelled out as clearly.

Sarge

Use SMF Package Parser to see what changes are done by the mod:
http://sleepycode.com/index.php?action=modparser

Select "Install" and "Only Theme edits" to show changes to themes. You need to apply those changes to Babylon theme.

Keep in mind that find and replace changes might need to be adapted a bit in order to work for Babylon.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

thecatlady

Quote from: Sarge on April 25, 2007, 09:31:31 PM
Use SMF Package Parser to see what changes are done by the mod:
http://sleepycode.com/index.php?action=modparser

Select "Install" and "Only Theme edits" to show changes to themes. You need to apply those changes to Babylon theme.

Keep in mind that find and replace changes might need to be adapted a bit in order to work for Babylon.

Thanks Sarge.  I guess knowing how to adapt would be helpful.  I think that I will keep browsing, and maybe I can find what I need to do, or else the Babylon users will just have to do without lest I screw the pooch on my forum.

Thanks again for your input Kindred and Sarge

Sarge

Try the following -- beware that I haven't tested this, so backup these files first!

In Themes/babylon/MessageIndex.template.php

Find:

<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>';


Replace with:

<span title="', $topic['first_post']['preview'], '"><span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span></span>';





In Themes/babylon/Recent.template.php

Find:

' . $topic['first_post']['link'] . ' <a href="' . $topic['new_href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a> <span class="smalltext">' . $topic['pages'] . '</span>



Replace with:

' . '<span title="' . $topic['first_post']['preview'] . '">' . $topic['first_post']['link'] . '</span> <a href="' . $topic['new_href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a> <span class="smalltext">' . $topic['pages'] . '</span>





Since Babylon doesn't have an Admin.template.php and the corresponding languages/Admin.english.php, it will use the ones from the default theme, which are already modified. ;)

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

thecatlady

Here goes nothing...

I'll let you know what happens

Sarge

I'm creating an installable mod package to add Babylon changes for the original mod (which of course should be installed first), so that you won't have to modify SMF code directly.

I'll post it in a few minutes.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

thecatlady

LOL! It shows the whole post on the front page of the board! Back to the drawing board.

Sarge

OK, I created the additional mod with the changes listed above. I attached it here for you to modify as necessary. You can install it through Package Manager.

I will fix it later, though... unless someone beats me to it. :P

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

thecatlady

Sarge!!!

I could just kiss you right now for saving me hours of frustration!!!  Thank you, thank you, thank you!!!

Renee

Sarge

Quote from: thecatlady on April 25, 2007, 10:28:19 PM
Sarge!!!

I could just kiss you right now for saving me hours of frustration!!!  Thank you, thank you, thank you!!!

Renee

What, is my fix/mod for Babylon working? Or did you modify it a bit to make it work?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

thecatlady

Quote from: Sarge on April 26, 2007, 12:38:10 AM
Quote from: thecatlady on April 25, 2007, 10:28:19 PM
Sarge!!!

I could just kiss you right now for saving me hours of frustration!!!&nbsp; Thank you, thank you, thank you!!!

Renee

What, is my fix/mod for Babylon working? Or did you modify it a bit to make it work?

Like a charm!  It uploaded, and installed in a few seconds, and it works great in Babylon!  You've made 20 women VERY happy today!!!  Now what other guy on this forum can say that!  ;D

Thanks again, I truly appreciate it.

Renee

locomotion182

#113
hi!
sorry to bug, but im having issues with this mod. Its and all becaus eit show son the SMF default template.

I have 2 custom templates, I managed to apply it on one, but with this other one Im having no luck

anyone willing to help me = /, I can upload the files you need
I would appreciate it alot

thanks.


Edit: Im sure its just the MessageIndex.template.php because on the custom templete i managed to do myself that was the only thing i modified and worked ok.
I just cant modify it in this other them.

toonytoony2004

Help me please..

Toon... Thailand

I can't install mod..  when i try to install  it will show this message

"Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files. "

and in small box below show " 550 /usr/bbloomforum: No such file or directory "

i don't know why..

Please tell me the way to solve this plobrem

Thank you very much

Toon, Bangkok Thailand

locomotion182

u need to log to with your FTP
go to the fodler where u uploaded the mod, right click on the folder, select properties
and change the chmod to 777
its an option that u have

toonytoony2004

Oh Thank you very much

and i will try again

kill3r

great mod. plz update or still can i use this on 1.1.3???

Sarge

Quote from: kill3r on July 02, 2007, 11:34:02 PM
great mod. plz update or still can i use this on 1.1.3???

Most SMF 1.1.2 mods should work on 1.1.3 without any modification.

If Package Manager refuses to install the mod because it is made for an older version, try adding ;version_emulate=1.1.2 to the Package Manager URL. The link should be something like:
http://www.yourforum.com/index.php?action=packages;version_emulate=1.1.2

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

kill3r

@Sarge

okey thanks for replying.

Advertisement: