Jump to content

n00dles101

Members
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

n00dles101's Achievements

Jr. Member

Jr. Member (3/6)

0

Reputation

  1. found out about it in january on WebResourcesDepot. http://www.webresourcesdepot.com/?s=processwire&submit.x=0&submit.y=0&submit=Search Checked it out and loved it....
  2. well spotted , the menu is so dark on my crappy monitor I never even noticed... what was I thinking black on black . Should be sorted now. Tks.
  3. http://www.arenalynx.com Small site for an event management company... Theme is from themeforest and converting for PW was a breeze....
  4. Great , looking forward to this also. mike..
  5. wow.. that was quick.. knew it was going to be something simple... and you seem to have covered every base here... Thanks for your help.. Mike.
  6. Hi, Quick one I hope. having a hard time understanding how Images work. How do I return the first image in the images array ? rgds, Mike.
  7. Thanks Ryan, I'm building a sliding banner for a site. o - created a new template called slideshow o - Each page of the slideshow has a heading, text, image and link. o - link is a referenced page to one of the blog entries. Just allows me to easily change the banners by quickly editing the slideshow pages rather than adding those fields to the normal pages. I thought I tried $slide->slideshow_ref->url as it seemed the most obvious one to try, but yeah it works as expected, busy today so probably wasn't thinking straight... thanks again... Mike
  8. Hi, How do I use the reference page fieldtype. I'm trying to build a list of links to a some blog entires and referencing the pages which is giving me the ID of the page To get the URL of the page I was using $results = $pages->find("template=slideshow"); foreach($results as $slide) { $url=$slide->slideshow_ref; echo "<li><div class='newsflash_container'><img src='{$slide->headerimage->url}' alt='' /><div class='newsflash'><h1>{$slide->headline}</h1>{$slide->smalldescription}<p><a href='{$url}' class='button'>More...</a></p></div></div></li>"; } $url just gives me the ID of the page. I also tried $url=$pages->get($slide->slideshow_ref)->url; But thats just coming back blank. Edit: If I manually add the returned ID as in: $url=$pages->get(5768)->url; All works as expected. Edit Again !! Ok, have it sorted, need to use the following syntax for it to work correctly. $url=$pages->get("id={$slide->slideshow_ref}")->url; Whats the best way to achieve this? Rgds, Mike .
  9. Are are there plans in the roadmap to allow the user DB fields to be extended just like templates. I need to add say email/contact info to any users I've created. I can get round it at the moment, by creating fields for the information and creating pages for each of the users. Just converted my brothers photography site over... www.tonyswanphotography.com (same template as your James Andrew Photo one , great minds !! ) Was running on Getsimple CMS but the Image upload/User Admin is a lot easier to do in PW. Thanks for the help.. keep up the good work... Mike...
  10. Hi Guys, Quick one, TinyMCE editor is not initializing when you edit the home page, works on all others using the same template "page" We have tried numerous different installs and all the same... Firebug giving the following error: $nameField.val() is undefined in wire/modules/Inputfield/InputfieldPageTitle/InputfieldPageTitle.js Line 4 Mike.
  11. I was just editing to say I'd hacked it to get it working.. thanks.. Heres my $_SERVER contents: [PATH] => /sbin:/usr/sbin:/bin:/usr/bin [sERVER_ADMIN] => support@register365.com [VSERVER_NAME] => Hosting [sERVER_PORT] => 80 [AUTH_TYPE] => Basic [sERVER_PROTOCOL] => HTTP/1.1 [GATEWAY_INTERFACE] => CGI/1.1 [sERVER_SOFTWARE] => Zeus/4.3 [sCRIPT_FILENAME] => /content/Hosting/l/a/lab.digimute.com/web/test.php [REQUEST_METHOD] => GET [REQUEST_URI] => /test.php [QUERY_STRING] => [sCRIPT_NAME] => /test.php [REMOTE_HOST] => 192.165.126.74 [REMOTE_ADDR] => 192.165.126.74 [REMOTE_USER] => [CONTENT_LENGTH] => 0 [DOCUMENT_ROOT] => /content/Hosting/l/a/lab.digimute.com/web [sERVER_NAME] => lab.digimute.com [REDIRECT_URL] => /test.php [REDIRECT_STATUS] => 200 [REDIRECT_PATH] => /content/Hosting/l/a/lab.digimute.com/web/test.php [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8 [HTTP_COOKIE] =>__utma=191603903.1810433341.1284657176.1295275992.1295476766.50; X-Mapping-enlokcai=778709DDDA960FBE6B9A70D95DACA463; wire=59eda345a66f5af2ebbc193d855561c9; wire_challenge=5b30e1db7ff942af8b7ac43a106d5634 [HTTP_HOST] => lab.digimute.com [HTTP_ACCEPT_ENCODING] => gzip,deflate,sdch [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10 [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.3 [HTTP_ACCEPT] => application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 [HTTP_CONNECTION] => keep-alive [HTTP_CACHE_CONTROL] => max-age=0 [ORIG_SCRIPT_FILENAME] => /usr/local/php5/bin/php-cgi [ORIG_PATH_INFO] => /test.php [ORIG_PATH_TRANSLATED] => /content/Hosting/l/a/lab.digimute.com/web/test.php [ORIG_SCRIPT_NAME] => /php5-cgi/php-cgi [php_SELF] => /test.php [REQUEST_TIME] => 1295628848 [argv] => Array ( ) [argc] => 0 Again probably something to do with the Zues server... Thanks for the help on this... Mike.
  12. Hi, Having another issues trying to move a site up on to my live Host. Seems "RootURL" is not being set correctly. Site is working fine on localhost. I'm using the the following code, taken from index.php to check what settings are being retrieved. $rootPath = dirname(__FILE__); if(DIRECTORY_SEPARATOR != '/') $rootPath = str_replace(DIRECTORY_SEPARATOR, '/', $rootPath); $rootURL = isset($_SERVER['HTTP_HOST']) ? substr($rootPath, strlen(rtrim($_SERVER['DOCUMENT_ROOT'], '/'))) . '/' : '/'; I've just added some debug code to it and uploaded it to my test server. The new code is <?php $rootPath = dirname(__FILE__); echo "RootPath:".$rootPath."</br>"; if(DIRECTORY_SEPARATOR != '/') $rootPath = str_replace(DIRECTORY_SEPARATOR, '/', $rootPath); echo "NewRootPath:".$rootPath."</br>"; echo "HTTP_HOST:".$_SERVER['HTTP_HOST']."<br/>"; echo "DOCUMENT_ROOT:".$_SERVER['DOCUMENT_ROOT']."<br/>"; $rootURL = isset($_SERVER['HTTP_HOST']) ? substr($rootPath, strlen(rtrim($_SERVER['DOCUMENT_ROOT'], '/'))) . '/' : '/'; echo "RootURL:".$rootURL; ?> on my localhost the output is : RootPath:C:\xampp\htdocs\www.tsp.com NewRootPath:C:/xampp/htdocs/www.tsp.com HTTP_HOST:localhost DOCUMENT_ROOT:C:/xampp/htdocs RootURL:/www.tsp.com/ While on my live server I'm getting the follwoing: RootPath:/content/Hosting/d/i/digimute.com/subdomains/lab/web NewRootPath:/content/Hosting/d/i/digimute.com/subdomains/lab/web HTTP_HOST:lab.digimute.com DOCUMENT_ROOT:/content/Hosting/l/a/lab.digimute.com/web RootURL:ins/lab/web/ Check out the RootURL ?? Where is it getting this from ?? Anyone any clues? Thanks for the help. Mike.
  13. Ok, have a basic one up and running which will allow the site to function correctly. Just copy the code below into a file on your root directory called "rewrite.script" It does not include the security stuff at the start of the .htaccess file. I'll repost it when I work it out. but for now this should allow you to run PW on a Zeus Server. RULE_0_START: # get the document root map path into SCRATCH:DOCROOT from / # initialize our variables set SCRATCH:ORIG_URL = %{URL} set SCRATCH:REQUEST_URI = %{URL} # see if theres any queries in our URL match URL into $ with ^(.*)\?(.*)$ if matched then set SCRATCH:REQUEST_URI = $1 set SCRATCH:QUERY_STRING = $2 endif RULE_0_END: RULE_1_START: # prepare to search for file, rewrite if its not found set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT} set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI} # check to see if the file requested is an actual file or # a directory with possibly an index. don't rewrite if so look for file at %{SCRATCH:REQUEST_FILENAME} if not exists then look for dir at %{SCRATCH:REQUEST_FILENAME} if not exists then set URL = /index.php?it=%{SCRATCH:REQUEST_URI} goto QSA_RULE_START endif endif # if we made it here then its a file or dir and no rewrite goto END RULE_1_END: QSA_RULE_START: # append the query string if there was one originally # the same as [QSA,L] for apache match SCRATCH:ORIG_URL into % with \?(.*)$ if matched then set URL = %{URL}&%{SCRATCH:QUERY_STRING} endif goto END QSA_RULE_END:
  14. Hi, Great CMS, really loving it.... Only problem, tried to install on my live host and discovered its running Zeus instead of Apache. So after spending a night converting a site I find I can't put it up live. Anyone successfully converted the .htaccess file for Processwire to Zeus Script ?? Any help greatly appreciated... Mike
×
×
  • Create New...