11
DarkDeath
Re: In need of some PHP Script help!!!!!!!
  • 2003/10/16 20:16

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


LOL.. my problem was i wrote "querry" when i needed to put "query" MAN... lol



12
DarkDeath
Re: Right Blocks with Cjay Content
  • 2003/10/14 13:23

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


Herko..THE MAN fixed my theme... so its showing my right blocks on ALL my pages.. but i still have a problem with Cjay.... the content areais too wide and its pusing my blocks out.... no other module is doing this.. so i was wanting to know how to change the width settgin for Chay's pages???



13
DarkDeath
Re: My Theme Code..... HELP
  • 2003/10/14 12:58

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


your the man!!



14
DarkDeath
My Theme Code..... HELP
  • 2003/10/14 7:32

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


For some reason with this theme i cant display right blocks EXCEPT on my main page... they show up on OTHER themes.. jsut not mine... here is my code.. lemme know if ya ned more info (Xoops v2.0.5)

<html>
<
body background="<{$xoops_imageurl}>images/site_bg.gif" text="" link="" vlink="" alink="" topmargin="0">
  
  
      <
table align="center" cellpadding="0" cellspacing="0" width="840" border="0">
      <
tr>
      <
td><a href="<{$xoops_url}>/index.php"><img src="<{$xoops_imageurl}>images/banner.gif" align="center" alt="in tHis Moment..." border="0"></a></td>
      <
td align="right"><{$xoops_banner}></td>
      </
tr>
      </
table>
 
 
 
      <
table cellpadding="0" cellspacing="0" width="838" border="0" align="center" valign="middle" bgcolor="">
      <
tr>
      <
td bgcolor=""><IMG src="<{$xoops_imageurl}>images/pixel.gif" width="1" height="1" alt="" border="0" hspace="0"></td>
      </
tr>
      </
table>

      <
table cellpadding="0" cellspacing="0" width="838" border="0" align="center" bgcolor="" background="<{$xoops_imageurl}>images/bar.gif" height="25">
      <
tr valign="middle">
      <
td><IMG src="<{$xoops_imageurl}>images/pixel.gif" width="24" height="25" border="0" hspace="0"></td>
      <
td><table border="0" cellspacing="0" cellpadding="0"><tr><td width="4" height="25"></td>
      <
td nowrap class="artsubhead" align="left">

<{if 
$xoops_isuser}>
      
Welcome <{$xoops_uname}>! | <a href="<{$xoops_url}>/user.php">Edit Profile</a> | <a href="<{$xoops_url}>/user.php?op=logout">Logout</a> |
<{else}>
      <
a href="<{$xoops_url}>/register.php">Create an account</a> | <a href="<{$xoops_url}>/user.php">Login</a> |
<{/if}>
    
    
      <
script type="text/javascript">
      <!--   
// Array ofmonth Names
      
var monthNames = new Array( "JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER");
      var 
now = new Date();
      
thisYear now.getYear();
      if(
thisYear 1900) {thisYear += 1900}; // corrections if Y2K display problem
      
document.writenow.getDate() + " " monthNames[now.getMonth()] + " " thisYear) ;
      
// -->
      
</script>

      </
td>
      <
td width="30" height="25">&nbsp;</td>
      <
td align="center" height="25" width="32%"><IMG src="<{$xoops_imageurl}>images/pixel.gif" width="24" height="25" border="0" hspace="0"></td><td valign=middle align=right height=0><A HREF="javascript:void(0)" ONCLICK="open('http://www.thisgeneration.com/modules/cjaycontent/content/invite2/invite.php','miniwin','toolbar=0, location=0,directories=0, status=0,menubar=0, scrollbars=0,resizable=0, width=600,height=420')"><img src=<{$xoops_imageurl}>images/smail.gifInvite A Friend</A></td>
      <
td width=5>&nbsp;</td>
      </
td>
      </
tr>
      </
table>
      </
tr>
      </
table>
      <
