Member
Member
Wete   2012-08-13, 18:30
#1

Hi guys!

You just added html_encode($before) ... in the functions printHomeLink, printParentBreadcrump and so on, which makes it no more possible to use sort of styles here (I used to use span). Any workaround besides hacking template-functions.php? (I know: "You should NEVER modify core files ...")

Wete

Member
Member
sbillard   2012-08-13, 19:48
#2

Well, of course you can make your own functions to do these things. Use the current function as a model.

We have regularized Zenphoto so that it is consistent. All strings used internally are presumed to need html encoding. This way nothing is left to chance. Strings which typically would contain html tags are encoded by a special function that scrubs invalid tags, encodes html entities, and passes valid tags through. This function is not invoked for strings that typically do not require html tagging since it is an expensive process.

All this is so that hackers cannot sneek exploits into your site.

Member
Member
Wete   2012-08-13, 20:29
#3

I completely understand that mentality, but I want those red >> in my breadcrumps. Maybe I'll use own functions for that, but I don't like those hacks, because they blast my knowledges ...

Member
Member
Wete   2012-08-17, 12:40
#4

Solved it with 2 modified functions.

Administrator
Administrator
acrylian   2012-08-17, 12:53
#5

The dev nightly build has some changes regarding this as well

Member
Member
Wete   2012-08-17, 15:32
#6

A little more details ...?

Administrator
Administrator
acrylian   2012-08-17, 15:59
#7

That generally parameters like before/after/between that a lot of functions work the same way and allow formatting. Of course this is the 1.4.4. dev nightly so probably not for production use yet.

Member
Member
Wete   2012-08-17, 17:12
#8

Thanx!

Member
Member
sbillard   2012-08-17, 23:21
#9

More specifically, with the dev build there is a span class for each of the "before", "between", and "after" type parameters allowing you to use CSS formatting for their content.

Member
Member
Wete   2012-08-18, 10:21
#10

Sounds good!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.