vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - highslide integration with vB attachments - lightbox alternative - inline too. (https://vborg.vbsupport.ru/showthread.php?t=139167)

rayw 04-29-2007 04:58 AM

Has anyone had troubles viewing images with Opera? When I'm in Opera and I click on a picture, it just says loading across the thumbnail and that's it.

BadgerDog 04-29-2007 09:26 AM

Does anybody know if this mod is compatilbke with Spleasure's "Image resizer" mod?

https://vborg.vbsupport.ru/showthread.php?t=118048

Thanks

Regards,
Badger

TheMilkCarton 04-29-2007 09:50 AM

I have both and they still work fine.

SilverVice 04-29-2007 03:23 PM

I will paypal 5$ to the one who will help me solve my problem Here. I know it?s not that much but I?m sure it?s a easy job for some of you guys :)

phill2003 04-29-2007 03:52 PM

Quote:

Originally Posted by SilverVice (Post 1237628)
I will paypal 5$ to the one who will help me solve my problem Here. I know it?s not that much but I?m sure it?s a easy job for some of you guys :)

I will get it to work if you want :)...

BadgerDog 04-29-2007 03:55 PM

Quote:

Originally Posted by bjhuang (Post 1231789)
to simplify the installation:

1. download highslide js from http://vikjavev.no/highslide/
2. download this: Attachment 63395
3. put highslide files under your forumroot/highslide/
4. put highslide.css under forumroot/highslide/
5. import product-highslideattach.xml as a product
6. modify template "postbit_attachmentthumbnail",
insert this line to the top:
PHP Code:

<if condition="!$vboptions[highslide_active]"

insert this line to the end:
PHP Code:

<else />
<
a id="att_$attachment[attachmentid]class="highslide" onclick="return hs.expand(this, { slideshowGroup: '$post[postid]' })" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"target="_blank"</if>><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&d=$attachment[thumbnail_dateline]border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
</if> 


Thanks to TheMilkCarton and bjhuang for clear explanations ...

Installed.... :)

I used bjhuang's method and it works fine for attachments that appear at the bottom of a post. :up:

So, to get more advanced and have it work for in-line attachments etc, I assume I have to perform changes to the rest of the templates mentioned?

Regards,
Badger

Edit: BTW, is there a reason I didn't have to do mini2's step 5 and step 6 (headinclude and header templates) and it still works fine? Also, I didn't do step 8 (SHOWTHREAD_SHOWPOST template) and it also works fine (scratching head?) :confused:

nfn 04-29-2007 04:07 PM

Quote:

Originally Posted by SideDraft260 (Post 1213859)
anyidea on how to integrate this into photoplog?


This is what I've done with PhotoPlog Lite v.2.0.6:

Edit photoplog_view_file template and find:

Code:

<a href="$photoplog_location/file.php?$session[sessionurl]n=$photoplog_fileid&amp;w=o"><img src="$photoplog_location/file.php?$session[sessionurl]n=$photoplog_fileid&amp;w=l" alt="$vbphrase[photoplog_click_to_view_original]" title="$vbphrase[photoplog_click_to_view_original]" border="0" /></a>

replace with:

Code:

<a class="highslide" onclick="return hs.expand(this, { slideshowGroup: '$post[postid]', align: 'center' })"href="$photoplog_location/file.php?$session[sessionurl]n=$photoplog_fileid&amp;w=o"><img src="$photoplog_location/file.php?$session[sessionurl]n=$photoplog_fileid&amp;w=l" alt="$vbphrase[photoplog_click_to_view_original]" title="$vbphrase[photoplog_click_to_view_original]" border="0" /></a>

SilverVice 04-29-2007 04:29 PM

Quote:

Originally Posted by phill2003 (Post 1237650)
I will get it to work if you want :)...

Ok thanks Phill, watch your PM :up:

Thanks

BadgerDog 04-29-2007 04:41 PM

Edit: Please ignore my previous post quoted below .....

You have to out the modified class_bbcode.php back in the correct directory for it to work... :o

Sorry about that ...

Got it working both for attachments below the post and now in-line attachments. Nice affect ... I wonder how much delay (extra loading time) it has on the graphics use, as compared to the traditional method. It certainly "jazzes" up the look and feel though.... :up:

I never did do mini2's step 5 and step 6 (headinclude and header templates) and it still works fine? Also, I didn't do step 8 (SHOWTHREAD_SHOWPOST template) and it also works fine. I just used bjhuang's method and it works fine for attachments that appear at the bottom of a post, plus I simply added mini2's steps for in-line attachments.

I hope that doesn't turn out to be a fatal mistake by mixing the two, but everything seems to be working fine... :)

Regards,
Badger


Quote:

Ok..... tried the following to get in-line attachments working, the same way they work fine when at bottom of posts. Installed all of this and nothing happens, even after complete rebuild of Post Cache? Anyone have any ideas?

Thanks...

Regards,
Badger

BadgerDog 04-29-2007 09:24 PM

I have a moderator running Firefox 2.0.0.3 (Javascript is enabled) , who says that the "in-line" thumbnails won't load ..... loading logo comes up and sits there but no pic, but the regular attachment ones (end of post) work just fine?

Any Firefox gurus out there who can suggest why?

Any chance this modified install would affect a Firefox v2.0 user? ..... which is, the skipping of mini2's step 5 and step 6 (headinclude and header templates) and step 8 (SHOWTHREAD_SHOWPOST template), just using bjhuang's method (and his own CSS file), plus added mini2's steps for in-line attachments.


Thanks

Regards,
Badger


All times are GMT. The time now is 11:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01554 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete