vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Module VbAdvanced: Coppermine Random photos (https://vborg.vbsupport.ru/showthread.php?t=119432)

AcidX 08-16-2006 11:51 AM

DjTaz, you d' man! :-)
But if it doesn't work, better watch out! ;)

Nice mod.
[high]* AcidX clicks install.[/high]

AcidX 08-16-2006 12:57 PM

Erm... I'm using 3.5.0, but I guess it doesn't work on that version, right?

vBAdvanced?

DjTaz 08-16-2006 05:23 PM

Quote:

Originally Posted by AcidX
Erm... I'm using 3.5.0, but I guess it doesn't work on that version, right?

vBAdvanced?

Im using 3.5.0 myself and VBA 2.1 (i think) - it should work ok on that.
Want me to take a look for you ?

AcidX 08-16-2006 08:27 PM

I'm using plain vBulletin 3.5.0 (with a few mods installed). I'm not using VBA.
Does this module work only with VBA?

Is there any way I can install it on my forum?
btw, the url is http://forum.kajgana.com/

Thanks, I really appreciate it.

DjTaz 08-16-2006 08:37 PM

Well the modules are usually only for VBA yes

If you put this under $navbar in your FORUMHOME template ..

Code:



<!-- / COPPERMINE GALLERY -->
<br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
                                <td class='tcat' colspan='0' align=left>
                                <span class='smallfont'>
                                <strong>&raquo; <a href='$coppath'>Gallery</a>
                                </strong></span></td>
                                </tr>

                                <tr>
                                <td class='alt1' width='100%' align-middle valign=middle>

$copphotos
</td></tr></table>
<!-- / COPPERMINE GALLERY -->

and then add
Code:

require_once('coppermine.php');
into your index.php as directed in the main instructions and upload the coppermine.php file into your root it should work (thats untested)

AcidX 08-17-2006 01:54 PM

So basically, all I need to do is:

1) Modify and upload the coppermine.php file in the forum root directory.
2) Put the code you gave me under $navbar in FORUMHOME
3) Add
Code:

require_once('coppermine.php');
in my index.php under require_once('./global.php');.

Do I have to create a template called adv_portal_navbar_with_gallery, or the three steps above are enough? ;)

AcidX 08-19-2006 12:44 PM

It works, kinda...

Take a look at the screenshot
Attachment 52294
As you can notice, I get the date, and the picture/author info - but there are no pictures listed.

Any ideas?

EDIT:
I had the wrong coppermine prefix. Replaced cpg133 with cpg135x and it worked!
Thank you ;)
Attachment 52296

JenniferK 08-21-2006 05:51 AM

I'm not really sure what I should be putting for the "path to the gallery from the coppermine.php file" I changed things a bit: I put the coppermine.php file in my modules folder because I want it as a stand-alone module lower on my home page rather than under the navbar. I changed the template accordingly.

My homepage is: mysite.com/forum/home.php
My gallery is: mysite.com/gallery/index.php
the coppermine.php file is: mysite.com/forum/modules/coppermine.php

I tried playing around with it a bit, but I keep getting the Unable to locate the picture database at this time error message.

DjTaz 08-21-2006 05:36 PM

your PATH TO GALLERY is back 2 folders and forward one ... so

../../gallery

that should do it for you, if not let me know the site and ill take a look.

JenniferK 08-21-2006 06:00 PM

Do you mean exactly like that:

../../gallery

As in if I cut and paste that it should work? Because now I'm getting this error: Warning: main(coppermine.php) [function.main]: failed to open stream: No such file or directory in /home.php on line 43

Fatal error: main() [function.require]: Failed opening required 'coppermine.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/huntley/public_html/forum/home.php on line 43


All times are GMT. The time now is 04:48 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.02363 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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