[SOLVED] Print layout not working in 1.2.3 DEV

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

@pico:
--------------------------------------------------
Sorry, but I can´t see an static URL at your testpage.
"http://test.hdk-online.de/index.php?test" isn´t statically.

Are you switch rewrite off since yesterday?


@pepe:
--------------------------------------------------
Yes, thats right but it isn´t an basically problem of CSS.
Statically testpage runs fine including this long comment.
I believe the template editor has a short problem.


@Oliver:
--------------------------------------------------
An dieser Stelle halte ich CSS für ungeeignet. Dann kann man das eben nicht nutzen oder muss sich Alternativen überlegen.
You are right man.
Sorry, there is no problem with {NAV_LIST_TOP:Home:Class} but {NAV_LIST_CURRENT}

/* Tantek-Hack IE5 error correction */
#list_level a {
background-color: #B7C2D0;
display: block;
padding: 4px 2px 3px 16px;
border: 1px solid #92A1AF;
width: 184px;
voice-family:"\"}\""; /* after this point IE 5.x is ignoring following declaration */
voice-family:inherit;
width:164px;
}


page layout: space head/right/bottom/left dosn´t work
--------------------------------------------------
Welcher Code aus 1.21 soll nicht in 1.2.3 enthalten sein?
what code isn´t contained from 1.21 to 1.2.3?
function get_body_attributes($values)
located in front.func.inc.php
Replacing this function from 1.2.3-DEV -> 1.2.1-DEV and space head/right/bottom/left runs fine.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

for page borders I always recommend CSS.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Short question page boarders:

where i can find the class or thereabout ?
I am unwillingly change source code.

:!: For a one man show it´s a great work you do. :!:

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

it is the nomal

body {
border:0;
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
}

somewhere in your used CSS file, maybe frontend.css

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Ok ok

tz.tz.tz I haven´t seen the body tag in my frontend.css.

Thank you.

(Manchmal sieht man den Wald vor lauter Bäumen nicht)


Wünsche ein schönes Wochenende :D


Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

:oops: sorry was my fault - did a Error in .htaccess so that don't work properly
also bei mir gehts mit 1.2.3 und rewrite http://test.hdk-online.de
print didn't work with 1.2.3 when rewrite is on :!:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

So does anyone have a suggestion as to what could be done to get print layouts working with rewrite turned on? URL's look nicer without the index.php?alias. Anyone have any ideas? :?:
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

for me it is working on my Windows test system.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

I'm on a Linux server with cPanel, where it works for 1.2.1 but not 1.2.3
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

think that I look into the Code tommorow - if I will find some time - cause I like to have it too - when I upgrade my Site to 1.2.3 :?
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I think I know your problems - please compare your .htaccess files. In 1.2.3 there is one step of rewriting changed. The "." will be rewritten in once to ",". This is the only change in 1.2.3 I have made. So the step

Code: Select all

//if($phpwcms["rewrite_url"]) {
//$_GET['id'] = str_replace(".",",",$_GET['id']);
//}
in content.func.inc.php around line 49 is not neccessary anymore.


Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

mhhh

my htaccess looks like that

Code: Select all

RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ /index.php?id=$1.$2.$3.$4.$5.$6
RewriteRule ^(.+)\.phtml$ /index.php?$1 
and the above Code in content.func.inc.php is commented out

but it won't work - :cry:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

yepp - but check again. You are using the wrong version ;-)

Code: Select all

# These settings are recommend
# Maybe you might have problems
# with other scripts that needs
# register_globals ON
php_flag magic_quotes_gpc Off
php_flag register_globals Off


# Rewrite functionality for phpwcms
# optimized by Jan212
# 18-04-2004

# Check that you have set Options FollowSymLinks
# and right Allow
RewriteEngine On

# maybe you need this
#DirectoryIndex index.html index.php 


# Default ReWrite settings for phpwcms
# ===============================================
# This will rewrite 0.0.0.0.0.0.phtml => index.php?id=0.0.0.0.0.0
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ index.php?id=$1,$2,$3,$4,$5,$6

# This will rewrite mypage.phtml => index.php?mypage
RewriteRule ^(.+)\.phtml$ index.php?$1


# If phpwcms is installed in a subdirectory,
# sample: "mysubdir" then use this (remove #)
# if above lines doesn't work for you
# ===============================================
#RewriteBase /mysubdir
#RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ /mysubdir/index.php?id=$1,$2,$3,$4,$5,$6
#RewriteRule ^(.+)\.phtml$ /mysubdir/index.php?$1 


# If you want to set rewrite logging
# ===============================================
#RewriteLog "/absolute/path/to/the/rewrite.log" 
# 0 = Logging disabled, 9 = highest level of logging, only for debugging 
#RewriteLogLevel 3
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

:oops: :oops: :oops:

ich glaub ich brauch ne Brille :wink:


sag ja immer 'kaum macht mans richtig - schon geht's '

DANKE

geh jetzt zu Fielmann oder so :D :D :D
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
Cyrus
Posts: 63
Joined: Mon 22. Mar 2004, 05:40
Location: New Zealand
Contact:

Post by Cyrus »

Thanks Oliver.

I had left the old .htaccess as I had some permanent redirects from the old extension .shtml pages to the new .phtml

Loaded the .htaccess from the 1.2.3-DEV files and it works for me now.

Regards.
Cyrus
Post Reply