Joomla!ŪPlug

. XCloner - Backup and Restore Component

OOPS. Your Flash player is missing or outdated.Click here to update your player so you can see this content.
Joomla backup and restore component

XCloner for Wordpress new!

 
 
JoomlaPlug.com
Welcome, Guest
Please Login or Register.    Lost Password?
Re:How to add installation link for customised pac (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How to add installation link for customised pac
#2268
Bai Jianpeng (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
How to add installation link for customised packag 5 Years, 1 Month ago  
I tried JoomlaStart, it works very well.

Now I have a novel idea: since I had repacked the original Joomla 1.0.12 package to support utf-8 encoding and Chinese language, then I want to use this JoomlaStart to install my customised package when I begin to set up next website for my friends or clients.

I viewed the code of JoomlaStart.php file, found that it will read a text file named ver.txt from this website. So I edited it and link to my own website, then I added a new line in the ver.txt file to link to my revised Joomla_utf-8_Chinese.zip file which had been uploaded to my website alreadly.

However this trick did not work. It seems that this Installer will not allow any package outside official Joomla.org site.

But I really need such a feature to intall my translated version of Joomla. Because this installer can only retrieve original English version when my client want a translated version in our native language.

How can I accomplish this?

Thanks.<br><br>Post edited by: baijianpeng, at: 2007/03/31 13:44
 
Report to moderator   Logged Logged  
 
JoomlaGate - Chinese Joomla users' portal

http://www.joomlagate.com
  The administrator has disabled public write access.
#2271
Ovidiu (Admin)
Admin
Posts: 2927
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:How to add installation link for customised pac 5 Years, 1 Month ago  
Hi there! The changes you made to the ver.txt file probably don't have any effect because the file is still being fetched from our site! I have updated the package code to fetch the code first from the local directory, so try and download again the JoomlaStart utility from here http://joomlacode.org/gf/download/frsrelease/255/1996/Joomla.Start-V1.3.zip and try to use the updated file!

Let me know if you have anymore problems! Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2272
Bai Jianpeng (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:How to add installation link for customised pac 5 Years, 1 Month ago  
Cool ! Thanks for your considerateness.

I tested the new file with my edited ver.txt file in the same directory. Unfortunately, this new Joomla.Start.php can't transfer the customised package from my server, but still retrieve the official package instead.

Even if it can transfer my package on my own server, I have two apprehensions.

First: I had translated all those Instructions and Descriptions from English into Chinese. Now if I just overwrite with the new file, all those translations will lost.

Could you please tell me which line or lines of code I should replace with newer one to change the mechanism of where to retrieve the ver.txt file, so that I can keep the translations.

If you can develope a new version with a language folder to support multilingual site, I will offter you the Chinese language file as my appreaciation.

Second: I installed the component JoomlaStart on my website to offer auto-installer for Chinese users who want to install my translated version of Joomla which is now hosting on my server. Could you modify some code to tell the component to read the edited ver.txt file from my server intead of your website ?

Thanks.
 
Report to moderator   Logged Logged  
 
JoomlaGate - Chinese Joomla users' portal

http://www.joomlagate.com
  The administrator has disabled public write access.
#2274
Ovidiu (Admin)
Admin
Posts: 2927
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:How to add installation link for customised pac 5 Years, 1 Month ago  
The code you need to edit is this, just at the top of the Joomla.Start.php file


Code:

if($fp = @fopen($rurl,'r')){ while(!feof($fp)) $ver .= fread($fp, 1024); fclose($fp); } else{ if($fp = @fopen(&quot;ver.txt&quot;,'r')){ while(!feof($fp)) $ver .= fread($fp, 1024); fclose($fp); } else{ echo &quot;<h2>Unable to open ver.txt! Please download it from &quot;.$rurl.&quot; and upload it here as ver.txt</h2>&quot;; exit; } }
and you need to replace it with this code
Code:

if($fp = @fopen(&quot;ver.txt&quot;,'r')){ while(!feof($fp)) $ver .= fread($fp, 1024); fclose($fp); } else{ if($fp = @fopen($rurl,'r')){ while(!feof($fp)) $ver .= fread($fp, 1024); fclose($fp); } else{ echo &quot;<h2>Unable to open ver.txt! Please download it from &quot;.$rurl.&quot; and upload it here as ver.txt</h2>&quot;; exit; } }
Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2281
Bai Jianpeng (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:How to add installation link for customised pac 5 Years, 1 Month ago  
Unfortunately, this does not work.

In orde to test this trick, I edited the ver.txt to only left one line, with the package name and link both for my translated Joomla.

Then I edited Joomla.Start.php following your guide, and uploaded both files to remote testing folder.

Next, I open this Joomla.Start.php file in my browser, surely it can read the vertext in the same folder, because I only saw one option in the package list, which is correctly what I wrote.

Then, I choose to transfer the package via Direct Transfer. About one minute later, it told me finished transfering and decompression.

But, when I checked the files in the remote folder, the package is not the one on my server. Both the filesize and file structure are NOT. It is very likely that the package transfered is the ORIGINAL Joomla 1.0.12 full package from the official site.

I can't believe it. Where did the pacakge from if there is ONLY one option in the ver.txt and there is no link to official forge in the php file?

My God ! Please help. I think the man who wrote the code of this php file surely knows where will the code get package from.

Thanks.<br><br>Post edited by: baijianpeng, at: 2007/04/03 21:03
 
Report to moderator   Logged Logged  
 
JoomlaGate - Chinese Joomla users' portal

http://www.joomlagate.com
  The administrator has disabled public write access.
#2282
Ovidiu (Admin)
Admin
Posts: 2927
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:How to add installation link for customised pac 5 Years, 1 Month ago  
Please attach here a copy of the Joomla.Start.php file you are using and also the ver.txt file to make a small test and see if i can figure it out!

Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Search JoomlaPlug.com

All rights reserved to JoomlaPlug.com ©2006-2012!

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries.
JoomlaPlug.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.