vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Display Images on your forums home with coppermine (https://vborg.vbsupport.ru/showthread.php?t=66669)

modrnman 06-28-2004 10:00 PM

Display Images on your forums home with coppermine
 
This allows you to add CLickable "random images" from Coppermine 1.3.0 photo gallery and display them on your FORUMHOME template or any other page outside coppermine.

This is an alternate to the coppermine SSI , and RSS Feed Hack.
I have a working examples of this code here at modrnman.org

I will offer support for this modification

Vega 06-29-2004 11:17 AM

I'll try that. Thank you! :)

Phalynx 06-29-2004 11:21 AM

nice one!

Serph_kun 06-29-2004 08:11 PM

screen shot, plz? ^__^

Shack Networks 07-02-2004 12:25 PM

It doesnt work

H

rinkrat 07-02-2004 08:01 PM

No worky

It looks like you're calling it up with $randomimg
but I don't see that defined anywhere.

I don't know this stuff too well but one of the regulars should spot the problem.

rinkrat 07-02-2004 08:57 PM

AAaahh!! i got it. When I reached the part about displaying on forumhome I was still trying to get it to install on VB Advanced Portal as a module. I never got to the end where it has "** You must add this code to your phpinclude_start template for your images to display***"

D'OH!!

Now it works fine :)

I've been waiting for a hack like this and even tried a few that didn't work.

GREAT JOB and thanks so much!!

gmarik 07-02-2004 09:25 PM

nice little o' addon

D|ver 07-10-2004 10:45 AM

yeah really nice addon :)

but is it possible to show only random images from the last uploaded album?

that would be great

nexialys 07-17-2004 02:21 PM

have to be moved in the Add-on Releases section

Blam Forumz 08-19-2004 10:55 AM

Can it be configured to work with vBindex?

kall 08-31-2004 02:25 AM

Quote:

Originally Posted by nexialys
have to be moved in the Add-on Releases section

But it's a Mini Mod...why would it belong in the Addon section?

[high]* kall clicks install[/high]

misticjeff 09-09-2004 04:26 PM

I was wondering if there is a way to exclude certain albums that don't have photo's, like a video album. When you view that you get a link with no photo and the dreaded "red x" cause there is no image to associate with the file.

billbensen 10-08-2004 10:20 PM

Does anyone know why when I add the $randomimg bit in the phpinclude_start the $var gets cut off in the code? All I'm left with is = implode(...
I've tried all I know to get this to work and run out of ideas. Also it's on a Win2k machine...

TIA

Bill Bensen

NightWalk8r 11-28-2004 07:45 PM

is there a way to restrict it from showing un-approved/ private images?? by restricting certain albums, or just only showing certain albums?
Thanks

frankenberrie 04-22-2005 05:14 PM

Works 100%, take a look

http://www.arcadecrazy.com

marian 06-26-2005 01:42 PM

I dowloaded this and was about to try it out when I got to:
c//This connects to the mysql DB
//***change username and password below***

$MZrandompic = @mysql_connect('localhost', 'username', 'password'); //***YOU MUST CHANGE THIS***
Surely that will allow anyone viewing source code to find the password??

Marco van Herwaarden 06-26-2005 01:54 PM

If this is in a php-file, then nobody will be able to see the source, except if they have access to your ftp. In that case they can also see the same info in your config.php.

marian 06-26-2005 02:24 PM

Quote:

Originally Posted by MarcoH64
If this is in a php-file, then nobody will be able to see the source, except if they have access to your ftp. In that case they can also see the same info in your config.php.

Thanks for that, I'm a bit of a php dummy as u probably gathered! :)

Marco van Herwaarden 06-26-2005 09:41 PM

So was i a few month ago (well less thn 1 year ago, i hadn't seen a single line of php).

But just try to download any php source using your browser, and you will know.

SmartGnome 06-28-2005 04:23 PM

Have installed the mod and view on the forumhome.. All settings made, block is on the forum homepage, but in this block no pics and this text 'Error performing query: You have an error in your SQL syntax near ''****_-_cmine133' WHERE aid = ''' at line 1
'

Any ideas ??

Tnx

Marco van Herwaarden 06-28-2005 05:44 PM

Please provide the full error text.

Enclave 08-09-2005 07:38 AM

//random images from coppermine//
$randomimg = implode("", file("http://127.0.0.1/gallery/crandom.php"));
//end of random images from coppermine//

this code make the forum very slow, any other ideas?

marian 08-09-2005 07:45 AM

Quote:

Originally Posted by Enclave
//random images from coppermine//
$randomimg = implode("", file("http://127.0.0.1/gallery/crandom.php"));
//end of random images from coppermine//

this code make the forum very slow, any other ideas?

I just need help with where to put it.
cpmfetch has been written for the purpose of displaying coppermine images on another page. DOwload it from http://www.fistfullofcode.com/projects/copperminefetch/
When you've got it working on your forum page, please tell this php idiot what to do.

Icehawk002 10-15-2005 03:05 AM

Quote:

Originally Posted by misticjeff
I was wondering if there is a way to exclude certain albums that don't have photo's, like a video album. When you view that you get a link with no photo and the dreaded "red x" cause there is no image to associate with the file.

Was this answered? I have same problem when video files are selected as the random image with that dreaded "red x".

It would be nice to select from which albums or categories random images are taken

Icehawk002 10-02-2006 09:38 AM

Anyone interested updating this great hack to 3.61 with vbadvanced CMPS 2.2.

I for one would $ roll it.

Thanks


All times are GMT. The time now is 08:16 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.01251 seconds
  • Memory Usage 1,759KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete