View Full Version : edit Links - any easy way
jahangirafzal
10-25-2005, 05:34 PM
hi,
its very difficult for any admin to edit bulk links......... if it possible that new option "EDIT" is appear in front of all links of the directory after admin login ...........
or any one have any better way to edit bulk links..
David
10-25-2005, 06:06 PM
Would you like to create an html page demonstrating how the edit page would look?
jahangirafzal
10-25-2005, 09:47 PM
Content visible to registered users only.
hi,
if possible just like refer mod or report mod 'Edit" appears next to the entry (but just for admin)
so the admin edit the links easily
thanks,
jaaf
minstrel
10-27-2005, 03:22 AM
excellent idea!
David
10-27-2005, 04:00 AM
Sure, but we would have to create a login system in the user area. Definitely doable, but would take a fair amount of coding.
vkaryl
10-27-2005, 04:17 AM
Why couldn't you just add this as an option in the "links" section of the admin? No reason to "create a login system in the user area" - sheesh....
Ap0s7le
10-27-2005, 06:34 AM
jahangirafzal,
I've done that with one of my large directories.
It shows Edit next to every link once you log into the admin.
Very handy indeed.
If you're interested, I'll not only provide the mod but install and ensure it's working as well, or your money back.
Contact me for pricing.
-Casey
richm
11-11-2005, 12:43 AM
I did something quick and dirty during the early days of my directory, when I wanted to quickly fix problems while reviewing the public directory.
Open up templates/link.tpl:
Replace:
{$link.DESCRIPTION}</p>
with:
Content visible to registered users only.
This will create an -Edit- link after every entry in the public directory, which takes you to the login screen (the first time you click on it), and then to the Edit Link screen for that item.
Since it requires a login, it is a pretty safe way to go. However, once you start getting a bunch of hits on your site, you might want to improve this. For instance, I am considering displaying this -Edit- link only if I am accessing the site from a specific IP address (mine). If I make this change, I will post the code, or maybe someone else will do it for me.
Nobody
11-11-2005, 04:18 PM
Ah! Good. There should be a way to show this link only if the admin is logged in?
richm
11-11-2005, 08:30 PM
I did some testing with the Login on the front end, and it was quirky. If I logged in to the admin panel in one window, but accessed the directory via another window, the login did not follow to the other window. Also, when your login fails, it takes you to the directory, so you really don't know if you were successful or not when doing a front end login.
So, I opted to go with IP address. Often, I find myself using and searching on my own directory, and I find duplicates and other errors along the way. I would hate to have to go login, and then return to try and find my spot.
I have created a first pass at the code to create and validate an "EDITOR_IP" address in the Mod Requests section at:
http://www.phplinkdirectory.com/forum/viewtopic.php?p=6275
Ap0s7le
11-12-2005, 05:42 PM
richm, the IP way to go isn't the best.
This mod was already done, and will be released shortly.
The Edit / Delete buttons are shown to only Admins ONCE they are logged in. No reason to have it visible to the public, I've never been one to show everyone my Admin paths.
Otherwise you're going to have a lot of "admin/dir_links_edit.php?action=E:3563" pages indexed in Google asking for login credentials.
later
-Casey
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.