Author |
Message |
jaded
Theme Guru
![](modules/Forums/images/avatars/447fe6544d7f95dc7157a.gif)
Joined: Nov 01, 2003
Posts: 1006
|
Posted:
Tue Jan 17, 2006 12:49 pm |
|
I have a friend who is using this shoutblock. It works fine for an admin to post. When a regular site member tries to post the following error occurs.
Code:Fatal error: Call to undefined function: save_shouttext() in /home/******/public_html/blocks/block-ishoutbox.php on line 93
|
Now, here is the code for the block. I am hoping that one of you will be kind enough to fix this for him.
Since I cannot post the code here is a direct link to the block
Only registered users can see links on this board! Get registered or login!
I hope that someone can fix this. lines mentioned in the error are
Code: cookiedecode($user);
$username = $cookie[1];
if (isset($shouttext) && ($shouttext!="")) {
save_shouttext();
}
|
|
_________________ Themes BB Skins
http://www.jaded-designs.com
Graphic Tees
http://www.cafepress.com/jadeddesigns
Paranormal Tees
http://www.cafepress.com/HauntedTees
Ghost Stories & More
http://www.hauntingtales.net
Last edited by jaded on Wed Jan 18, 2006 5:48 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Tue Jan 17, 2006 1:52 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 17, 2006 3:10 pm |
|
Hi, that is a different shoutblock entirely. It is a very nice one though. However, it conflicts with the other java script blocks on the site. The install file said how to fix that which I followed however, it does not work for me. either the shoutbox will work and not the other java blocks or the java blocks work but not the shoutbox. The other shoutblock was very nice but didnt have all these features of the one you posted. I hope to get one or the other to work with some help here. Thanks hit! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 17, 2006 3:16 pm |
|
ah to bad,but weird...on nukeresouces they mention it as to try new version and the name was the same... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 17, 2006 3:49 pm |
|
yes i know. it is not the same at all. funny, huh lol |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/a22ae3b240f0eae302721.jpg)
Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com
|
Posted:
Tue Jan 17, 2006 4:26 pm |
|
Sorry for being rudimentary, but is '$user' declared in the script? e.g.
|
_________________ .:: "The further in you go, the bigger it gets!" ::.
.:: Only registered users can see links on this board! Get registered or login! | Only registered users can see links on this board! Get registered or login! ::. |
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 17, 2006 7:13 pm |
|
Yes, I believe that it is. The link to the block is up in my original post if you have time to look around it. Thanks |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Jan 17, 2006 10:59 pm |
|
Jaded, is that all the files? Since there is no function in the index.php file called save_shouttext it has to be included from somewhere. Were you told to add any code to mainfile.php? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 17, 2006 11:15 pm |
|
Here is the entire system. It only has the module and the block. Since the block was the error I only included that. I should have just put the whole thing in. I hope that you can get this working. You have always been my hero, Raven.
Only registered users can see links on this board! Get registered or login!
no, i did not have to add any special code anywhere, odd isnt it. ![Neutral](modules/Forums/images/smiles/icon_neutral.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 17, 2006 11:24 pm |
|
I just searched on the entire zip and there is no function like that. I suggest you contact the author. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 4:18 am |
|
weird,all i see is postnuke related lines and one word pops into my head and thats...junk.
anyone looked at the mods index file? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 6:52 am |
|
I contacted the author about 5 times. I never got any reply. Thanks for looking guys. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 7:04 am |
|
Unfortunately, he's the only one who can tell you what the function should be. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 7:15 am |
|
Well after some digging here and there i think if found the original,meaning...how it should be.
Unfortunately this doesnt solve much at all.
As i believe its original a postnuke shout.
The block also wasnt realy a block but a file called ..ishoutbox.php and it should be placed in the includes folder together with the smilies.js
For some reason (dont know by who) it was transfered into a block,but it has the same code in it.
but even this version is completely dead. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 7:31 am |
|
very weird. it allows posting as admin with no issue. I still have gotten no reply from the makers of the other one you gave me the link to at nukeresources. Thats a much nice shoutbox but as I said it kills all of the other java on the page. Is there another shoutbox option out there for ravennuke 7.6??? I have tried 3 so far to no avail. Thanks |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 7:35 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 7:37 am |
|
Only registered users can see links on this board! Get registered or login!
In case any of you want to try to help me to get this one to work. Here is listed the issue that I have with that one. Thanks again everyone! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 7:44 am |
|
You need to place that function in the LAST block that loads on your page that has the onLoad trigger. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 7:49 am |
|
For further help and clarification, do a Google search on javascript how to have multiple onload |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 8:00 am |
|
Yes, I did that fix. There are only two java blocks and the shoutbox is the last to load on the page. Still no luck. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 8:08 am |
|
Have you tried switching the load order? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 8:30 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 8:37 am |
|
Here is the code from the center page block. Perhaps I have overlooked something
Code:<center><scr ipt language="JavaScript1.2">
//Presentational Slideshow Script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for legal use
var slideshow_width='550px' //SET SLIDESHOW WIDTH (set to largest image's width if multiple dimensions exist)
var slideshow_height='366px' //SET SLIDESHOW HEIGHT (set to largest image's height if multiple dimensions exist)
var pause=6000 //SET PAUSE BETWEEN SLIDE (2000=2 seconds)
var slidebgcolor="#000051"
var dropimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
dropimages[0]="http://www.****.com/images/rookieslide.jpg"
dropimages[1]="http://www.****.com/images/cruiserslide.jpg"
dropimages[2]="http://www.*****.com/images/sportslide.jpg"
var droplinks=new Array()
//SET IMAGE URLs. Use "" if you wish particular image to NOT be linked:
droplinks[0]="http://www.***.com"
droplinks[1]="http://www.***.com"
droplinks[2]="http://www.****.com"
////NO need to edit beyond here/////////////
var preloadedimages=new Array()
for (p=0;p<dropimages.length;p++){
preloadedimages[p]=new Image()
preloadedimages[p].src=dropimages[p]
}
var ie4=document.all
var dom=document.getElementById
if (ie4||dom)
document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';background-color:'+slidebgcolor+';left:-'+slideshow_width+'"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';background-color:'+slidebgcolor+';left:-'+slideshow_width+'"></div></div>')
else
document.write('<a href="javascript:rotatelink()"><img name="defaultslide" src="'+dropimages[0]+'" border=0></a>')
var curpos=parseInt(slideshow_width)*(-1)
var degree=10
var curcanvas="canvas0"
var curimageindex=linkindex=0
var nextimageindex=1
function movepic(){
if (curpos<0){
curpos=Math.min(curpos+degree,0)
tempobj.style.left=curpos+"px"
}
else{
clearInterval(dropslide)
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
var slideimage='<img src="'+dropimages[curimageindex]+'" border=0>'
tempobj.innerHTML=(droplinks[curimageindex]!="")? '<a href="'+droplinks[curimageindex]+'">'+slideimage+'</a>' : slideimage
nextimageindex=(nextimageindex<dropimages.length-1)? nextimageindex+1 : 0
setTimeout("rotateimage()",pause)
}
}
function rotateimage(){
if (ie4||dom){
resetit(curcanvas)
var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
var temp='setInterval("movepic()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else
document.images.defaultslide.src=dropimages[curimageindex]
linkindex=curimageindex
curimageindex=(curimageindex<dropimages.length-1)? curimageindex+1 : 0
}
function rotatelink(){
if (droplinks[linkindex]!="")
window.location=droplinks[linkindex]
}
function resetit(what){
curpos=parseInt(slideshow_width)*(-1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.left=curpos+"px"
}
function startit(){
var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'"><img src="'+dropimages[curimageindex]+'" border=0></a>'
rotateimage()
}
if (ie4||dom)
//window.onload=startit
else
setInterval("rotateimage()",pause)
</scr ipt></center>
|
here is the code from the shoutbox.js file for the shoutbox
Code:function allonloads(){
SBpopulate();
startit();
}
// Insert Smiles to message box
function x(){
return;
}
function DoSmilie(addSmilie, messageDef){
var addSmilie, messageDef, revisedMessage;
var currentMessage = document.shoutform1.ShoutComment.value;
if(currentMessage==messageDef){currentMessage='';}
revisedMessage = currentMessage+addSmilie;
document.shoutform1.ShoutComment.value=revisedMessage;
document.shoutform1.ShoutComment.focus();
return;
}
//Drop-Down smilies
function MM_findObj(n, d){
var p,i,x;
if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length){
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
}
if(!(x=d[n])&&d.all){
x=d.all[n];
}
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) {
x=d.getElementById(n);
}
return x;
}
//end Drop-Down smilies
/*
Original Javascr ipt code by dynamic drive, modified by SuperCat http://www.ourscripts.net
Cross browser Marquee II- Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/
var SBspeed=1;
var SBiedom=document.all||document.getElementById;
var SBactualheight='';
var SBcross_marquee, SBns_marquee;
if(SBiedom){
SBtxt='<div style="position:relative;width:100%;height:'+SBheight+';overflow:hidden" onmouseover="SBspeed=0" onmouseout="SBspeed=1"><div id="SBiemarquee" style="position:absolute;left:0px;top:0px;width:100%;"></div></div>';
}else{
SBtxt='<ilayer width=100% height='+SBheight+' name="SBns_marquee"><layer name="SBns_marquee2" width=100% height='+SBheight+' left=0 top=0 onmouseover="SBspeed=0" onmouseout="SBspeed=1"></layer></ilayer>';
}
function SBscroll(){
if(SBiedom){
if(parseInt(SBcross_marquee.style.top)>(SBactualheight*(-1)+2)){
SBcross_marquee.style.top=parseInt(SBcross_marquee.style.top)-SBspeed+"px";
}else{
SBcross_marquee.style.top=parseInt(SBheight)+2+"px";
}
}
else{
if(SBns_marquee.top>(SBactualheight*(-1)+2)){
SBns_marquee.top-=SBspeed;
}else{
SBns_marquee.top=parseInt(SBheight)+2;
}
}
}
function changeBoxSize(showhide) {
document.getElementById('smilies_hide').style.display='none';
document.getElementById('smilies_show').style.display='none';
document.getElementById('smilies_'+showhide).style.display='block';
}
function SBpopulate(){
if(SBiedom){
SBcross_marquee=document.getElementById? document.getElementById("SBiemarquee") : document.all.SBiemarquee;
SBcross_marquee.style.top=parseInt(SBheight)+8+"px";
SBcross_marquee.innerHTML=SBcontent;
SBactualheight=SBcross_marquee.offsetHeight;
}else{
SBns_marquee=document.SBns_marquee.document.SBns_marquee2;
SBns_marquee.top=parseInt(SBheight)+8;
SBns_marquee.document.write(SBcontent);
SBns_marquee.document.close();
SBactualheight=SBns_marquee.document.height;
}
this.setInterval("SBscroll()",50);
}
window.onload=allonloads;
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jaded
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 5:47 pm |
|
Well, with some help this is now resolved. The issue was that the dynamic drive code was written apparently incorrectly. They should watch that I suppose.
In order to get this working I had to comment out this entire if statement in the center block code
Code://if (ie4||dom)
//window.onload=startit
//else
//setInterval("rotateimage()",pause)
|
once that was done, the blocks both work. Thank you to all that helped along with the ourscripts.net site mods. They knew how to work it out since this is their shoutbox.
![Wave](modules/Forums/images/smiles/mexicanwave.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 18, 2006 5:51 pm |
|
well done Jaded.. ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|