First & Last Post Hover Preview


Goto page 1, 2  Next

Subject: First & Last Post Hover Preview
Has anyone seen this?

http://www.phpbb.com/community/viewtopic.php?f=16&t=578679

Look at how awesome it is. First and last post previews when hovering over a topic title. It even shows BBCodes in the preview.

After just making the changes in viewforum.php, I get this error:

Code: [Download] [Hide] [Select]
Fatal error: Call to undefined function bbencode_second_pass() in /homepages/33/d163845182/htdocs/macommunity_root/macommunity_site/viewforum.php on line 1307


This is my line 1307:

Code: [Download] [Hide] [Select]
$first_post = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($first_post, $first_post_bbcode_uid) : preg_replace('/:[0-9a-z:]+]/si', ']', $first_post);


Any idea what is going on?

Here is the mod:


onmouse_display_first&last_post_preview.zip
Description: Hover Preview 
Download
Filename: onmouse_display_first&last_post_preview.zip
Filesize: 15.34 KB
Downloaded: 227 Time(s)

Inactive User
Subject: 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. :P

Edit: 40 minutes of my life wasted. :censored:

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.

Will catch up tomorrow. :P


Subject: Re: First & Last Post Hover Preview
Yeah, I thought it would be kind of crazy.

It looks like the best hover preview I've ever seen and it would be a shame for there to be no way it could work with IP. I've seen it on plenty of sites and it's been bugging me for months. :LOL:

Inactive User
Subject: Re: First & Last Post Hover Preview
Update! :mrblue:

It's 6am :P

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.! :P

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. ;)

Install_onmouse_over_topic_title_En.txt.

Updated with Compliant html, .css .js and Language Vars.

Still working on the Hide function. :(

Spoiler: [ Show ]

Subject: Re: First & Last Post Hover Preview
Great work TDU. 8)

I followed the Install Style 1 instructions and this is what I see:

Spoiler: [ Show ]


There isn't a background for the pop-up. How did you do that here?

mid_c5b35b5df4477563b3db058c56eef1d6_untitled_3_1231230034_478172

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.

Again, great job!

Inactive User
Subject: Re: First & Last Post Hover Preview
It would be a safe bet that something is either missing from the .css of there is a javascript conflict.

Try it with a different theme. ?

Also, you could change the markup in the viewforum.php script (For $first and $last post to <div class=" - id= - whatever, then it should use the .css for the template.

Or you could also use <div style=" etc.

:mrgreen:

Subject: Re: First & Last Post Hover Preview
Limun and I worked that part out.

What say you about this? (Notice the huge gaps in preview, but no huge gaps exist in the actual post....)

Spoiler: [ Show ]

Inactive User
Subject: Re: First & Last Post Hover Preview
When you choose to make changes "underground" and not post what you have changed, be it the MOD or the style.

Further questions become quite pointless. :(

Subject: Re: First & Last Post Hover Preview
Here is the "underground" code addition. Don't tell anyone!

Added this at the bottom of the style_?.css

Code: [Download] [Hide] [Select]
.bodyline {
/*background-color: #ffffff;*/
background: #FFFFFF url('images/mech/bg_post.gif') repeat-x;
border: solid 2px #333333;
}

Inactive User
Subject: Re: First & Last Post Hover Preview
Thank you Chaotic for the delayed information. :P

The Lecture: :mryellow:

Sigh!!

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.

Thank you for your Beta-Testing. ;)

xxxxxx Yeah! :censored:

Subject: Re: First & Last Post Hover Preview
That's right! xxxxxxx yeah!

Works like a brand new liver. :D

Inactive User
Subject: Re: First & Last Post Hover Preview
ROFL - LMAO!

Put with you have at the moment, and I'll have a look at making it integrated with IP .css etc, etc. After all we've come this far so it may as well be finished properly.

And what's another 100 minutes of my life wasted between friends. :twisted:

Subject: Re: First & Last Post Hover Preview
Do you want me to post my whole viewforum.php and viewforum_body.tpl?

Inactive User
Subject: Re: First & Last Post Hover Preview
What do I need that for?

Subject: Re: First & Last Post Hover Preview
Lopalong wrote: [View Post]
Put with you have at the moment, and I'll have a look at making it integrated with IP .css etc, etc.


Oops. That must be the Aussie English coming out. :LOL:

My bad! :mryellow:

Goto page 1, 2  Next

Page 1 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1116s (PHP: 25% SQL: 75%)
SQL queries: 15 - Debug Off - GZIP Enabled