Could _vti_cnf folders generally be ignored by the script ?

Help with installation and general calendar setttings

Could _vti_cnf folders generally be ignored by the script ?

Postby keyboarder » Thu Oct 21, 2010 5:35 pm

Hi Chris,
this is not my first post, but it's time to make you some complimets at first:

Great calendar script ! Really GREAT !
This must have caused some sleepless nights for you in the past, to come so far ! Be certain that there's a donation coming, as soon a I'm convinced that this is definitely what I need. I still have some issues to go through, which I will post later in the appropriate thread.

I'm almost done with the calaendar modification for my purposes and there's a test installation at http://www.phuket-beachvillas.com/calendar/calendar-mv/select.htm

However, this is about _vti_cnf folders and my questions is:
Could _vti_cnf folders not generally be ignored by the script - wherever they appear ?

I have started publishing websites a long time ago and have always used Frontpage followed by MS-Expression ( but still using FP, since I'm so used to it and it's very fast (for me...)). Meanwhile I have a lot of domains out there and a manyfold of websites. Impossible for me to change to another publishing program.

As soon as FP makes any update these _vti_cnf f... :| olders are back all over the place !

... or am I the only one concerned with this issue ?
keyboarder
 
Posts: 11
Joined: Tue Oct 19, 2010 3:21 pm

Re: Could _vti_cnf folders generally be ignored by the scrip

Postby chris » Thu Oct 21, 2010 6:12 pm

Hi,
thanks for the comments. I hope you don't run into too many issues ;)

Yes, I think that you are the only person worried about these _vti_cnf folders (I had never even heard of them until you mentioned them) - I am amazed that anybody still uses Front Page (assuming that that is where these files come from).

However you are right that this needs to be fixed for the odd occasion that it occurs.

In the calendar script the only bit of code that actually reads the contents of a directory is the code that gets the languages (a future version will use a different system).

Fortunatley this has a simple solution.
Open the ac-includes > common.inc.php file.
Find this line (72):
Code: Select all
if ($file != "." && $file != "..") {

and change it to this:
Code: Select all
if ($file != "." && $file != ".." && substr($file,-8,4)=="lang") {

That is all you need to do.
You should be able to see from that line that I have added a further check to only use files that have "lang" as the pre-extension.

Let me know if you have any problems.

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Could _vti_cnf folders generally be ignored by the scrip

Postby keyboarder » Fri Oct 22, 2010 11:53 am

chris wrote:Hi,
... I hope you don't run into too many issues ;)
Yes, I think that you are the only person worried about these _vti_cnf folders


Waaauw ! That was fast Chris !
Thanks for the code. I have changed it and YES, it works fine!
Fortunately I'm not the only one, confronted with these ugly folders. There's at least one more: http://forum.ajaxavailabilitycalendar.com/viewtopic.php?f=22&t=384&p=1508&hilit=_vti_cnf#p1508, which I have posted to as well. These _vti_cnf folders are created by FrontPage for sure !

As of the other issues, I'll try to find solutions first here in the forum, where I got all the others answered, and if I cannot find anything, I'll try to make it as brief as possible OK ? So, thanks again a lot.
keyboarder
 
Posts: 11
Joined: Tue Oct 19, 2010 3:21 pm

Re: Could _vti_cnf folders generally be ignored by the scrip

Postby keyboarder » Fri Oct 22, 2010 6:33 pm

Chris,

just a minor change and only for my purpose I think. I hope it doesn't blow up the forum unnessecarily:

I do not need the function "see calendar" as shown on the image attached, since I call this function through a separate website, inside an iframe. Is it possible to mark the hyperlink as text, or take it out somewhere in the script? If yes, kindly tell me where to find that hyperlink.

If I'm not precise with my question, please have a look at http://www.phuket-beachvillas.com/calendar/calendar-mv/select.htm.
login is: roger
user is: rogermv - (just a test anyway)

Thank you and as I said before: My donation is coming, but still have to go through the PayPal procedure for an account. Thanks a lot and

best regards from Phuket, Thailand

P.S.: I think no more issues are coming from my side. Everything works fine and I hope that you'll be able to make more $$$ when your script is ready for the market. Good luck and thanks for that great script.
Attachments
head.jpg
the arrow shows on the icon, which I would like to remove, incl. the link behind it.
head.jpg (24.47 KiB) Viewed 5633 times
keyboarder
 
Posts: 11
Joined: Tue Oct 19, 2010 3:21 pm

Re: Could _vti_cnf folders generally be ignored by the scrip

Postby chris » Fri Oct 22, 2010 7:01 pm

Hi,
The admin menu options are defined in this file:
ac-admin > admin-menu.inc.php
You just need to look for and remove (or comment out) this line (it is actually defined twice, once for each user level):

Code: Select all
$menu[1]["common"]["see_web"]      = array('href'=>''.AC_CALENDAR_PUBLIC.'','txt'=>''.$lang["see_web"].'','icon'=>'<img src="icons/icon_calendar.png" alt="web">');


Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Could _vti_cnf folders generally be ignored by the scrip

Postby keyboarder » Fri Oct 22, 2010 7:05 pm

OOOFFF ... an F16 couldn't be faster and not more precise !

Thanks, Chris
keyboarder
 
Posts: 11
Joined: Tue Oct 19, 2010 3:21 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron