Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Coppermine CoppermineFetch and Photos on vBulletin FORUMHOME Details »»
Coppermine CoppermineFetch and Photos on vBulletin FORUMHOME
Version: 1.00, by 4Prometheus 4Prometheus is offline
Developer Last Online: Mar 2007 Show Printable Version Email this Page

Version: 3.5.6 Rating:
Released: 11-14-2006 Last Update: Never Installs: 1
 
No support by the author.

OK..

After a lot of finding no answers I have pieced together how to integrate vb and coppermine..
You must first download and install CoppermineFetch (found here http://www.fistfullofcode.com/)


Then upload the attached random.php to your forum root.

(Note: inside the random.php you will have to change the relative path if your site is not setup as follows:
domain_name/forum
domain_name/gallery
domain_name/cpmfetch
This random.php is set to display the last 8 pictures in one column. Other functions can be found here: http://www.fistfullofcode.com/php-li...ual/index.html )

In your forumhome template add this code below the <head>

Code:
<script language="Javascript">
<!--
var x1;

x1 = createRequestObject();

function createRequestObject() {
  var x = false;

  try {
    x = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      x = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
      x = false;
    }
  }

  if (!x && typeof XMLHttpRequest != "undefined") {
    x = new XMLHttpRequest();
  }

  return x;
}

function getPhotos() {
  x1.open('get','random.php'); //Replace random.php with whatever php script you are using to fetch photos
  x1.onreadystatechange = function() {
    if (x1.readyState == 4) {
      document.getElementById("photos").innerHTML = x1.responseText;
    }
  }
  x1.send(null);
}

onload = getPhotos();
//-->
</script>

Then add this code to your forumhome template wherever you want the pics to appear.

Code:
  <!-- / COPPERMINE GALLERY -->

<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="http://yourdomain.com/gallery">Photo Gallery</a>
				</strong></span></td>
				</tr>

 				<tr>
 				<td class='alt1' width='100%' align-middle valign=middle>
  <div id="photos" align="center">

</td></tr></table>
<!-- / COPPERMINE GALLERY -->
  <br><br>

Done!

These are basically the same instructions as given here
http://coppermine-gallery.net/forum/...8236#msg108236 on Coppermines site.



Peace.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-15-2006, 04:15 PM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I needed! Cheers.
Reply With Quote
  #3  
Old 11-19-2006, 12:39 PM
Immortal_Shades's Avatar
Immortal_Shades Immortal_Shades is offline
 
Join Date: Oct 2006
Location: South Florida
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay quick question;

I am running coppermine through Mkportal.
Which is public_html/mkportal/modules/coppermine.

My cpmfetch folder is my forum/cpmfetch directory.

Now for thelife of me I cant figire out how to get this work, and load. I did all the forum templates but still no luck!
Reply With Quote
  #4  
Old 01-20-2007, 11:03 PM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dont the similar mods posted on this do what yours does just without coppermine fetch ? Just out of curiouslty ?
Reply With Quote
  #5  
Old 02-02-2007, 04:52 AM
Soliloquy's Avatar
Soliloquy Soliloquy is offline
 
Join Date: Mar 2006
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get it to work either. My coppermine fetch worked fine, I performed all the template edits, double-checked all the paths, but still no results.
Reply With Quote
  #6  
Old 04-25-2007, 08:04 AM
TorGa3iGhT TorGa3iGhT is offline
 
Join Date: Jun 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work for 3.6.5?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04368 seconds
  • Memory Usage 2,250KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete