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)

ICY ICE 06-27-2007 02:11 AM

Does anyone else have the same issue?

Every attachment jpeg shows up twice on a post

Here are a few examples:

http://www.valleyscuba.com/forum/sho...05&postcount=1

http://www.valleyscuba.com/forum/sho...50&postcount=2

http://www.valleyscuba.com/forum/sho...11&postcount=5

rayw 07-02-2007 12:45 PM

I just upgraded my forums to 3.6.7 and also updated the highslide install as well. Everything appears to be working perfectly.

Thanks a lot. :)

GrowReport 07-02-2007 02:22 PM

Sorry m² but I think I screwed up.

I have the newest version of vB installed and the newest version of highslide (yes I was happy to pay for it)

Well I followed the directions in the text file and at the start of this thread.

When I modify the Highslide Main Function and the Highslide Attachment Thumbnail scripts my thread page does not load at all. No error, just no page is parsed.

When I change it back the page generates and loads fine. Just the Image pop up does not work. it just says loading but nothing does.

Sorry dude I messed up your good work.

Any clue where to send me to find what I did wrong?

Thanks

GrowReport 07-02-2007 03:14 PM

Forgot to say, this is running on my dev server so it's a windows 2003 with myphp 5+ installed and the most current php is installed too. I find no other errors because of the windows but that may be the answer.

I assume because the eyeglass image loads that the highslide scripts are being called ok.

The page attachment.php does not load at all and no errors are generated either by the script or on the server.

I just have not coded in php in to many years. Been doing .NET and c# for way to long now I think I forgot most other languages.

Defkalion 07-08-2007 02:18 PM

Great hack, but I have got two problems:

1. Has anyone been able to figure out what exactly causes the problem of attachments showing up twice?

2. I have installed this hack on both of my Vb forums and I can't get inline attachments to work in either one of them.

Please see this example; http://www.aekplanet.com/showthread.php?t=147

It's a post with attachments that appear twice, AND an inline attachment that doesn't work (it simply opens in a new page).


Can anyone help on this?

Silvio 07-11-2007 07:14 PM

ty for great hack *installed*

pls some help! i cant figure out how to set [attcap=135]allegato[/attcap] caption bbcode working.
it wont parse anything at all. while [attach] is running as a charm!
I have also added - on bb manager - the bb button (image) and set {Use}options = YES on the bb section where the code was already well placed automatically by the hack itself.

my forum is vB367pl1 and the hack is highslide integration with vB attachments2.0/ release 01 jun

hislide just downloaded (newest) and perfectly working on attachments & with photopost integration.

what i messed up?
apologises for my terrible itanglish

take care

ciao


p.s. I would love to see this hack also working on 'preview post' situation.

Emre Goren 07-13-2007 11:31 AM

installed..thank you

htscpl 07-13-2007 11:53 AM

Very Cool ! Going to test it out. Thanks for the hard work on this one! ** clicks installed **

Nitro212 07-17-2007 06:15 PM

i am gettign
this error on my forum when i add the center code

error
Code:

Parse error: syntax error, unexpected T_STRING in /home/zonamusi/public_html/tu_zona/global.php(341) : eval()'d code on line 3

Fatal error: Call to undefined function: highslide_attachment_replace() in /home/zonamusi/public_html/tu_zona/includes/class_bbcode.php(345) : eval()'d code on line 3

Highslide Attachment Thumbnail
Code:

$vbulletin->templatecache['postbit_attachmentthumbnail'] = str_replace('href=\"attachment.php','id=\"att_$attachment[attachmentid]\" rel=\"'.$slashurl.'_slash_attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]\" class=\"highslide\" onclick=\"return hs.expand(this, { slideshowGroup: \'$post[postid]\', align: \'center\' })\" href=\"attachment.php',$vbulletin->templatecache['postbit_attachmentthumbnail']);
Highslide Main Function

Code:

function highslide_attachment_replace($in) {
        global $post, $attachment;
        return preg_replace('/<a href="([^"]*)" target="_blank"><img src="([^"]*)" class="thumbnail" border="0"/','<a class="highslide" onclick="return hs.expand(this, { slideshowGroup: '.$post[postid].', align: 'center'} )" href="\\1" id="att_'.$attachment[0].'" target="_blank"><img src="\\2" class="thumbnail" border="0"',$in);
}

what i do wrong? :/

DePhauEll 07-17-2007 10:20 PM

Hi!
The center code also caused that error when I tried it. (vBulletin 3.6.7) Instead, I change the file "highslide.js". Look for:
Code:

align : 'auto', // position in the client (overrides anchor)
and change the word auto to center.

That worked for me.


All times are GMT. The time now is 03:39 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.01549 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_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