Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post 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: 103 Time(s)

 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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.

Will catch up tomorrow.


 
 
Edited by Guest, Tue 06 Jan, 2009 10:38: 40 minutes of my life wasted! hehehe!
 
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: First & Last Post Hover Preview 
 
Update!  

It's 6am

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.

Install_onmouse_over_topic_title_En.txt.

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

Still working on the Hide function.   

Spoiler: [ Show ]

 
 
Edited by Guest, Wed 07 Jan, 2009 15:05: Added upgraded Script
 
Back to topPage bottom
Reply with quote Download Post 
Post Re: First & Last Post Hover Preview 
 
Great work TDU.  

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!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.

 
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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 ]

 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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;
                  }

 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: First & Last Post Hover Preview 
 
Thank you Chaotic for the delayed information.

The Lecture:  

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!  
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post Re: First & Last Post Hover Preview 
 
That's right!  xxxxxxx yeah!

Works like a brand new liver.
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.  
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post Re: First & Last Post Hover Preview 
 
Do you want me to post my whole viewforum.php and viewforum_body.tpl?
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: First & Last Post Hover Preview 
 
What do I need that for?
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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.

My bad!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron