[MOD]CSV Import
-
Edit fop2/lib/dbgrid.php
Find:
private $allow_export=true;Add under:
private $allow_import=true;Find:
if ($this->allow_export) { $req=$this->set_request('dbgrid_action','csv',false); if($sep==1) { $buttons.=" <div class='btnseparator'></div>"; } $buttons.=" <div class='fbutton'> <span class='tbImgLink icon_export'> </span> <span class='btnText' onclick='javascript:location=\"".SELF.$req."\"'>".trans('Export')."</span> </div> "; $sep=1; }Add Above:
if ($this->allow_import) { $req=$this->set_request('dbgrid_action','csv',false); if($sep==1) { $buttons.=" <div class='btnseparator'></div>"; } $buttons.=" <div class='fbutton'> <span class='tbImgLink icon_export'> </span> <span class='btnText' onclick='javascript:location=\"import.php\"'>".trans('Import')."</span> </div> "; $sep=1; }Save and upload
Upload import.php to the fop2 root dir
Upload output.sql to the fop2 root dir and CHMOD 777
Update phonebook.csv with your names, numbers, etc etc and upload to fop2 root dirLogin to fop2 and click Visual Phonebook then import and all should be done.
[url=http://domain1647423.sites.fasthosts.com/csvimport.zip:fypvwofn]Download Files[/url:fypvwofn]
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login