Author Topic: The solution for Short (SEO Friendly) URL's  (Read 110638 times)

Offline dana

  • Posts: 53
    • Webdesign by Dana
Re: The solution for Short (SEO Friendly) URL's
« Reply #100 on: March 01, 2013, 04:03:29 PM »
I've found that when I'm using the ShortURL ([[ShortURL]] in my template) and want to register, after successful registration I get a blank page. The registration details are sent, the user is in the database. Can it be fixed please? I'd like short URLs of the pages (don't care much about the account folders, etc.) but I also need user registration and blank page is kinda unacceptable. :)

Thank you!

Offline Ruud

  • Posts: 3669
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: The solution for Short (SEO Friendly) URL's
« Reply #101 on: March 01, 2013, 04:25:12 PM »
A blank page is usually pointing to some other error.

I just tested with the current shorturl version 2.3 and it is working fine for me.

Try switching on the error_reporting and see if any error is shown.

Offline dana

  • Posts: 53
    • Webdesign by Dana
Re: The solution for Short (SEO Friendly) URL's
« Reply #102 on: March 01, 2013, 04:28:31 PM »
Ok, I will try that. Just wanted to say that I'm using a fresh install, newest ShortURL and when I deleted the [[ShortURL]] from my template, all went smoothly with no blank page.  :|

Offline dana

  • Posts: 53
    • Webdesign by Dana
Re: The solution for Short (SEO Friendly) URL's
« Reply #103 on: March 01, 2013, 04:35:12 PM »
Okay, switched to report all errors and got this:

Fatal error: Call to undefined method wb::preprocess() in /home/www/studynet.cz/modules/droplets/droplets.php(37) : eval()'d code on line 3

Offline BlackBird

  • Posts: 2573
Re: The solution for Short (SEO Friendly) URL's
« Reply #104 on: March 01, 2013, 04:40:59 PM »
@Dana: The link in your signature is broken. Missing :

Offline dana

  • Posts: 53
    • Webdesign by Dana
Re: The solution for Short (SEO Friendly) URL's
« Reply #105 on: March 01, 2013, 04:42:53 PM »
Thanks, though this is not the site that's giving me problems.

Offline Ruud

  • Posts: 3669
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: The solution for Short (SEO Friendly) URL's
« Reply #106 on: March 01, 2013, 04:57:22 PM »
In the droplet it shows on line 3:
Code: [Select]
$wb->preprocess($wb_page_data); //process internal links first (WB283 problem)
change that into:
Code: [Select]
if(is_object($wb)) $wb->preprocess($wb_page_data); //process internal links first (WB283 problem)

Offline dana

  • Posts: 53
    • Webdesign by Dana
Re: The solution for Short (SEO Friendly) URL's
« Reply #107 on: March 01, 2013, 05:02:21 PM »
Hmm, that doesn't seem to be working.  :| It says the same thing.

Offline Ruud

  • Posts: 3669
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: The solution for Short (SEO Friendly) URL's
« Reply #108 on: March 01, 2013, 05:09:16 PM »
Another option:
Code: [Select]
if(method_exists($wb,'preprocess')) $wb->preprocess($wb_page_data); //process internal links first (WB283 problem)

Offline dana

  • Posts: 53
    • Webdesign by Dana
Re: The solution for Short (SEO Friendly) URL's
« Reply #109 on: March 02, 2013, 01:45:04 PM »
That seems to have done the trick. :) Thank you so much!

Offline N1kko

  • Posts: 137
  • Gender: Male
Re: The solution for Short (SEO Friendly) URL's
« Reply #110 on: June 15, 2013, 07:23:25 PM »
Is there any plans to add support for other modules such as bakery?
My Tools: MacBook Pro Retina, Coda2, Sketch 3... Couldn't live without them

Offline Ruud

  • Posts: 3669
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: The solution for Short (SEO Friendly) URL's
« Reply #111 on: June 15, 2013, 10:29:35 PM »
Yes,

I am currently testing with V3.
It will also work with bakery and topics pages,

Offline N1kko

  • Posts: 137
  • Gender: Male
Re: The solution for Short (SEO Friendly) URL's
« Reply #112 on: June 15, 2013, 11:52:56 PM »
Great looking forward to V3
My Tools: MacBook Pro Retina, Coda2, Sketch 3... Couldn't live without them

Offline N1kko

  • Posts: 137
  • Gender: Male
Re: The solution for Short (SEO Friendly) URL's
« Reply #113 on: July 02, 2013, 11:13:26 AM »
Any update on V3?
My Tools: MacBook Pro Retina, Coda2, Sketch 3... Couldn't live without them

Offline Ruud

  • Posts: 3669
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: The solution for Short (SEO Friendly) URL's
« Reply #114 on: July 03, 2013, 04:11:59 PM »
Just put v3 on http://short.dev4me.nl/download/

Nothing is changed in howto use it for new websites.
If you already are using a previous version the droplet/htaccess/short.php all need to be replaced.

daydreamer

  • Guest
Re: The solution for Short (SEO Friendly) URL's
« Reply #115 on: July 03, 2013, 08:56:27 PM »
Great work Rudd think this should be hard coded into WB  :-D

daydreamer

  • Guest
Re: The solution for Short (SEO Friendly) URL's
« Reply #116 on: August 01, 2013, 09:25:02 AM »
Having an issue with bakery. When you get to submit order and submit it takes me back to previous page and not through to fill out address. I can see [[shorturl]] at the top of the page which I then realised shorturl was causing the error.

I removed the short urls and it worked fine so not really sure what the problem is.

Offline dbs

  • Betatester
  • **
  • Posts: 8819
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: The solution for Short (SEO Friendly) URL's
« Reply #117 on: August 01, 2013, 10:39:54 AM »
Should be solved in Bakery 1.6.
Your version is?

daydreamer

  • Guest
Re: The solution for Short (SEO Friendly) URL's
« Reply #118 on: August 01, 2013, 12:54:14 PM »
I am using the latest bakery version.

The continue url in the form is showing as http://domain.com/pages/bakery.php and not http://domian.com/bakery

If I change {SETTING_CONTINUE_URL} in the form to http://domian.com/bakery it works although the [[shorturl]] still shows on the template at the top.

jacobi22

  • Guest
Re: The solution for Short (SEO Friendly) URL's
« Reply #119 on: August 01, 2013, 01:11:34 PM »
Quote
although the [[shorturl]] still shows on the template at the top.

Droplets need the Code register_frontend_modfiles('js') in the head of your Template-index.php
here a sample, which include frotend.css and frontend.js, but not jquery files
Code: [Select]
<?php
        
// automatically include optional WB module files (frontend.css, frontend.js)
        
register_frontend_modfiles('css');
        
// register_frontend_modfiles('jquery');
        
register_frontend_modfiles('js');
?>
« Last Edit: August 01, 2013, 01:16:44 PM by jacobi22 »

jacobi22

  • Guest
Re: The solution for Short (SEO Friendly) URL's
« Reply #120 on: August 01, 2013, 01:16:16 PM »
in my own page i use the older version of the short-url-script and it works without problem
in a new local wb 2.8.4 project i test the shorturl 3.0 and i have only 404-Errors
the rewrite works in the links and in the adress line from the browser.
Whats the problem here?

Offline badknight

  • WebsiteBaker Org e.V.
  • **
  • Posts: 819
  • Gender: Male
    • pinzweb
Re: The solution for Short (SEO Friendly) URL's
« Reply #121 on: August 01, 2013, 01:52:49 PM »
in my own page i use the older version of the short-url-script and it works without problem
in a new local wb 2.8.4 project i test the shorturl 3.0 and i have only 404-Errors
the rewrite works in the links and in the adress line from the browser.
Whats the problem here?
in the short.php

you can try to debug the problem:
try to commend out the include /chdir and make a simple echo $fullpag;
now you can see the PATH - is there a Error or is it correct?
« Last Edit: August 01, 2013, 02:14:12 PM by badknight »
Ich würde gern die Welt verändern, doch Gott gibt mir den Quellcode nicht...

daydreamer

  • Guest
Re: The solution for Short (SEO Friendly) URL's
« Reply #122 on: August 21, 2013, 08:44:22 PM »
How can I add a 404 error page as it just redirect back to main url

Offline Ruud

  • Posts: 3669
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: The solution for Short (SEO Friendly) URL's
« Reply #123 on: August 21, 2013, 10:52:13 PM »
How can I add a 404 error page as it just redirect back to main url
Have a look in short.php and find lhe line:
Code: [Select]
define('ERROR_PAGE' , '/'); //Change this to point to your existing 404 page.Change the '/' with the (short) name of your 404 page.

Example:
Code: [Select]
define('ERROR_PAGE' , '/my404page'); //Change this to point to your existing 404 page.

daydreamer

  • Guest
Re: The solution for Short (SEO Friendly) URL's
« Reply #124 on: August 22, 2013, 08:54:51 PM »
Thanks Rudd missed that

 

postern-length