vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   highslide for IMG BBCODE (https://vborg.vbsupport.ru/showthread.php?t=153378)

brfrankl 07-25-2007 06:28 PM

highslide for IMG BBCODE
 
Anyone have a hack for using the highslide stuff with IMG tags?

soulplayer 07-30-2007 01:40 PM

yeah this would be cool to :)

salata 09-01-2007 04:53 PM

bump

Elenna 09-02-2007 03:51 AM

From my post in the Highslide thread:
https://vborg.vbsupport.ru/showpost....&postcount=392

You can add an additional [img] tag in BBCode, and it will get parsed in place of your regular img code.

Once you have Highslide installed and working for Attachments, here is what I did (not pretty, very rudamentary, but working!):

In AdminCP>Custom BB Codes> BBCode Manager, scroll to bottom and click Add New.

Title: Image
Tag: img
Replacement:
HTML Code:

<a href="{param}" class="highslide" onclick="return hs.expand(this,{slideshowGroup:'$post[postid]'})" target="_blank"><img src="{param}" width="100"></a>
Example: (Whatever you want)
Description: (Whatever you want)

Note: I added another BBCode called imgsmall which does NOT use highslide. I use this for instructions, etc, where the image itself is smaller than 100px, so it would make no sense to have a thumbnail for it.
I use the following replacement code:
HTML Code:

<img src={param} border=0>

nix 09-02-2007 06:10 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=150491&page=47" target="_blank">https://vborg.vbsupport.ru/showt...150491&page=47</a>

brfrankl 09-02-2007 05:57 PM

Quote:

Originally Posted by Elenna (Post 1330501)
From my post in the Highslide thread:
https://vborg.vbsupport.ru/showpost....&postcount=392

You can add an additional [img] tag in BBCode, and it will get parsed in place of your regular img code.

Once you have Highslide installed and working for Attachments, here is what I did (not pretty, very rudamentary, but working!):

In AdminCP>Custom BB Codes> BBCode Manager, scroll to bottom and click Add New.

Title: Image
Tag: img
Replacement:
HTML Code:

<a href="{param}" class="highslide" onclick="return hs.expand(this,{slideshowGroup:'$post[postid]'})" target="_blank"><img src="{param}" width="100"></a>
Example: (Whatever you want)
Description: (Whatever you want)

Note: I added another BBCode called imgsmall which does NOT use highslide. I use this for instructions, etc, where the image itself is smaller than 100px, so it would make no sense to have a thumbnail for it.
I use the following replacement code:
HTML Code:

<img src={param} border=0>

Only problem is when there ia a [img] in the sig (didn't think of this before).. gonna have to play with this.... thanks fo the idea though...

salata 09-02-2007 11:13 PM

Quote:

Originally Posted by brfrankl (Post 1330883)
Only problem is when there ia a [img] in the sig (didn't think of this before).. gonna have to play with this.... thanks fo the idea though...

please keep me updated if you find away around this, i'd like to know how to do that as well :)

nix 09-03-2007 05:30 AM

Did you guys check that link I sent? The mod I'm working on there does images with highslide also.

Alfa1 09-03-2007 02:18 PM

I am following this with much interest. I hope you find a way to make it less rudamentary.

parabat 09-25-2007 06:38 PM

Elenna, this works like a dream.:up: Thanx for your assistance in this one.:D

-PB


All times are GMT. The time now is 02:49 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.01040 seconds
  • Memory Usage 1,738KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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