Jump to content

deanavail

Members
  • Posts

    94
  • Joined

  • Last visited

Posts posted by deanavail

  1. With Google Apps for Domains (GAFD), Gmail ample storage, and IMAP remote access capability, deploying concurrent access of shared mailboxes for domains is available now. It is essentially same as you would have with a corporate Exchange email server.

     

    It is having say three shared domain mailboxes hosted at TCH with domain example.com. team members can have concurrent access to these three shared mailboxes say across multiple outlook client connections, webmail, and blackberry mobile wireless conections. team members can sync folders and see which conversations have already been answered and which still need replying to.

     

    I am interested to hear about your experience deploying such a solution, specifically:

     

    1)With IMAP, Can your team see which emails have been replied to by other team members?

     

    2)With IMAP, does the blackberry wireless offer near instant access of your domain shared mailboxes?

     

    3)Can you reply on those blackberrys and see near instant update on your IMAP access shared domain mailboxes.

     

    4)Email headers in gmail only show the gmail server. Email headers of TCH hosted mailboxes show origin ip. Is there a way to prevent Email headers from showing origin IP and simply show the email server location in the from: in the email header?

  2. :) Back from the crypt,

     

    I asked this question on another thread but got no replies, so maybe a new thread on this topic may stir more dialogue.

     

    How can backup cron job, referenced in above link, delete all but most recent backup to eliminate need to manually delete older backups to save webserver disk space? The cron job referenced creates a backup named as below on a daily basis and locates the backup at webserver root:

     

    backup-12.30.2006_03-30-03_cpanelid.tar.gz ; over time disk space is filled up and older backups have to be deleted manually.

  3. Howdy

     

    How can cron job delete all but most recent backup to eliminate need to manually delete older backups to save webserver disk space?

     

    The cron job referenced in this topic creates a backup named as below on a daily basis and locates the backup at webserver root:

    backup-12.30.2006_03-30-03_cpanelid.tar.gz ; over time disk space is filled up and older backups have to be deleted manually.

  4. After forum requests and an onslaught of repeated help tickets for the same nuisance Joomla site file permission issue, I wish to congratulate Tim and Carl from TCH helpdesk for taking responsibilty to resolve this problem efficiently by creating a cron job which will run and reassign site owners and permission on Joomla site files.

     

    Thanks to the TCH helpdesk for demonstrating customer focus.

  5. http://www.joomlaya.com/content/view/188/83/

    this article is informative on the topic of Joomla file permissions

    It appears that Mamboxplorer or Joomlaxplorer has not solved these file permission problems for some of the posters on the above link. The last poster said:

    :) I have finally got a satisfactory workaround to the is problem of ownership going to nobody. My web host has set up a cron job to run chown for me every hour. This changes ownership of any files in my website from nobody to my user name.

    My hosting company cannot understand why the recent versions of Mambo and also Joomla cause/allow this problem to happen.

    I would think that TCH is being flooded with help tickets to change file permissions. Any thoughts from TCH on a solution to this nagging problem? Is a cron job a solution ?
  6. ok Tim, used fantastico and specified a folder below root as such /domain.com/gallery.

    fantastico emailed successful install to /doamin.com/gallery

    logged into this new gallery site admin, added an album, uploaded pics to this new album.

    Now when you browse to /domain.com/gallery, you get gallery base theme with an icon representing this new album, press this icon, you get icons representing thumbnails of these pics but no image thumbnails.

    if you have an idea, how to display thumnail matrix instead of icons representing thumbnails, plz advise, I can also pm link to this galley

  7. yes sir, I used fantastico to install Joomla and it is already running ok. I renamed both the stock site .htaccess and the Joomla stock .htaccess files because both files are located at the root. Fantastico installs menalto Gallery 2.0.2 but when I submit request to install , it gives error -->

     

    Install Gallery (2/3)

    The installation can not be completed:

    - You cannot install more than one script in the root directory of a domain.

    Click on the browser's Back button to fix reported errors.

     

    :ph34r:

  8. R u using Joomla? I am testing Joomla on a new site and I have run into a snag, thought you can direct me if you came across this.

     

    Using Fantastico I installed Joomla and it is running ok, then tried to use fantastico again to install menalto gallery 2 in root folder. Fanstaico gave me error:

    Install Gallery (2/3)

    The installation can not be completed:

    - You cannot install more than one script in the root directory of a domain.

    Click on the browser's Back button to fix reported errors.

     

    Have u come across this? did you have to install in folder below root? or do I have another issue here to troubleshoot?

  9. airjnkie2000,

     

    not sure if you tried out the modified script i provided you but note that you would know that your $result is empty by printing out its contents to verify it. It is a good idea to add this block of code whenever you are troubleshooting calls to mysql.

    >//  test what is in $row
    //
    print "<table=border=1>\n";
    while($row=mysql_fetch_array($result)) {
     print "<tr>\n";
     foreach ($row as $field=>$val )
     print "<td>$field</td><td>$val</td>";
     print "</tr>\n";
    }
    Print "</table><br>\n";
  10. you can do two ways:

     

    1. issue include statement defining include directory each time:

    <?php include $_SERVER['DOCUMENT_ROOT']."/phpincludes/event_cpa_navigation.php" ; ?>

     

    2. what happens if you decide to change servers, portability is an issue, you will have to go to wherever your include statement are at and change each one. If you have a bunch of pages you will be busy a while. Better method is to set a an includes path so if you change servers you just reset the include path once. you would need to:

    1. add .inc to the file name just so you know it is an include file (this is optional)
    2. place all your .inc include files in a library directory,
    3. set the path to this library directory as below:
      include_path .:/home/user/cpanelid/htdocs/cpadventures/lib/
    4. and then call the specific include file as below:
      <?php include("event_cpa_navigation.inc.php") ; ?>

  11. how about frst listing everything in $row then reformat the output in a print statement as indicated below:

    ><?php
    $result = mysql_query("SELECT media_id, thumbnail, file, path FROM media_info WHERE media_id = RAND() LIMIT 3") or die(mysql_error());
    
    //  test what is in $row 
    //
    print "<table=border=1>\n";
    while($row=mysql_fetch_array($result)) {
     print "<tr>\n";
     foreach ($row as $field=>$val )
     print "<td>$field</td><td>$val</td>";
     print "</tr>\n";
    }
    Print "</table><br>\n";
    
    // reformat results in a print statement
    //
    while($row=mysql_fetch_array($result)) {
    print "<a href=\".$row['path']."?media_id=".$row['media_id']."><img src=\".$row['thumbnail'].">alt=\"\" width=\"100\" height=\"80\"></a><br>
    }
    ?>
  12. carbonize, you are absolutely right, never never assume.

    wampthing, it should work fine,

    1. can you recheck that you copied script verbatim and save it as crumb.php in your www.sitedomain.com/includes/crumb.php
    2. edit a new page and place <?php include $_SERVER['DOCUMENT_ROOT']."/includes/crumb.php"; ?> at the top
    3. add <? echo "testing 123" ;?> right below it
    4. save page as test.php right below root and upload
    5. browse this test page www.sitedomain.com/test.php and what do u see?

    although I have not tested php code in .shtml, you have to tell php to parse within .shtml files. This is likely done in your php.ini file, check with TCH support. good luck

  13. So we have dialogue, Thank you all for stopping by. I was beginning to think that script talk was dead at TCH

    Shouldn't $dPath = $PHP_SELF; be $dPath = $_SERVER['PHP_SELF']; ??
    carbonize,

    $PHP_SELF = $_SERVER['DOCUMENT_ROOT'] if register_globals is set to on, u can check your setting at www.yoursite.com:2082/phpinfo.php

     

    weissi,

    I like how cpmpact your code is, 12 lines versus 22 lines in my improved FBD script, shown below. Both scripts are identical in how they strip out "/" from URI Path and the file extensions ".php" etc. using two explode() functions. The FBD script however offers the following advantages for those additional 10 lines of code, namely:

    1. The ability to turn the current file into a link and not just the heirechal structure in the breadcrumb.
    2. The ability to hide certain filenames within folders from the breacrumb by defining those in $def variable.
    3. The ability to turn underscores in file names to spaces in the breadcrumb.
    4. The ability to use CSS to style both links and link separator in the breadcrumb using class .dynNav
    ><?
    /* PHP dynamic link bar script FranÁois/Brett/Deano, AKA FBD, script
    set root with $def variable
    set Home link with $rootlink variable
    set separator with $separator variable
    set link style with CSS class a.dynNav
    set separator style with CSS class .dynNav 
    */
    $rootlink = "Home";						   // define root link
    $separator = ">>";							// define separator
    $def = "index";							   //default web page for directories on your server.
    $dPath = $PHP_SELF;						   //Get the script path, relative to web root.
    $dChunks = explode("/", $dPath);   		   //Separate out folder and file names by looking for slashes.
    $dChunkcount = count($dChunks);
    ?>
    <a class="dynNav" href="/"><? print $rootlink ?></a> <span class="dynNav"><? print $separator ?> </span>  <!-- make a leading $rootlink -->
    <?
    for($i=1; $i<$dChunkcount; $i++) { 			   //PHP arrays are 0 inxeded skipping the first element because of how explode() works
    echo("<a class=\"dynNav\" href=\"/");		 //Make each chunk a link.
    	for($j=1; $j<=$i; $j++) { 				//Subloop to create the path for each chunk.
    	  echo($dChunks[$j]); 					//Write each piece of the chunk's path.
    	  if($j!=$dChunkcount-1) print "/";	   //If that piece was a folder name, append a slash.
    	} 
    if($i==$dChunkcount-1) {					  //If the chunk is a file, not folder name...
    $prChunks = explode(".", $dChunks[$i]);	   //take out the file extension...	
    if ($prChunks[0] == $def) $prChunks[0] = "";  //don't display the filename if it's index or whatever default you specified.
    $prChunks[0] = $prChunks[0] . "</a>"; 	   //add the closing tag.
    } else 
    $prChunks[0]=$dChunks[$i] ."</a><span class=\"dynNav\"> ". $separator." </span>"; //Otherwise, just use the chunk name, close tag and add a paddeslash for display.
    echo "\">";
    echo(str_replace("_" , " " , $prChunks[0])); //Finish writing the link, replacing underscores with spaces for the end user
    }
    ?>

     

    wampthing,

    you absolutely can place your breadcrumb script in an includes folder , say /home/includes/crumb.php and call it up on any page by simply adding the following command:

    ><?php include $_SERVER['DOCUMENT_ROOT']."/includes/crumb.php"; ?>
  14. I would like to hear about best practices in adding breadcrumb feature to a LAMP site. Maybe we can refine choices to the best out there. Here is a pure PHP script I am using to add breadcrumb navigation. I call this php script with an include on any page which needs to show breadcrumb as such: <p><? include('/breadcrumbgen.php'); ?>

    // breadcrumbden.php

    <?

    /* PHP dynamic link bar script by FranÁois Richardson. Free for use and abuse.

    Makes a series of links to the web root (printed as "Home"), each folder

    in the file path, and the filename. Underscores in the file names and folder names are

    shown as spaces to the visitor, and the file name is displayed without the extension.

    You can set the default web page name not to be displayed by assigning a value to the

    $def variable. I set this to "index" by default.

     

    Making it pretty with CSS: Each link has a class="dynNav" attribute,

    in case you need to apply special formatting with CSS. If you create a .dynNav

    class, the formatting will override that of any A{....} tag redefinition you do.

    The padded slash following each link also has the dynNav class applied to it,

    with <span> tags. If you need to apply different formatting to the links

    and the slashes, create your style for the slashes as .dynNav, then override it

    for the links with an a.dynNav selector.

    */

     

    $def = "index"; //default web page for directories on your server.

    $dPath = $PHP_SELF; //Get the script path, relative to web root.

    $dChunks = explode("/", $dPath); //Separate out folder and file names by looking for slashes.

    ?>

    <a class="dynNav" href="/">Home</a><span class="dynNav"> >> </span> <!-- make a leading "home" link -->

    <?

     

    for($i=1; $i<count($dChunks); $i++){ //PHP arrays are 0 inxeded but we are skipping the first element because of the way explode() works.

    echo("<a class=\"dynNav\" href=\"/"); //Make each chunk a link.

    for($j=1; $j<=$i; $j++){ //Subloop to create the path for each chunk.

    echo($dChunks[$j]); //Write each piece of the chunk's path.

    if($j!=count($dChunks)-1) echo("/");//If that piece was a folder name, append a slash.

    }

    if($i==count($dChunks)-1) { //If the chunk is a file, not folder name...

    $prChunks = explode(".", $dChunks[$i]); //take out the file extension...

    if ($prChunks[0] == $def) $prChunks[0] = ""; //don't display the filename if it's index or whatever default you specified.

    $prChunks[0] = $prChunks[0] . "</a>"; //add the closing tag.

    } else

    $prChunks[0]=$dChunks[$i] . "</a><span class=\"dynNav\"> / </span>"; //Otherwise, just use the chunk name, close the a tag and add a paddeslash for display.

    echo('\"\>');

    echo(str_replace("_" , " " , $prChunks[0])); //Finish writing the link, replacing underscores with spaces for the end user.

    }

    ?>

  15. Could someone comment on best practices for adding breadcrumb to a LAMP site, specifically:

     

    is it better to do it with a function or a class?

    with TCH now running PHP 4.4.1, is javascript even necessary to add breadcrumbs to a site?

    Is it necessary to write directory tree (folders and file structure) to a mysql table to improve depth and functionality?

     

    Zend has 2 breadcrumb navigation scripts listed below:

    newer: 0 A Cool Recursive Links Script- path.php http://www.zend.com/codex.php?id=362&single=1 is a 4 star

    older: Breadcrumbs navigation http://www.zend.com/codex.php?id=414&single=1 is a 0 star

     

    Any comments on these or suggestions to any best practices breadcrumb script?

×
×
  • Create New...