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)

kevcj 06-08-2007 11:54 AM

Mini2 - can this be made to work with VBpicgallery from http://www.cpurigs.com

kevcj 06-08-2007 06:22 PM

Yea their site has been down all day. I was hoping that it would be back up before you saw my post.

Redlgoals has a lightbox mod - https://vborg.vbsupport.ru/showthread.php?p=1264281

That has been ported to work with VBPicgallery - https://vborg.vbsupport.ru/showthread.php?t=126917

But, the lightbox by redgoals breaks the "attach" option to put the pictures in the middle of the post instead of at the bottom.

Yours does both, at the bottom and in the post. Plus I like how your mod keeps all the pictures the same size.

The ONLY reason I installed redgoals is to have the highslide in the VBPicgallery. Now my in the post pictures are broken, plus the VBpicgallery lighbox mod is not working. The lightbox picture appears a mile down the page in the bottom left hand corner.

So I have come here to ask for HELP!!!!

The vBPicGallery + Lightbox/Thickbox is three template edits. Can these PLEASE be tweaked to point towards your highslide feature??

kevcj 06-08-2007 08:22 PM

Thank you for looking at this.

Sorry, but now the image opens in a new browser window.

Steps I took:
Reinstalled the old version of your highslide lightbox (VB 3.6.5), even downloaded the newest version from http://vikjavev.no/highslide/

Removed all the code for redgoals lightbox and the VBpicgallery + redgoals mod code.

So I am back to your lightbox and its working with the inline line attachments as well. Which is where I am going to stay. Even if this does not work with VBPicgallery, I am going to stick with your lightbox.

Audentio 06-08-2007 09:20 PM

If it is set so that guests cannot view attachments, this doesnt override that, correct? Just making sure :p. Awesome work.

kevcj 06-08-2007 09:34 PM

Still a no go, the picture opens in a new browser window

kevcj 06-08-2007 10:22 PM

Thank you for your time. If you get a chance later, please give me a yell.

Smoothie 06-11-2007 02:00 AM

Are there instructions included in the zip file for what needs to be removed/undone from the previous version before installing the new product? Cause I forgot exactly what I added/edited when I first installed this. :p

IR15H 06-11-2007 04:31 PM

Quote:

Originally Posted by Smoothie (Post 1265907)
Are there instructions included in the zip file for what needs to be removed/undone from the previous version before installing the new product? Cause I forgot exactly what I added/edited when I first installed this.

Yes. The old install instructions are there, so you just work from that.


Having just updated from version 1 to 2, I get the following error when installing the product;
Quote:

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in \admincp\plugin.php(1964) : eval()'d code on line 11

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in \admincp\plugin.php(1964) : eval()'d code on line 11
It still appears to work fine however.

Shazz 06-11-2007 05:17 PM

Complex mod, hard adding on to it

Mike-D 06-11-2007 06:34 PM

Quote:

Originally Posted by Shazz (Post 1266359)
Complex mod, hard adding on to it

Exactly! Sat almost 2 hours to make all template changes. Rechecked all files, Product, Templates. Nothing. It does not work. I'm really annoyed about all the time I have spend in it.

[Edited]
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> 



Strange is: This posted way works excellent for me!!! Thank you so much, bjhuang!!! https://vborg.vbsupport.ru/external/2011/02/1.gif

I paid 30 bucks via Paypal to use it in my forum. I thinks it's worth all the effort for such a great Coder called Torstein H?nsi https://vborg.vbsupport.ru/external/2011/02/1.gif :)

TruthElixirX 06-11-2007 07:00 PM

I am having problems with the version 2.0.

I had the previous version installed, decided to upgrade. I am on 3.6.6, I tried using the alternate product, but it doesn't work. Nothing happens with the image, just loads like a normal attachment.

Mike-D 06-11-2007 09:54 PM

Quote:

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

Any min's ago I did it and it works great in PhotoPlog. If you interested I can help you out :) -Mike

TruthElixirX 06-11-2007 11:50 PM

Quote:

Originally Posted by TruthElixirX (Post 1266420)
I am having problems with the version 2.0.

I had the previous version installed, decided to upgrade. I am on 3.6.6, I tried using the alternate product, but it doesn't work. Nothing happens with the image, just loads like a normal attachment.

I take this back, it is working, but not for inline thumbnails.

Mike-D 06-12-2007 07:43 AM

Quote:

Originally Posted by mini2 (Post 1266771)
Be aware that that version is based on my old code, and is not fully functional or backward/non JS friendly.

Mornin mini2 :),
you can't believe how long I sat at my computer yesterday to get your code worked. It was really a PITA. I have tried really all and it won't worked. I've checked your Product Codes, Template Codes... Nothing. After I checked all posts of the forum from Torstein H?nsi . I found no info. Gee I got almost a nerveous breakdown. I thought always your code has something to do with the Image Resizer. So I disabled all installed Products: Nothing! Then I decided to read all pages inside this thread and finally I found the answer in the post from 'bjhuang'. And this one works excellent. Don't ask me why, but it works. But I forgot to tell you, that I installed it at first on my Lokal Test Forum.

Any idea why the old code works? Currently I'm on 3.65. Gee it was a really horror trip yesterday. It never happend to me :) -Mike

TruthElixirX 06-12-2007 08:15 AM

Quote:

Originally Posted by mini2 (Post 1266790)
It wont be the image resizer, as I have that too and they play nicely. It could be another piece of code or template adjustment you've made (or another mod has made) away from standard that means the auto-installed version isn't making the template edits.

Without seeing the "broken" install though I can't really say, and I'm not going to ask you to go through all that suffering again! You got it working in the end, and that's the main thing!

:D

Apologies for the pain and suffering.

;)

Any ideas on mine? Its just when the attachment BB code is used, is when it doesn't work.

Mike-D 06-12-2007 12:37 PM

Quote:

Originally Posted by mini2 (Post 1266790)
Apologies for the pain and suffering ;)

And that settles the matter. It's ok :D

I've rarely seen such a member like you who is ready to give such a famous & great support to everyone here!!!

IMO: Top-Rated Service :up:

Keep in touch and keep up the good work ;) -Mike

IR15H 06-12-2007 12:45 PM

Hmmm, on closer inspection, it doesn't fully work on my board.

Attached images work fine, but if I try to edit the plugins so that the thumbnail zooms out centrally then I get the following error when trying to view such a post/thread;

Quote:

Parse error: syntax error, unexpected T_STRING in D:\sites\bitclan\forum\global.php(341) : eval()'d code on line 3

Fatal error: Call to undefined function highslide_attachment_replace() in D:\sites\bitclan\forum\includes\class_bbcode.php(3 45) : eval()'d code on line 76
Also, the BB Code for inline attachment doesn't seem to want to work either.

Example post.

EDIT: Woops, guests can't see attachments. Username: test pass: test

Smoothie 06-13-2007 02:31 AM

I'm stickin with the version I got now. It works fine.

TruthElixirX 06-13-2007 03:38 AM

Quote:

Originally Posted by mini2 (Post 1266916)
Not without a link if you can provide on I can take a look.

http://www.fishcoastaltexas.com/foru...8782#post48782

Vs.

http://www.fishcoastaltexas.com/foru...ead.php?t=6259

mini2 06-13-2007 07:09 AM

Gone

TruthElixirX 06-13-2007 08:31 AM

Quote:

Originally Posted by mini2 (Post 1267463)
Hmm, taken a look and I'm not sure what's missing. I'll have to look into this later in the week most likely (bit busy atm), but do you have any other mods that affect attachments or images (apart from the ncode image resizer)?

Nope. I believe the part that is missing is the part that was hardcoded in, in the class_bbcode.php or whatever it was called.


EDIT:: See new post.

IR15H 06-13-2007 09:53 AM

Quote:

Originally Posted by mini2 (Post 1267463)
Hmm, taken a look and I'm not sure what's missing. I'll have to look into this later in the week most likely (bit busy atm), but do you have any other mods that affect attachments or images (apart from the ncode image resizer)?

Only vB ImageHosting. I have my attachments stored in a file system, rather than the database, if that makes any difference.

EDIT: Moved them to database and it's still not working.

TruthElixirX 06-13-2007 09:19 PM

Quote:

Originally Posted by mini2 (Post 1267462)
Guests cant view attachments, so I can't tell. ;)

Do you have, or can you set up a test account if you'd like me to take a look?

Thanks.

D'oh. Sorry. Yes, here:

Username: site5
PAssword: site5

lowey 06-17-2007 04:51 PM

Inline attachments do not work for me either! :(

All links of inline attachments as well as normal attachments have the same format and I have already disabled any hack including vbseo. What's wrong?

Thanks! :)

FleXy 06-17-2007 05:13 PM

please, help me...
when attached without inline mode - all work fine.
when used [ attach ] tag. no highslide border show. and highslide doesn't work.

ps sorry for english.

Rodc 06-18-2007 01:08 AM

I don't understand any of this and you've not replied to my email and PM. What am I supposed to do with the .xml file? Everything else I've got uploaded.

Unfortunately, the instructions makes the assumption that the users will know what they are doing. Sorry about that...I did try to explain it to you. Can ya lend a 49'er a hand? Thanks. -Rod-

da420 06-18-2007 04:47 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=149588" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=149588</a>

#2 explains it for ya.

Rodc 06-18-2007 11:42 PM

Quote:

Originally Posted by da420 (Post 1270692)

Yup, that did it, thanks. -Rod-

ICY ICE 06-21-2007 04:41 PM

Great mod!

Works great *except* when items are attached they show up twice. I read/searched the thread didn't find a similar issue.

http://www.valleyscuba.com/forum/sho...hp?postid=5350

vb 3.6.4
File system

Thanks!

TheMilkCarton 06-24-2007 06:18 PM

Are inline attachments ever going to be fixed? I'm not sure if I still have the old version laying around.. :(

Also, the paths to the controlbar2.gif and zoomin.cur in the highslide.css were wrong. If I read your directions correctly it says to put highslide.css, highslide.js AND the graphics subfolder in the highslide folder, meaning the correct path would be "url(graphics/controlbar2.gif)" and not "url(/highslide/graphics/controlbar2.gif)"

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]&amp;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 07:43 PM.

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.02648 seconds
  • Memory Usage 1,860KB
  • 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
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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