coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Pacman15 on October 04, 2007, 10:25:21 PM

Title: Showing the Images in your vBulletin Forum
Post by: Pacman15 on October 04, 2007, 10:25:21 PM
Hello.

I have figured a way to show the images from your gallery in your vBulletin Forum with cpmFetch. (if anyone already posted this, please delete the thread, i searched for a thread similar to this one and found nothing).

Installation:
-------------
Log into your vBulletin administration panel. Click on the "Plugin System" section on the left and choose "Add New Plugin". Plugins may be disabled. If this is the case, you will need to follow the directions given to enable them. Now on the "Add New Plugin" screen, select "global_start" (under "vBulletin; General") for the "Hook Location". Give the plugin a title, such as "Gallery Thumbnails". Finally, copy the code from below and paste it into the PHP code box. Make the plugin active and save it.
-------------

function gallery_thumbs()
{
        include_once "./gallery/cpmfetch/cpmfetch.php";
        $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
        $objCpm->cpm_viewRandomMedia (<rows>, <columns>, $options);
        $objCpm->cpm_close();
}

ob_start();
gallery_thumbs();
$gallery = ob_get_contents();
ob_end_clean();

-------------
Once you decide where you would like the thumbnails to appear, open up the appropriate template for the current style in the administration panel and insert "$gallery". Save, and enjoy :D
-------------

I have it running on my forum, vBulletin v.3.6.8. I guess it will work with previous versions. Why wouldn't it. :)
Title: Re: Showing the Images in your vBulletin Forum
Post by: mc0676 on November 16, 2007, 09:37:55 PM
Great, it work for me too.
Do you know if it's possibile to make a plug-in to insert in the profile user to link directy to his personal gallery ?

Title: Re: Showing the Images in your vBulletin Forum
Post by: Pacman15 on November 16, 2007, 09:40:50 PM
Thanks, I'm glad you like it. But I basically took the pre-made functions people around here made, and adjust them to work within vBulletin. I don't know how to do what you want, sorry.
Title: Re: Showing the Images in your vBulletin Forum
Post by: mc0676 on November 19, 2007, 12:31:45 PM
Thanks, and do you know if exixt a plugin to create a bbcode to insert directly in a post a thumbnail ?

Like che albuimg tag of the smartor phpbb album.
Title: Re: Showing the Images in your vBulletin Forum
Post by: Pacman15 on November 19, 2007, 01:11:39 PM
No, sorry... try searching in the forums.  :-\
Title: Re: Showing the Images in your vBulletin Forum
Post by: Konstantinos on December 02, 2007, 11:53:57 AM
Quote from: mc0676 on November 16, 2007, 09:37:55 PM
Great, it work for me too.
Do you know if it's possibile to make a plug-in to insert in the profile user to link directy to his personal gallery ?



http://www.vbulletin.org/forum/showthread.php?t=122834
Title: Re: Showing the Images in your vBulletin Forum
Post by: mustang_lex on August 11, 2008, 04:02:52 AM
Thank You my friend it works like a charm!!!! www.stangette.com for those who want to see it in action!