![]() |
the settings to use in randomcmps.php are indicated in the image block settings of the gallery site admin page
|
Quote:
Thanks, Sean |
Is this available for 3.6?
|
works w/ 3.6.4
|
Anyone got this working properly with the integrated Gallery/vBa yet? Here's the link to that hack:
https://vborg.vbsupport.ru/showthread.php?t=111931 I'd love to get this working properly but I have no idea how to do it myself. Thanks in advance to anyone who can help! |
I'm having such a strange problem with this.
It was all working fine until I added a new style to the forum. It's a child style of the working one and the adv_portal_newrandomgallery2 is inherited. The preview works and I see a random image if i browse to the randomcmps.php file in a browser. Im stumped. If i go back to the original style it works fine. Anyone have any suggestions as to what could be causing it? Cheers, Dan. |
Has anybody managed to get this to work in vBa 3?
The preview works, but as soon as I add the module to a page, the contents of the $includedrg don't show. Looking at the displayed page source, the $include isn't returning anything to the output html. |
Does it work with vba 3.*?
Thanks |
Rather than use a plugin, another option is just to write a php file that you use as a php based module (as opposed to template based) and make a call to a template in the php code. You can also decide whether you want to have it link into a standalone gallery (as the examples given so far) or whether to link into an embedded gallery. You do this in the way you compose the request to get the latest/random/whatever image.
e.g. http://{path to your gallery install}/main.php?g2_view=imageblock.External&g2_blocks=ran domImage&g2_show=fullSize&g2_show=title gives a random image which will link to a stand alone gallery page vs. http://{path to your gallery integrated page}/gallery.php?g2_view=imageblock.External&g2_blocks= randomImage&g2_show=title which gives a random image which links to an embedded gallery Try both of the above just in a browser window and 'view source' to see the different links passed back by gallery in each case. I'll give you an example here of what I did to put a latest image block in my web site. Just create a new php file (called whatever you want) in your modules/ directory with the following content: Code:
<?php Finally, create a new template with the name you picked above (mine being called 'adv_gallery_block' in your desired style. You can design the template to garnish the image any way you want and reference the content that is extracted in the php file created previously. My simple example is - Code:
<tr align="center"> You can see mine in action at - http://www.supermotoaus.com |
<a href="https://vborg.vbsupport.ru/showthread.php?t=111931&page=20" target="_blank">https://vborg.vbsupport.ru/showt...111931&page=20</a>
This thread is super uber old. |
All times are GMT. The time now is 11:28 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|