TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Need help with something a little different with 'cpmfetch'

Started by ken.kimbrell, April 22, 2007, 08:13:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ken.

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 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
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Crip

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>
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Ken.

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
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

lurkalot

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?

Ken.

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.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

lurkalot

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

Ken.

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 now trying to sort out mine.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

lurkalot

Quote from: Ken. on October 03, 2010, 03:18:02 PM

I'm reading up on your topic 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

This website is proudly hosted on Crocweb Cloud Website Hosting.