Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Ajax Thread (1stPost) Preview 1.5 Gold Details »
Ajax Thread (1stPost) Preview 1.5 Gold
Mod Version: 1.5 Gold, by SkyCatcher (Member) SkyCatcher is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.4 Rating: (18 votes - 4.44 average) Installs: 100
Released: 04 Feb 2007 Last Update: Never Downloads: 985
Not Supported Uses Plugins Template Edits Additional Files  

I have abandoned this modification as I find myself lacking time to do any additional modifications to get it 100% stable.

I would highly recommend that you check out this hack by magnus, as this one seems to be 100% AND looks great. I fell in love with it so I am using it myself

The only thing it doesn't do is give you a preview of the attachments, so you're welcome to keep the attachments part of this hack and use it in conjunction with magnus' hack.

I may just rewrite the attachments part of this hack and re-release it as a standalone.


Here is the link to his modification:

Collapsable First Post using AJAX (or Last Post!)
http://www.vbulletin.org/forum/showthread.php?t=145187


-Sky-

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Home Enhancements AJAX - Mouseover Profile Preview ericgtr vBulletin 3.6 Add-ons 376 24 Dec 2010 09:17
Forum Display Enhancements [AJAX] Ajax Poll Preview Alphawolf83 vBulletin 3.7 Add-ons 41 20 Mar 2010 09:39
New Posting Features AJAX Preview For New Thread / Reply -=Sniper=- vBulletin 3.6 Add-ons 118 24 Jul 2009 15:22

Comments
  #2  
Old 04 Feb 2007, 22:00
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Real name: Brian
FAQ


Question: How can I reposition the window?
Edit the ajax_postpreview.js file.

Find this bit of code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

x = right <-> left
y = up <-> down

You can use + or - values to adjust the position of the preview window.

Example(JUST an example):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.






Question: some reason it loads the whole thread! Not just the 1st post
Answer:
This hack will NOT work with vbSEO since it doesn't use showthread.php in the URL anymore.



Question: I see the "Click Here to Close" code in the js file.
It there any way to have this shown at the top of the window instead of the bottom?
Answer:
Find in ajax_postpreview.js


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Question: when I double click in the thread title to involk the AJAX title editting, instead of the title of the thread becoming editable the small mousover image is replaced with an edit window which has the html code
Answer:
If you installed v1.3 before I got to update the zip and you have this problem, follow these steps:


Find in Threadbit:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Question: Many of my threads are quite long and with auto-resize the user has to scroll the entire main window as it extends far down. If I set a defined size, the window is the proper size but there are no internal scroll bars to scroll down within that window. Am I missing something or is that a limitation?
Answer:

You can define a set height and width here (in the JS file)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just change to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Adding a set height to 480 in the example above. A scrollbar will show for the up/down scrolling if the post is taller than that.


And also set:

height:45%;

in the CSS file for ibox_content






Question: Anyway i can change the Click here to close to a GIF button instead?
Answer:

THANK YOU TO RMS-Chef FOR THIS:

I also made the close preview link a button image instead with this alteration (replace images/buttons/preview_close.gif with your own picture):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Question: How do I change it to click the image in the left column than have it invoked with the mouseover?
Answer: No problem.

In THREADBIT Template find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and REPLACE with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by SkyCatcher; 06 Mar 2007 at 11:58.
Reply With Quote
  #3  
Old 04 Feb 2007, 22:09
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Real name: Steve
Wow, this looks awesome. Thanks, SkyCatcher!
__________________
Reply With Quote
  #4  
Old 04 Feb 2007, 22:12
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Awesome!
Reply With Quote
  #5  
Old 04 Feb 2007, 22:18
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Might I suggest you change the title to "Thread Preview" rather than post, since that is what it is doing.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #6  
Old 04 Feb 2007, 22:25
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
suggestions...
  • limit preview to Message BODY only in effort to conserve bandwidth as much as possible.
  • resizeable (AdminCP defineable) popup preview.
  • insert space prior to and edit text "Loading content preview, please wait..."

Last edited by SCRIPT3R; 04 Feb 2007 at 23:25.
Reply With Quote
  #7  
Old 04 Feb 2007, 22:25
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Real name: Brian
Originally Posted by Paul M View Post
Might I suggest you change the title to "Thread Preview" rather than post, since that is what it is doing.
I ... I guess you're previewing the thread... but you're previewing the first post of that thread...um....

Well since you have the pitchfork I suppose I'll take that into considderation
Reply With Quote
  #8  
Old 04 Feb 2007, 22:36
bashy bashy is offline
 
Join Date: Nov 2005
great idea, will try this tomoz

I would say the title is correct as your only preview 1 post not the thread
__________________
Bashy

Bashys Place ~ Bashys Hosting
Reply With Quote
  #9  
Old 04 Feb 2007, 22:36
Terminatoronly's Avatar
Terminatoronly Terminatoronly is offline
 
Join Date: Mar 2006
Nice Work Mate Really Nice I Will Use It
Reply With Quote
  #10  
Old 04 Feb 2007, 22:44
DasCool DasCool is offline
 
Join Date: Jan 2007
i am finding a couple of things, i really don't know how to fix it. For some reason i want the Preview to pop up in the middle. However it actually opens all the way to the right and i have to scroll over. I dont know if this is a bug but The time is abit off too. Some times i will get the full 8 seconds and sometimes i will only get a sec of preview. Also, it seems to be Transparent like when i select it if there is a forum name under it then it gets mixed in with the writing

Last edited by DasCool; 04 Feb 2007 at 22:56.
Reply With Quote
  #11  
Old 04 Feb 2007, 23:02
DasCool DasCool is offline
 
Join Date: Jan 2007
here is what i mean
Attached Images
File Type: bmp TEST.bmp (642.5 KB, 196 views)
Reply With Quote
  #12  
Old 04 Feb 2007, 23:25
blogtorank's Avatar
blogtorank blogtorank is offline
 
Join Date: Jan 2006
Real name: Demetrius
Perfect.......... However, you should put in there Import product in the install.txt file to be more exact but overall perfect hack for the "Thread Preview" (Pitchfork Paul)
Reply With Quote
  #13  
Old 05 Feb 2007, 00:07
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Real name: Brian
Originally Posted by DasCool View Post
i am finding a couple of things, i really don't know how to fix it. For some reason i want the Preview to pop up in the middle. However it actually opens all the way to the right and i have to scroll over. I dont know if this is a bug but The time is abit off too. Some times i will get the full 8 seconds and sometimes i will only get a sec of preview. Also, it seems to be Transparent like when i select it if there is a forum name under it then it gets mixed in with the writing

I'm not sure what is happening there I can't seem to emulate the problem on any of my forums and I've double checked to make sure, and none of the windows are transparent.

The time thing can get screwy if the script loads too many times, too quickly. Then you can simply refresh the page and the timer should work again.

Like I said, JS... doesn't always want to do what I want to do :/

About the positioning, it's always going to display to the right and a little below the thread. If I include a css file you "may" be able to position it in the center of the screen, but I'm not positive on this yet so I'll play with it over the next couple of days.
Reply With Quote
  #14  
Old 05 Feb 2007, 00:16
marcsmith73 marcsmith73 is offline
 
Join Date: Jan 2007
It is haveing a problem reading any thread with Polls in them.
Reply With Quote
  #15  
Old 05 Feb 2007, 00:21
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Real name: Brian
Originally Posted by marcsmith73 View Post
It is haveing a problem reading any thread with Polls in them.
Mine looks like this ...
Attached Images
File Type: jpg poll.jpg (57.1 KB, 271 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:02.

Layout Options | Width: Wide Color: