First off maybe I should say that the block code snippets that are posted here for cpmfetch are great and Iââ,¬â,,¢ve used most of the good ones at various times.
My current set up is with:
SMF 1.1.2
TP v0.9.8
cpg 1.4.10
cpmfetch 2.0.0
Itââ,¬â,,¢s all working OK and so there are no issues there, but Iââ,¬â,,¢m trying to do something a little different and for two days now itââ,¬â,,¢s been ââ,¬Ëœup against the wallââ,¬â,,¢ time for me!
So here it is;
A version of the Dynamic Drive script for Tabbed Content (http://www.tinyportal.net/index.php?topic=11451.0) that was posted by Gobo is running on my forum Home page and Iââ,¬â,,¢m trying to include my cpmfetch ââ,¬Ëœrandonpic.phpââ,¬â,,¢ file at the bottom of the Welcome tab, below the content thatââ,¬â,,¢s already in place there.
Iââ,¬â,,¢ve tried most everything that is found here in the block code snippets board, searched the DD pages, the cpmfetch pages and did Google searches but so far itââ,¬â,,¢s just not working. There is lots of stuff about including HTML in php pages, but nothing about pulling a php page into an HTML script page. ( the welcome tab content is written with HTML)
This is one of the versions of code that has been tried for pulling the cpmfetch output into the welcome tabââ,¬Â¦
<?php include("/cpg1410/cpmfetch/randompic.php"); ?>
This one and others have been tried in various spots in the existing code and with and without various tags,
You can see the current attempt at the bottom of the code below.
I would be most thankful for any help.
Here is the code from the DD tabbed content script:
<style type="text/css">
#tablist{
padding: 3px 0;
margin-left: 0;
margin-bottom: 0;
margin-top: 0.1em;
font: bold 12px Verdana;
}
#tablist li{
list-style: none;
display: inline;
margin: 0;
}
#tablist li a{
padding: 3px 0.5em;
margin-left: 3px;
border: 1px solid #778;
border-bottom: none;
background: white;
}
#tablist li a:link, #tablist li a:visited{
color:#87CEFA;
}
#tablist li a.current{
background: none;
}
#tabcontentcontainer{
width: 450px;
/* Insert Optional Height definition here to give all the content a unified height */
padding: 5px;
border: 1px solid black;
}
.tabcontent{
display:none;
}
</style>
<script type="text/javascript">
/***********************************************
* Tab Content script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//Set tab to intially be selected when page loads:
//[which tab (1=first tab), ID of tab content to display]:
var initialtab=[1, "sc1"]
////////Stop editting////////////////
function cascadedstyle(el, cssproperty, csspropertyNS){
if (el.currentStyle)
return el.currentStyle[cssproperty]
else if (window.getComputedStyle){
var elstyle=window.getComputedStyle(el, "")
return elstyle.getPropertyValue(csspropertyNS)
}
}
var previoustab=""
function expandcontent(cid, aobject){
if (document.getElementById){
highlighttab(aobject)
detectSourceindex(aobject)
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
if (aobject.blur)
aobject.blur()
return false
}
else
return true
}
function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collecttablinks()
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].style.backgroundColor=initTabcolor
var themecolor=aobject.getAttribute("theme")? aobject.getAttribute("theme") : initTabpostcolor
aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor
}
function collecttablinks(){
var tabobj=document.getElementById("tablist")
tabobjlinks=tabobj.getElementsByTagName("A")
}
function detectSourceindex(aobject){
for (i=0; i<tabobjlinks.length; i++){
if (aobject==tabobjlinks[i]){
tabsourceindex=i //source index of tab bar relative to other tabs
break
}
}
}
function do_onload(){
var cookiename=(typeof persisttype!="undefined" && persisttype=="sitewide")? "tabcontent" : window.location.pathname
var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
collecttablinks()
initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor", "background-color")
initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor", "background-color")
if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
var cookieparse=get_cookie(cookiename).split("|")
var whichtab=cookieparse[0]
var tabcontentid=cookieparse[1]
expandcontent(tabcontentid, tabobjlinks[whichtab])
}
else
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}
if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload
</script>
<ul id="tablist">
<li><a href="" class="current" onClick="return expandcontent('sc1', this)">Welcome!</a></li>
<li><a href="" onClick="return expandcontent('sc2', this)" theme="">Faces, Places & Events</a></li>
<li><a href="hot.htm" onClick="return expandcontent('sc3', this)" theme="">Links</a></li>
<li><a href="search.htm" onClick="return expandcontent('sc4', this)" theme="">Search</a></li>
</ul>
<DIV id="tabcontentcontainer">
<div id="sc1" class="tabcontent">
<CENTER>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>template_faces_places_events</title>
<style>
<!--
.style4 {
text-align: center;
}
.style3 {
font-size: xx-small;
//color: #000000;
}
-->
</style>
</head>
<body>
<table border="1" width="72%" id="table2" style="border-collapse: collapse">
<tr>
<td align="center">
<h3 class="style4">Welcome to Your Fam<b><em><span class="style3"></span></em></b>ilyForum
& Web Site!<font size="1"><br>
We invite you to browse the pages of the FamilyForum and we would love to
have you join in with us and become a member so that you can keep all the
family up to date on what's happening where you are.<br>
Take a look at <a href="http://www.mykimbrell.com/FamilyForum/index.php?topic=31.msg52">
<font color="#87CEFA"><b><u>Who Can Become A Member</u></b></font></a> to
read up on how to become a member of Your FamilyForum.</font><font size="2"><br><br>
<font size="1">You can <a href="http://www.mykimbrell.com/FamilyForum/index.php?action=register"><b><u><font color="#87CEFA">Go Here</font></u></b></a> to Join (register) for Your FamilyForum.</font><br>
</font><b><i><font size="2">Enjoy... G-Pa Ken & G-Ma Kay<br>
</font></i></b></h3>
</td>
</tr>
</table>
<strong><font size=3><br>
</font></strong>
<p align="left"></p>
</body>
</html>
<html>
<body>
<?php include("/cpg1410/cpmfetch/randompic.php"); ?>
</body>
</html>
</CENTER>
<br />
</div>
Edit: Ps: The cmpfetch output can be seen
HERE (http://www.mykimbrell.com/cpg1410/cpmfetch/randompic.php)
Do you have it in a phpblock?
It wil not work in any HTML page....
HTML page may work if you remove all php code and add the absolute path:
but I'm not sure ?
<img src="http://www.mykimbrell.com/cpg1410/cpmfetch/randompic.php"></img>
Thanks for the reply Jeff
That's not working. :)
I'm going to keep searching for some way to call the cpmfetch output into the welcome tab...
The simple thing to do would be to just place the code in an article or block but that would not give me what I'm going for here.
Thanks... Ken
ooh, this thread's an old one. :D
Ken,, just out of curiosity, are you still using coppermine gallery on your sites? And cpmFetch?
If so, what versions of both please?
Stopped using it a long time (3+ years?) back lurkalot, but still had it installed until 3-4 months back when all of the albums and files were copied to my PC and then everything, including the db, was deleted from the server.
I did download the latest release yesterday and have considered a fresh install with a bridge to my live site.
Thanks Ken.
Does seem a lot cleaner now with the curve theme etc.
Here's one of my little test galleries. http://thepicvault.com/galleries/
Be aware though that cpmFetch won't work with the new version, (well it will with a bit of modification, but it loses some functions).
Bridge works ok too, sort of lol.. ::)
That looks good Lurk. O0
Luv all of the birds... especially those BOP.
This morning I've been trying(?) to install and bridge to my live forum, but ran into the same users list critical error issue that you had.
I'm reading up on your topic (http://forum.coppermine-gallery.net/index.php/topic,64678.0.html) now trying to sort out mine.
Quote from: Ken. on October 03, 2010, 03:18:02 PM
I'm reading up on your topic (http://forum.coppermine-gallery.net/index.php/topic,64678.0.html) now trying to sort out mine.
You're running separate databases? Second from last post in that thread should sort it. ;)
Quote from: Ken. on October 03, 2010, 03:18:02 PM
That looks good Lurk. O0
Luv all of the birds... especially those BOP.
Thanks. O0
Getting my head around the permissions for custom groups was / is a nightmare all by itself. :o
Quote from: Ken. on October 03, 2010, 03:18:02 PM
This morning I've been trying(?) to install and bridge to my live forum, but ran into the same users list critical error issue that you had.
I'm reading up on your topic (http://forum.coppermine-gallery.net/index.php/topic,64678.0.html) now trying to sort out mine.
ooh, after you sort that one out Ken, you might wan't to look at this one. http://forum.coppermine-gallery.net/index.php/topic,67422.0.html ;)
Got a feelin I'm about to get told off again for asking silly questions. You have to be careful over there you know. :uglystupid2: :D
I'm still having trouble with the first one, that file edit didn't seem to change anything.
When you had it installed to the same db as SMF how did that work out? I've never tried to install a second program/app to the same db as SMF except for those that get installed through the package manager.
Ken, that's strange the fix worked for me. What error are you getting?
I must mention this, but you probably already know,
"It's mandatory that you (as admin) go to the groups page directly after bridging or whenever you change anything in your bridging configuration or if you change anything in your groups settings on your bbs, as you need to trigger the re-sync."
This includes editing the bridge files. ;)
As for the databases. I've got a couple of online testsites with shared databases, and also got a couple of bridged installs using xampp one sharing the same database. No error when clicking memberlist.
And one with separate databases, applied that fix again to cure the error.
You just need to export the coppermine database using phpmyadmin, and import it into the smf database.
Then edit the include / config.inc.php file and add the database name and user details.
Ken, did you ever get any further with this, or did you give it up as a bad job. :P
And if you did get it up and running, did you manage to also get cpmfetch to work as before?
Sorry Lurk, but I've not followed up on this issue.
Ken, no problem, I don't blame you. It's a pain to be honest. ;)
I'm trying to get cpmfetch to work as it did with 1.4.27. I've got it working with the latest Coppermine 1.5.8, but have to leave out the Image owner name, and comment count.
I'll get there eventually. O0
I've the coppermine support forums, but not got a solution so far.. :)
I've been on those support forums a few times. They're pretty much jerks from the stuff I've read. lol
Quote from: IchBin on November 08, 2010, 06:24:09 PM
I've been on those support forums a few times. They're pretty much jerks from the stuff I've read. lol
Yes, they can be.
At least they dropped the Karma thing... in years past they would dump lots of negative karma on you for the least little offense against the site rules and would simply refuse to help you if you complained at all.
I've been told off a few times. :knuppel2:
Makes you scared to ask a question sometimes. Glad all support forums aren't like that. ;)
That said, I must be growing on them a bit, I've got one topic stickied, and even got a theme (my first and only theme) on their demo site for download. 8)