Welcome to Geeklog, Anonymous Monday, October 14 2024 @ 08:12 pm EDT
Geeklog Forums
Links edit link hack
I\'m sure this is in the forums somewhere, but I didn\'t see/couldn\'t find this, so I\'ll post it here although it\'s too simple to be called a hack. It took all of 1 minute.
If you have lots of links, the admin page is not very easy to use. To add a convenient \"edit\" link to your links in the normal categories, for admins only:
In layout/theme_name/links/linkdetails.thtml, add { link_edit } before the < br > command. You should have this:
< li >
< a href=\"{link_url}\" > {link_name} < /a > ( {link_hits} ) {link_edit} < br >
{link_description}
< /li >
In public_html/links.php, around line 138 ish and again at about 180, add the following 3 lines just before $linklist->parse(\'link_details\', \'link\', true); (that line is included for reference):
if (SEC_hasRights(\'link.edit\')) {
$linklist->set_var(\'link_edit\', \'< a href=\"\' . $_CONF[\'site_admin_url\'] . \'/link.php?mode=edit&lid=\' . $A[\'lid\'] . \'\">\' . $LANG01[4] . \'< /a >\');
}
$linklist->parse(\'link_details\', \'link\', true);
Euan.
-- Heather Engineering
-- No job too small
-- Heather Engineering
-- No job too small
11
14
Quote
Paul
Anonymous
Euan,
This displays the full html code string rather than just the word \'edit\' at the end of each link line.
Any ideas?
I am using GL v1.3.8
Thx, Paul
12
15
Quote
All times are EDT. The time is now 08:12 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content