 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
stevem
Joined: 15 Mar 2003 Posts: 357
|
Posted: Tue Jun 15, 2004 7:20 pm Post subject: |
|
|
Thanks for the file. There's absolutely nothing wrong with it - it's the one that records all the data in the database. I am absolutely mystified as to why it's choosing to ignore the author's name. Perhaps it isn't being fed the author name by another file. Have you changed any other file and if so, which ones? |
|
Back to top |
|
 |
jomamma
Joined: 24 May 2004 Posts: 12
|
Posted: Tue Jun 15, 2004 9:07 pm Post subject: |
|
|
stevem.. what i can do is allow u access to my ftp account to check the files.. but the only other files that i have changed was the index.php file. here that is: Code: | <HTML><HEAD>
<?php /* Don't' remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<TITLE>Digital-Revolution[dot]net</TITLE>
<script language="javascript">
/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
<script type="text/javascript">
/***********************************************
* Contractible Headers script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use. Last updated Oct 21st, 2003.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious="yes" //Collapse previously open content when opening present? (yes/no)
if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}
function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}
}
function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}
function expandcontent(cid){
if (typeof ccollect!="undefined"){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
}
}
function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}
function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}
document.cookie=window.location.pathname+"="+selectedItem
}
function do_onload(){
getElementbyClass("switchcontent")
if (enablepersist=="on" && typeof ccollect!="undefined")
revivecontent()
}
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
if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate
</script>
</HEAD>
<div style="position:absolute; left:480px; top:210px;"><!-- Scripthost Counter -->
<p> <i><SCRIPT LANGUAGE="JavaScript" SRC="http://server.scripthost.com/counter?jomamma"></SCRIPT></i></p>
<!-- end --></div>
<BODY>
<style type="text/css">
body {background-image: url(Images/grungebg.png);
scrollbar-face-color:#FF7373;
scrollbar-arrow-color:red;
scrollbar-track-color:#FF7373;
scrollbar-shadow-color:white;
scrollbar-darkshadow-color:black;
scrollbar-3dlight-color:white;
scrollbar-highlight-color:black;
font-family:verdana;
color: white;
line-height:13px;
letter-spacing:0pt;
text-align:justify;
margin: 0px;
font-size: 8pt;}
a:link {text-decoration: none; color: white; text-decoration:underline;}
a:visited {text-decoration: none; color: white; text-decoration:underline;}
a:active {text-decoration: none; color: white; text-decoration:underline;}
a:hover {color: white; text-decoration:none;}
P {text-indent: 0px; margin: 5px;}
</style>
<DIV style="position:absolute;top:18px;left:0px; z-index:0">
<IMG SRC=Images/grungeredtest.png>
</div>
<DIV ID="main"
STYLE="position:absolute; left:38px; top:579px; width:345px; height:px; z-index:2; border:1px solid black">
<div align=justify>
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_date("d.m.y","<U>","</U>"); ?>
<p>
<?php permalink_anchor(); ?>
<font color=white><u><strong><?php the_title(); ?></strong></u><strong></strong><br /> </font>
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br /> <br />
<strong><?php the_author() ?></strong> posted at <?php the_time() ?>
<br />
<a href="<?php comments_link() ?>"><?php comments_number("Comment?", "Comments (1)", "Comments (%)") ?></a>
</p>
<br /><br />
<?php include ("b2comments.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php } ?>
</DIV></DIV>
<DIV ID="log"
STYLE="position:absolute; left:394px; top:579px; width:281px; height:px; z-index:1; border:1px solid black">
<div align=justify>
<h6 onClick="expandcontent('sc1')" style="cursor:hand; cursor:pointer">
Daily Bible Verse (Click)
</h6>
<div id="sc1" class="switchcontent">
<!-- Begin HL Code - http://www.heartlight.org -->
<script src="http://www.heartlight.org/hls/tv_niv.js">
</script>
<!-- End HL Code - http://www.heartlight.org -->
</div>
<h6 onClick="expandcontent('sc2')" style="cursor:hand; cursor:pointer">
Me (Click)
</h6>
<div id="sc2" class="switchcontent">
<b>Me</b>: <img src=Images/smallpicme.gif><br>
<b>Name</b>: Ryan G.<br>
<b>Age</b>: 14<br>
<b>Location</b>: Arizona<br>
<b>Fav Drink</b>: <b><font color=#30B81E>STARBUCKS!!!</font></b><br>
<b>Status</b>: Taken! Love ya Ashley!<br>
<b>Height</b>: 6'<br>
<b>Weight</b>: <img src=Images/approxsign.gif> 190 lbs.<br>
<b>Hobbies</b>: Webdesigning, Surfing the web, Chatting online, movies, videogames, cell phone, blogging.<br>
<b>Webdesigning Expierence</b>: <img src=Images/approxsign.gif> 3 years<br>
<b>School</b>: In 2 1/2 days, Deer Valley Highschool<br>
<b>Wanted Car</b>: <a href=http://www.nissanusa.com/vehicles/ModelHomePage/0,,30382,00.html>Nissan 350z</a><br>
<b>AIM</b>:
<!-- Begin Online Status Indicator code -->
<!-- http://www.onlinestatus.org/ -->
<A HREF="aim:goim?screenname=JoMamma659">
<IMG SRC="http://www.matrixau.com:9000/aim/JoMamma659"
align="absmiddle" border="0" ALT="AIM Online Status Indicator"
onerror="this.onerror=null;this.src='http://www.matrixau.com:9000/image/aimunknown.gif';"></A>
<!-- End Online Status Indicator code --><br>
<b>MSN</b>:
<!-- Begin Online Status Indicator code -->
<!-- http://www.onlinestatus.org/ -->
<A HREF="http://www.matrixau.com:9000/message/msn/[email protected]">
<IMG SRC="http://www.matrixau.com:9000/msn/[email protected]"
align="absmiddle" border="0" ALT="MSN Online Status Indicator"
onerror="this.onerror=null;this.src='http://www.matrixau.com:9000/image/msnunknown.gif';"></A>
<!-- End Online Status Indicator code --><br>
<b>Yahoo</b>:
<!-- Begin Online Status Indicator code -->
<!-- http://www.onlinestatus.org/ -->
<A HREF="ymsgr:sendIM?JoMama761943">
<IMG SRC="http://www.matrixau.com:9000/yahoo/JoMama761943"
align="absmiddle" border="0" ALT="Yahoo Online Status Indicator"
onerror="this.onerror=null;this.src='http://www.matrixau.com:9000/image/yahoounknown.gif';"></A>
<!-- End Online Status Indicator code --><br>
<b>ICQ</b>:
<!-- Begin Online Status Indicator code -->
<!-- http://www.onlinestatus.org/ -->
<A HREF="http://www.matrixau.com:9000/message/icq/208117890">
<IMG SRC="http://www.matrixau.com:9000/icq/208117890"
align="absmiddle" border="0" ALT="ICQ Online Status Indicator"
onerror="this.onerror=null;this.src='http://www.matrixau.com:9000/image/icqunknown.gif';"></A>
<!-- End Online Status Indicator code --><br>
<b>Email</b>: <a href=mailto:[email protected]>Click</a><br>
-----------------------------------------<br>
<b>Dailies</b>:<br>
<a href=http://www.catherine-elise.tk/ target=new>Cat</a><br>
<a href=http://limeoid.pitas.com/ target=new>Kat (Limeoid)</a>
</div>
<h6 onClick="expandcontent('sc3')" style="cursor:hand; cursor:pointer">
You (Click)
</h6>
<div id="sc3" class="switchcontent">
<!-- Scripthost Guestbook -->
-<a href = "http://server.scripthost.com/guestbook?jomamma" target="_blank">Guestbook</a>
<!-- End --><br>
-<a href="http://www.blunttruthgame.com/takesurvey.cfm?uid=9751701">Take My Survey!</a><br>
-<a href=blinkiemaker.html>Make your own blinkie!</a>
</div>
<h6 onClick="expandcontent('sc4')" style="cursor:hand; cursor:pointer">
Site (Click)
</h6>
<div id="sc4" class="switchcontent">
-<b>Counter</b>:<br><?include("/home/rocksta/public_html/d-r/counter/counter.php");?>
</div>
<h6 onClick="expandcontent('sc5')" style="cursor:hand; cursor:pointer">
Joined (Click)
</h6>
<div id="sc5" class="switchcontent">
-<A HREF="#" onMouseOver="window.status='star jar';return true" onMouseOut="window.status='';return true" onClick="window.open('starjar.html','3233','width=300,height=430,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,left=0,top=0,screenx=50,screeny=50');return false"><img src="Images/sj_small.gif" border="0" alt="The Star Jar"></a><br>
-<A HREF="#" onMouseOver="window.status='Nokia Nerds';return true" onMouseOut="window.status='';return true" onClick="window.open('samplepage.html','3233','width=250,height=350,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,left=0,top=0,screenx=50,screeny=50');return false">Nokia Nerds</a>
</div>
<h6 onClick="expandcontent('sc6')" style="cursor:hand; cursor:pointer">
Fan Of.. (Click)
</h6>
<div id="sc6" class="switchcontent">
<a href=http://www.too-manic.net/hi-res><img src=Images/1024x768fan.gif border=0></a>
<a href=http://www.differently.org/sims/><img src=Images/sims01.jpg border=0></a>
<a href=http://webdesign.shukuya.com/index.php><img src=Images/ilovewebdesign.gif border=0></a><br>
<a href=http://savage-karma.net/cafe/indx.html>STARBUCKS (DUH)</a>
</div>
<h6 onClick="expandcontent('sc7')" style="cursor:hand; cursor:pointer">
Cliques (Click)
</h6>
<div id="sc7" class="switchcontent">
<a href=http://www.frozencloud.net/clique/><img src=Images/blink01.gif border=0></a>
<a href=http://www.frozencloud.net/clique/><img src=Images/blink03.gif border=0></a>
<a href=http://www.frozencloud.net/clique/><img src=Images/blink08.gif border=0></a>
<a href=http://www.frozencloud.net/clique/><img src=Images/blink13.gif border=0></a>
<a href=http://www.frozencloud.net/clique/><img src=Images/blink26.gif border=0></a>
</div>
<h6 onClick="expandcontent('sc8')" style="cursor:hand; cursor:pointer">
Adpotions (Click)
</h6>
<div id="sc8" class="switchcontent">
-<a href=http://www.Froggiez.com>Froggiez.com</a>-<br><img src=Images/lavalamp.gif border=0> <img src=Images/mintchocoicecream.gif border=0> <img src=Images/tamogatchie.gif border=0><br>
-<a href=http://www.Pure-Essence.net>Pure-Essence.net</a>-<br><img src=Images/cutelilpeztypething.gif border=0><img src=Images/kitty.gif border=0><br><br>
-<a href=http://www.catherine-elise.tk>Catherine-Elise.tk</a>-<br><img src=Images/hotfudgepoptart.gif><img src=Images/coffeeblack.gif><br><br>
<table width=100%><tr><td align=left style="border-bottom: dashed 1px white">
<b><font size=1px>
<b>Adopt from me below!</b><tr><td bgcolor="transparent" style="border:0px solid;">
</td></tr></table>
Here you guys can adopt some of my pixels, but <a href="mailto:[email protected]">E-Mail</a> me to adopt them
because I have disabled right click. Please link back to http://www.Digital-Revolution.net.tf. Thanks! Oh! You can submit yours to me and I will credit you.
Thats why I have next to the ones I made "(by:me)". So <a href="mailto:[email protected]">E-Mail</a> me if you have some
you want to submit and send me your URL and name.<br><br><br></center>
<center><img src="Images/iPod.gif"><br> iPod Pixel (by:me)<br><br>
<img src="Images/pencil.gif"><br> Pencil Pixel (by:me)<br><br>
<img src="Images/anim_clock.gif"><br> Animated Clock (by:me)<br><br>
<img src="Images/starbucks.gif"><br> Starbucks Drink (Java Chip) (by:me)
</center>
</div>
<h6 onClick="expandcontent('sc9')" style="cursor:hand; cursor:pointer">
Link Me (Click)
</h6>
<div id="sc9" class="switchcontent">
<img src=Images/grungebutton.gif><br><textarea name="link me 1" rows=2 cols=16><a href=http://www.d-r.rocksta.net><img src=http://www.d-r.rocksta.net/Images/grungebutton.gif></a></textarea><br>
-----------------------------------------<br>
<b>Links</b>:<br>
<img src="Images/grungebutton.gif" name="imagename02" width="88" height="31"><br>
-<a href="http://www.redolent.net" onMouseover="document.imagename02.src=image1.src" onMouseout="document.imagename02.src=image0.src" target="_blank">
Redolent</a><br>
-<a href="http://www.notyourangel.com" onMouseover="document.imagename02.src=image2.src" onMouseout="document.imagename02.src=image0.src" target="_blank">
Not Your Angel</a><br>
-<a href="http://limeoid.pitas.com/" onMouseover="document.imagename02.src=image3.src" onMouseout="document.imagename02.src=image0.src" target="_blank">
Limeoid</a><br>
-<a href="http://www.Bumblebear.org" onMouseover="document.imagename02.src=image4.src" onMouseout="document.imagename02.src=image0.src" target="_blank">
Bumble Bear</a><br>
-<a href="http://www.unonic.com" onMouseover="document.imagename02.src=image5.src" onMouseout="document.imagename02.src=image0.src" target="_blank">
Unonic</a><br>
-<a href="http://www.catherine-elise.tk" onMouseover="document.imagename02.src=image6.src" onMouseout="document.imagename02.src=image0.src" target="_blank">
Catherine-Elise</a><br>
-<a href="http://www.xtrememb.net" onMouseover="document.imagename02.src=image7.src" onMouseout="document.imagename02.src=image0.src" target="_blank">
XTREME MB</a>
<SCRIPT LANGUAGE="JAVASCRIPT">
if (document.images) {
image0=new Image
image1=new Image
image2=new Image
image3=new Image
image4=new Image
image5=new Image
image6=new Image
image7=new Image
image0.src="Images/grungebutton.gif"
image1.src="Images/redolent.gif"
image2.src="Images/notyourangel.gif"
image3.src="Images/katbutton.gif"
image4.src="Images/bumblebear.gif"
image5.src="http://imgdata.net/www.unonic.com/u88x31a.gif"
image6.src="Images/catlinkbutton.gif"
image7.src="Images/XMBbutton.gif"
}
</SCRIPT>
</div>
<h6 onClick="expandcontent('sc10')" style="cursor:hand; cursor:pointer">
Archives (Click)
</h6>
<div id="sc10" class="switchcontent">
<?php include("b2archives.php") ?>
</div>
<script language="JavaScript1.2">
/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/
var clickmessage="Pixels: I said email me to get them. Any other Images: Dont steal my stuff!!"
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}
function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>
</body>
</html> |
sorry about the length haha
if you need access to my ftp, just let me know and ill PM or email it to you. |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 357
|
Posted: Tue Jun 15, 2004 9:30 pm Post subject: |
|
|
This is so odd that it needs fiddling with the files to find out what's going on. You wouldn't want to do this to a live blog as changing things can look very odd or make the blog stop working.
What I suggest is setting up a test blog in a completely different directory with a different database but using exactly the same files (apart from the obvious changes in b2config.php). Set this up and if the test blog shows the same problem then you can give me FTP access to just that directory (so I don't touch any other areas of your site) and then I can try to test things out safe in the knowledge that it doesn't matter if the testblog goes wrong. |
|
Back to top |
|
 |
jomamma
Joined: 24 May 2004 Posts: 12
|
Posted: Wed Jun 16, 2004 9:41 pm Post subject: |
|
|
ok its setup. but when you say different database.. do you mean mySQL database? cuz if so i didnt do that yet. but here it is http://www.d-r.rocksta.net/testblog/ |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 357
|
Posted: Wed Jun 16, 2004 9:50 pm Post subject: |
|
|
jomamma wrote: | ok its setup. but when you say different database.. do you mean mySQL database? | Yes I did because then messing about with it won't make any difference to the real version, otherwise changing things could lose posts. It also means that I don't get to see your username and password for the proper blog.
So create a new database, change b2config.php for testblog and run b2install.php. |
|
Back to top |
|
 |
jomamma
Joined: 24 May 2004 Posts: 12
|
Posted: Thu Jun 17, 2004 1:30 am Post subject: |
|
|
well since im hosted, ill try to get one by 2morrow or later tonight, is that alright? |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 357
|
Posted: Thu Jun 17, 2004 6:03 pm Post subject: |
|
|
OK  |
|
Back to top |
|
 |
jomamma
Joined: 24 May 2004 Posts: 12
|
Posted: Fri Jun 18, 2004 6:22 am Post subject: |
|
|
ok, stevem, i emailed you. but i will also post this problem here, i dont know how to get the 2 instances of b2 to work, like.. have b2 not in the main dir, its in http://www.d-r.urban31.net/testblog (oh btw the new home of my site is urban31.net hosted by the same guy as before so the setting are the same and whatnot and the name still doesnt show up lol) |
|
Back to top |
|
 |
jomamma
Joined: 24 May 2004 Posts: 12
|
Posted: Mon Jun 21, 2004 2:41 am Post subject: |
|
|
ok, well here you go! www.d-r.urban31.net/testblog ... but i cant seem to get the images to show up.. so i made the text black |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 357
|
Posted: Mon Jun 21, 2004 3:38 pm Post subject: |
|
|
I see that the test blog is not showing the names either. Do you want to give me access to just this folder to see if I can work out what is going on? |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 357
|
Posted: Tue Jun 22, 2004 6:39 pm Post subject: |
|
|
The problem turned out to be a small bug in b2comments.php
Line 57 said Code: | <input type="text" name="name" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1" | but it should have said Code: | <input type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1" | In other words "name" should have been "author" |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2 © 2001, 2002 phpBB Group
|