Page 1 of 1
					
				Vistor Font Size selector
				Posted: Wed 22. Nov 2006, 10:44
				by vectrus
				Does anybody know a neat PHPWCMS way to have a vistor be able to select the font size. small, bigger biggest ?
I know it's done with css selection, and i have seen the user-font size css's. But havent seen a nice way to implement it without hacking index.php.
Any advise would be MORE then welcome.
			 
			
					
				
				Posted: Wed 22. Nov 2006, 10:51
				by flip-flop
				Hi vectrus, 
in your template at the position you like: e.g. (Since V1.2.8 )
Code: Select all
<div class="my_special_div" style="padding-left: 10px;">
<a href="[FontSize+]" title="make bigger">bigger</a><br>
<a href="[FontSize-]" title="make smaller">smaller</a>
</div>
Regards Knut
 
			
					
				[fon-size+]
				Posted: Wed 22. Nov 2006, 11:12
				by vectrus
				Do i need to change [font-size+] for the size is px like [10px] ? Of is it litterly?
http://www.lowvisiontotaal.nl/index.php
regards
 
			
					
				
				Posted: Wed 22. Nov 2006, 11:30
				by flip-flop
				Please don“t manipulate the call  href = "
[FontSize+]" "
[FontSize-]"
Have a look into the folder: /phpwcms_template/inc_css/fontSize/
There you will find the corresponding css files.
[EDIT]
And please do this:
Copy the file /phpwcms_template/inc_script/frontend_render/disabled/
switchFontSize.php
into the folder /phpwcms_template/inc_script/frontend_render/
At your conf.inc.php please set: 
Code: Select all
$phpwcms['allow_ext_render']  = 1;        //allow including of custom external scripts at frontend rendering
[/EDIT]
Knut
 
			
					
				
				Posted: Thu 23. Nov 2006, 10:58
				by liro
				From which version is this implemented. 
I'm running on 1.2.6 and cannot find it  

 
			
					
				
				Posted: Thu 23. Nov 2006, 11:43
				by flip-flop