71
pipwax
Re: Upgrading Xoops
  • 2006/4/26 12:26

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


Well I am using 2.0.7 right now. If I install a another application it will be version 2.2.3 Final. what are the benefits of an upgrade?
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



72
pipwax
Upgrading Xoops
  • 2006/4/25 20:55

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


I am using XOOPS 2.0 and I am thinking about upgrading to the next stable version. Can anyone tell me the benefits of upgarding and how to go about this process with out losing to much uptime on the site. Mind you that the install will be through the hosting company.
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



73
pipwax
Re: External Database Driven Pages
  • 2006/4/22 2:02

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


That Did the trick Thanks
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



74
pipwax
Re: External Database Driven Pages
  • 2006/4/21 15:04

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


Ok guys and gals I have a code that works, and now I am looking for constructive comments.

++++++++++++++++here's the code++++++++++++++++++++++++++++

include("mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>

$maxRows_allevents = 5;
$pageNum_allevents = 0;
if (isset($_GET['pageNum_allevents'])) {
$pageNum_allevents = $_GET['pageNum_allevents'];
}
$startRow_allevents = $pageNum_allevents * $maxRows_allevents;

mysql_select_db($database_SkateEvents, $SkateEvents);
$query_allevents = "SELECT * FROM events ORDER BY `Date` ASC";
$query_limit_allevents = sprintf("%s LIMIT %d, %d", $query_allevents, $startRow_allevents, $maxRows_allevents);
$allevents = mysql_query($query_limit_allevents, $SkateEvents) or die(mysql_error());
$row_allevents = mysql_fetch_assoc($allevents);

if (isset($_GET['totalRows_allevents'])) {
$totalRows_allevents = $_GET['totalRows_allevents'];
} else {
$all_allevents = mysql_query($query_allevents);
$totalRows_allevents = mysql_num_rows($all_allevents);
}
$totalPages_allevents = ceil($totalRows_allevents/$maxRows_allevents)-1;
?>




Events Page




















Date
Events
Host
More info
Host id
Click Here



mysql_free_result($allevents);
include(XOOPS_ROOT_PATH."/footer.php");

?>
+++++++++++++++++++++end code++++++++++++++++++++++++++++++

I had to load the page up in the directory xoops/html/show_records.php I will have to tweak the page and refer to the css file with in the theme but how will I like the page to the navigation to make it look all the same. I also need to fix the link so that each link will point to a flyer.

View results here

Thanks guys.
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



75
pipwax
Re: External Database Driven Pages
  • 2006/4/21 14:27

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


I am not sure what that means. However, This simple page works so why can't i just use the include statement?


$maxRows_allevents = 5;
$pageNum_allevents = 0;
if (isset($_GET['pageNum_allevents'])) {
$pageNum_allevents = $_GET['pageNum_allevents'];
}
$startRow_allevents = $pageNum_allevents * $maxRows_allevents;

mysql_select_db($database_SkateEvents, $SkateEvents);
$query_allevents = "SELECT * FROM events ORDER BY `Date` ASC";
$query_limit_allevents = sprintf("%s LIMIT %d, %d", $query_allevents, $startRow_allevents, $maxRows_allevents);
$allevents = mysql_query($query_limit_allevents, $SkateEvents) or die(mysql_error());
$row_allevents = mysql_fetch_assoc($allevents);

if (isset($_GET['totalRows_allevents'])) {
$totalRows_allevents = $_GET['totalRows_allevents'];
} else {
$all_allevents = mysql_query($query_allevents);
$totalRows_allevents = mysql_num_rows($all_allevents);
}
$totalPages_allevents = ceil($totalRows_allevents/$maxRows_allevents)-1;
?>



Untitled Document





pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



76
pipwax
Re: How to make batch uploading to Image manager?
  • 2006/4/21 10:21

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


How about using an ftp program
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



77
pipwax
Re: External Database Driven Pages
  • 2006/4/21 1:01

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


I get a blank page wraped in Xoops.
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



78
pipwax
Re: External Database Driven Pages
  • 2006/4/21 0:21

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


Quote:

peterr wrote:
Short answer, ..yes.

See Can I include my own HTML pages in xoops? , which is for a html page, your php page is much the same ......

include("path/to/mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");

// All the content of your current php file goes here

include(XOOPS_ROOT_PATH."/footer.php");
?>


(I _think_ ??)


I tryied that but however, I guess I forgot to tell you that I made my database page using Dreamweaver and as you see it works fins as a standalone but i can't get XOOPS to wrap around this database page.

=========================My code=========================


$maxRows_allevents = 5;
$pageNum_allevents = 0;
if (isset($_GET['pageNum_allevents'])) {
$pageNum_allevents = $_GET['pageNum_allevents'];
}
$startRow_allevents = $pageNum_allevents * $maxRows_allevents;

mysql_select_db($database_SkateEvents, $SkateEvents);
$query_allevents = "SELECT * FROM events ORDER BY `Date` ASC";
$query_limit_allevents = sprintf("%s LIMIT %d, %d", $query_allevents, $startRow_allevents, $maxRows_allevents);
$allevents = mysql_query($query_limit_allevents, $SkateEvents) or die(mysql_error());
$row_allevents = mysql_fetch_assoc($allevents);

if (isset($_GET['totalRows_allevents'])) {
$totalRows_allevents = $_GET['totalRows_allevents'];
} else {
$all_allevents = mysql_query($query_allevents);
$totalRows_allevents = mysql_num_rows($all_allevents);
}
$totalPages_allevents = ceil($totalRows_allevents/$maxRows_allevents)-1;
?>




Events Page




















Date
Events
Host
More info
Host id
Click Here



mysql_free_result($allevents);
?>
=========================end code======================
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



79
pipwax
External Database Driven Pages
  • 2006/4/19 23:45

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


I am trying to create a method to display my events on http://www.sk8photos.com > events. I have created a database page http://www.sk8photos.com/show_records.php can I copy the code and paste it into a block to get it to work?
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional



80
pipwax
Re: creating database page using php
  • 2006/4/17 14:59

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


That sounds like a good idea to just call the script, but tell me more about blending db's
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 13 »



Login

Who's Online

138 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

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

Latest GitHub Commits