table background="<{$xoops_imageurl}>images/body_bg.gif" width="840" cellpadding="0" cellspacing="0" border="0" bgcolor="" align="center">
      <
tr>
      <
td>&nbsp;</td>
      </
tr>
      </
table>
      <!-- 
FIN DEL TITULO -->
      <
table background="<{$xoops_imageurl}>images/body_bg.gif" width="840" cellpadding="0" cellspacing="0" border="0" align="center">
      <
tr valign="top">
      <
td bgcolor="" width="180" valign="top">

<!-- 
Start left blocks loop -->
     <{foreach 
item=block from=$xoops_lblocks}>
     <{include 
file="BlueBump/theme_blockleft.html"}>
     <{/foreach}>
<!-- 
End left blocks loop -->
  
  
      </
td>
      <
td><img src="<{$xoops_imageurl}>images/pixel.gif" width="15" height="1" border="0" alt=""></td>
      <
td width="100%">
  

    
<!-- 
Display center blocks if any -->

<{if 
$xoops_showcblock == 1}>
      <
table border="0" cellspacing="5" cellpadding="0" width="100%" valign="top" bgcolor=#F3F5F7>
      
<tr class="bg2">
      <
td width="100%" colspan="2" valign="top" bgcolor=#F3F5F7>
       
       
<!-- Start center-center blocks loop -->
      <{foreach 
item=block from=$xoops_ccblocks}>
      <{include 
file="BlueBump/theme_blockcenter_c.html"}>
      <{/foreach}>
<!-- 
End center-center blocks loop -->
       
       
      </
td>
      </
tr>
      <
tr class="bg2">
      <
td width="50%" valign="top" bgcolor=#F3F5F7>
      
      
<!-- Start center-left blocks loop -->
      <{foreach 
item=block from=$xoops_clblocks}>
      <{include 
file="BlueBump/theme_blockcenter_l.html"}>
      <{/foreach}>
<!-- 
End center-left blocks loop -->
      
      
      </
td>
      <
td width="50%" valign="top" bgcolor=#F3F5F7>
      
      
<!-- Start center-right blocks loop -->
      <{foreach 
item=block from=$xoops_crblocks}>
      <{include 
file="BlueBump/theme_blockcenter_r.html"}>
      <{/foreach}>
<!-- 
End center-right blocks loop -->
      
      
      </
td>
      </
tr>


      <
tr>
      <
td width="100%" colspan="2" valign="top">
  
      <{else}>
      
      <
table border="0" cellspacing="5" cellpadding="0" cellspacing="0" width="100%" valign="top">
      <
tr>
      <
td width="100%" colspan="2" valign="top" >
      
      <{/if}>
      
      
<!-- 
End display center blocks -->



<!-- 
Start Content -->
      <
table width="100%" height="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#F3F5F7">
      <
tr>
      <
td>
      <
table width="100%" height="100%" border="0" cellspacing="1" cellpadding="8" bgcolor="#F3F5F7">
      <
tr>
      <
td bgcolor="#F3F5F7"><{$xoops_contents}></td>
      </
tr>
      </
table>
      </
td>
      </
tr>
      </
table>
<!-- 
End Content -->


       </
td>
      </
tr>
      </
table>







      <{if 
$xoops_showcblock == 1}>
  
      </
td><td><img src="<{$xoops_imageurl}>images/pixel.gif" width="15" height="1" border="0" alt=""></td>
      <
td valign="top" width="180">


<!-- 
Start right blocks loop -->
      <{foreach 
item=block from=$xoops_rblocks}>
      <{include 
file="BlueBump/theme_blockright.html"}>
      <{/foreach}>
<!-- 
End right blocks loop -->
  
  
      <{/if}>
    
      </
td>
      </
td>
      </
tr>
      </
table>
      
      <
table width="838" cellpadding="0" cellspacing="0" border="0" bgcolor="#9999cc" align="center">
      <
tr>
      <
td bgcolor="#DEDEE6"><IMG src="<{$xoops_imageurl}>images/pixel.gif" width="1" height="1" alt="" border="0" hspace="0"></td>
      </
