Showing the Images in your vBulletin Forum Showing the Images in your vBulletin Forum
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Showing the Images in your vBulletin Forum

Started by Pacman15, October 04, 2007, 10:25:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pacman15

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. :)

mc0676

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 ?


Pacman15

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.

mc0676

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.

Pacman15

No, sorry... try searching in the forums.  :-\

Konstantinos

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

mustang_lex

Thank You my friend it works like a charm!!!! www.stangette.com for those who want to see it in action!
Alex
www.stangette.com/showcase
my Coppermine Gallery!