Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Inactive User

Re: First & Last Post Hover Preview

Those strings are no good because IP uses $bbcode to parse the params. And that would mean removing those strings and editing the body of the script and changing / modifying the variables for it to work.

If first and last post is not optional for one or the other etc - Post's Viewed is going to suffer something awful.

There is also another phpBB2 mod that shows the images in Mouse-Hover - can't remember exactly what it did - Didn't like it.

Edit: 40 minutes of my life wasted.

However! This is the first sample (Not much markup) which still needs a lot of scrap removed from the code and the instructions re-written when I dig it out the changes.

And seriously, the MOD does need a lot of cleaning up to make it a whole lot better using IP params.

If I clean up the first sheet a little later on, and paste it here. Do you want to go on with modifying the rest of it - Or do you want me to do it.

It probably only needs one "Instruction" sheet, "File" the .js and add 1 to 4 template options (or 10 - or 20 LOL!) or just make a default template etc.

Either way I'll post something you can play with soon.!

Edit:

Well Mate, I think I've got it right - but this MOD needs lang and template variables added to make it theme compatible and compliant with languages and IP. I mean who wants to edit viewforum.php to change the lang or style?

I already have a mouse-over hover MOD, and I'm not really interested in the "Last Post" thing - so this is probably as far as I'll be going with it.

// 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'] )
{
$first_message = preg_replace('#(<)([/]?.*?)(>)#is', "&lt;\2&gt;", $first_post);
}
}

// 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'] )
{
$last_message = preg_replace('#(<)([/]?.*?)(>)#is', "&lt;\2&gt;", $last_post);
}
}

// START Onmouse Over Topic Title Display First And Last Post
$lang['Firstpost'] = 'First Post';
$lang['Lastpost'] = 'Last Post';
$lang['More'] = ' ......More';
$lang['Protected'] = '<b>Protected message:</b><br />If you are a <b>*registered user*</b> :<br />you must post a reply to this topic to see the message ';
// END Onmouse Over Topic Title Display First And Last Post

I hear you about having to go back and change stuff in viewforum.php all the time if you used different styles and such. I know how to tweak things here and there, but adding lang and style variables is a little too much for me right now, LOL. I just don't understand how and where you added a background to the pop-up, LOL.

It is far wiser to change modifications to suit Icy Phoenix rather than vice-versa. There are are plenty of classes and id's to use in the .css, or one could also use the style function. Rather than stuffing around adding extra classes that would need to be added to every other different style.css.

Anyway, the script in the post I did has been upgraded. If you copy only the large part of viewforum.php; you should be good to go.