Git Product home page Git Product logo

yourls-import-export's Introduction

YOURLS Import Export

YOURLS Import Export is a plugin for YOURLS that helps you import and export your YOURLS URLs.

Import/Export code has been heavily borrowed from the Redirection plugin for WordPress by John Godley.

Supported things at the moment:

  1. CSV - Import & Export (source, destination, hits).
  2. XML - Import & Export (all url data).
  3. RSS - Export

CSV & XML are compatible with the Redirection plugin.

Requirements

YOURLS r708+ installation (that is newer than the v1.5 release).

Installation

  1. Download the zip.
  2. Extract the zip.
  3. Put the YOURLS-Import-Export folder in the user/plugins directory.
  4. Activate the plugin.

Usage

  1. Go to Plugins -> Import/Export
  2. Follow the instructions on the page

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b my-yourls-import-export)
  3. Commit your changes (git commit -m "Added X Import/Export")
  4. Push to the branch (git push origin my-yourls-import-export)
  5. Create an Issue with a link to your branch
  6. Enjoy a refreshing Diet Coke and wait

You can also donate if you found this plugin to be helpful!

Notes

yourls-import-export's People

Contributors

gautamgupta avatar koolru avatar gamebits avatar

Stargazers

Navjot Singh avatar orange233 avatar Simon W avatar Roy Cordero avatar Joel Gratcyk avatar  avatar Alfian Ridwan avatar lifenghua avatar  avatar Arthur BOUDREAULT avatar Chris avatar edutech.world avatar  avatar Dirk Spannaus avatar Jon Anhold avatar 紅領巾丶先生 avatar  avatar  avatar Sandro avatar Bryen Vieira avatar Jess avatar Vivek Deveshwar avatar BeeCee avatar Bradley Crawford avatar Joseph Richardson avatar Cyber Halunke avatar  avatar Andrew Robert McBurney avatar jaymz campbell avatar Sven Jörns avatar Suriyaa Sundararuban avatar Chris Bernal avatar Gabriel R F avatar Niko Geil avatar  avatar Joe Wells avatar Daniel McClure avatar John Mazz avatar Joël Galeran avatar Jim Hobbs avatar  avatar GΞR₿Z avatar Reezo avatar Eric Mann avatar Nima Sarhangpour avatar  avatar px avatar Dirk Ginader avatar

Watchers

 avatar James Cloos avatar Raindolf owusu avatar BeeCee avatar Sandro avatar Andyt avatar Joe Wells avatar

yourls-import-export's Issues

CSV import from Mac

The current import does not support csv files from a mac. You need to add ini_set("auto_detect_line_endings", "1");
before the fopen() in the csv.php file this will correct the import issue and allow csv files from a Mac.

Import redirections CSV fails

Hi, i got this error when try to import a CSV or XML redirections file generated in another server.

image

im working with a AWS Instance through Bitnami LAMP

YOURLS v 1.7.4
GautamGupta-YOURLS-Import-Export-00f50ef
phpMyAdmin v 4.9.1
PHP v 7.3.10
MySQL v 8.0.17

did you have any idea or way to solve this?

Thanks in advance

Plugin doesn't work on version

Hi,

Your plugin doesn't work anymore on YOURLS version 1.8.2, it works still for example on YOURLS version 1.8.2

Fatal error: Uncaught BadMethodCallException: Class 'YOURLS\Database\YDB' does not have a method 'get_var'

exporter does not work

Hello,
Thanks for providing the plugin.
The export function does not work for me.
here is the error that I get:

Fatal error: Uncaught Error: Failed opening required 'fileio/file_io.php' (include_path='.:/usr/local/lib/php') in /var/www/html/user/plugins/YOURLS-Import-Export/plugin.php:142 Stack trace: #0 /var/www/html/user/plugins/YOURLS-Import-Export/plugin.php(110): yourls_imex_export_urls('rss') #1 /var/www/html/includes/functions-plugins.php(224): yourls_imex_handle_post(Array) #2 /var/www/html/includes/functions-plugins.php(275): yourls_apply_filter('load-import_exp...', Array, true) #3 /var/www/html/includes/functions-plugins.php(798): yourls_do_action('load-import_exp...') #4 /var/www/html/admin/plugins.php(8): yourls_plugin_admin_page('import_export') #5 {main} thrown in /var/www/html/user/plugins/YOURLS-Import-Export/plugin.php on line 142

Broken Query Arg?

Tried to install this so I can migrate my YOURLS installation from one server to another without messing with a SQL dump. Activation went just fine, but when I tried to navigate to the actual Import/Export page, I was met with this error message:

Fatal error: Call to undefined function add_query_arg() in /homepages/11/d235243095/htdocs/eam.me/includes/functions.php on line 1504

It appears at the very top of the page, which means there is a problem with the call to yourls_add_query_arg() on line 53.

I'm running YOURLS v 1.5, and further investigation shows that there is a bug in that core function, but it's not included in the tagged version release ...

Error Message

Fatal error: Call to undefined function add_query_arg() in /home/content/40/9885840/html/[MY SITE]/includes/functions.php on line 1504

After installing and activating the plugin, when it is selected in the admin panel, this error appears.

Using OSx 10.5.8, Safari 5.0.6 (also Firefox 3.6.2), Apache 2.0 webserver (Linux).

How to make public the xml

Hi there!

I want to make public the xml in order to handle the results to show in another web page. and how can i get the nonce=xxxxx token every time i exec file_get_contents() in my php file.

Thanks in advance!!

Modifed version with detailed data about campaigns

Modified version to this plugin. Instead of giving a file containing some info about all the campaigns, this modified version lets the user choose a specific campaign they would like to get the info about, then download a CSV file with each click having its own row. The columns of the CSV are click_id, click_time, shorturl, referrer, user_agent, ip_address and country code. See here: www.github.com/samyhajal/YOURLS-Import-Export

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.