tr>
      </
table>
      <
br>
      <
table width="838" cellpadding="0" cellspacing="0" border="0" align="center">
      <
tr align="center">
      <
td width="98%" colspan="3" class="artsubhead"><{$xoops_footer}><br /><br /></td>
      </
tr>
      </
table>
      
</
body>
</
html>



15
DarkDeath
Re: Right Blocks with Cjay Content
  • 2003/10/14 7:29

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


its something with my theme casue with other themes it works fine.....



16
DarkDeath
Re: Right Blocks with Cjay Content
  • 2003/10/14 7:06

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


ok...with PHP Debug on i get these errors...

on CjayContent PAges...
Notice [PHP]: Undefined indexxoops_rblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexxoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexxoops_module_header in file templates_c/BlueBump^theme.html line 35


ON my Main page..
Notice [PHP]: Undefined indexxoops_rblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexxoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexxoops_crblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexxoops_clblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexstories in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexxoops_module_header in file templates_c/BlueBump^theme.html line 35
Notice 
[PHP]: Undefined indexxoops_ccblocks in file templates_c/BlueBump^theme.html line 150



17
DarkDeath
Re: Right Blocks with Cjay Content
  • 2003/10/14 2:40

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


im running XOOPS v2.0.5 and C-jay Content v2.5 and no right blocks. They show up on my Main Page.. my startup page.. but not on ANY other page.... i mean not even any system pages like Contact Us or the Forums or anything. ANY ideas?!?!?!?!



18
DarkDeath
Re: In need of some PHP Script help!!!!!!!
  • 2003/10/13 1:58

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


well i cant do that casue im running thisstuff on a DIFF databse then i run XOOPS from.



19
DarkDeath
Re: In need of some PHP Script help!!!!!!!
  • 2003/10/12 13:34

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


A REPLY!!!! Wow.. ive only posted question on fex like 50 times and gotten nothin... this is exciting lol. LAst time i had a problem Herko was kewl enough to talk to me on MSN to fix my problems.

ANYWAY i got the script stuff i needed and made it work with alot of outside help. Essentially my code displays the database how i want it and all taht stuff... but im having trouble with the form to write TOO the database.

I am running two files...
here is the html file i run to display my form...
<FORM action="http://thisgeneration.com/modules/cjaycontent/content/encounters_form.php" method="POST">

<
table>
<
tr><td align="right">Script Title: </td><td><input type="text" name="script_title"></td></tr>
<
tr><td align="right">Script: </td><td><input type="text" name="script"></td></tr>
<
tr><td align="right">Content Title: </td><td><input type="text" name="content_title"></td></tr>
<
tr><td align="right" valign="top">Content: </td><td><textarea name="content" rows="10" cols="50"></textarea></td></tr>
</
table>

<
input type="submit" name="submit" value="submit"> <input type="reset" value="reset">
</
FORM>


and here is that php file that should make my form write to the database...
<?php
$dbname 
"thisgene_sitearticles";            // Place the database name here
$tablename "encounters";                // Table name here

$dbconnect mysql_connect ("localhost""thisgene_porter""password") or die(mysql_error());

$db = @mysql_select_db($dbname$dbconnect);

$sql "INSERT INTO $tablename (script_title, script, content_title, content) VALUES ('$_POST[script_title]', '$_POST[script]', '$_POST[content_title]', '$_POST[content]')";

$result = @mysql_querry($sql$dbconnect) or die(mysql_error());

?>


Any ideas WHY its not working.. i mean when i subit my form i get a blank white page... like it worked.. but it doesnt write it to my database.



20
DarkDeath
Re: Right Blocks with Cjay Content
  • 2003/10/12 13:27

  • DarkDeath

  • Just popping in

  • Posts: 29

  • Since: 2002/8/17


can someone help? Man im getting discouraged with XOOPS and its community. SOeone please reply even if its to say "i dont know" lol.




TopTop
« 1 (2) 3 »



Login

Who's Online

165 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits