Welcome to Geeklog, Anonymous Tuesday, July 16 2024 @ 08:25 am EDT

Geeklog Forums

Link to Content Syndication


Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
Where should the link to the new content syndication option in the admin system be?

I've just upgraded my development instance to 1.3.9 and I can't find the link to the file, although the file exists and when I type the url in it works fine.

It's not showing in mysite/admin/ as an option on the menu bar.

I've tried using the 'classic' theme to rule out any theming problems and no luck.
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
I have the link called "Content Syndication" inside my "admin_block", but you are right, it doesn't show up in "/admin/moderation.php" Confused

geKow
 Quote

Status: offline

THEMike

Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
Ah if't sin the admin block that would explain that...

I use the menu plugin, and don't display the admin block instead using the admin option on the menu plugin.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by geKow: but you are right, it doesn't show up in "/admin/moderation.php"

Actually, if you compare the Admin menu with the icons in Command and Control, you'll notice that several other entries don't have an icon there either, e.g. DB Backup and Mail Users. That's something that should be fixed some time ...

bye, Dirk
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
Mail users
Content Syndication
DB Backups
GL Version Test

are all not linked... so... add the following code to moderation.php just after the plugin.edit block:


if (SEC_hasRights('user.mail')) {
$admin_templates->set_var('page_url', $_CONF['site_admin_url'] . '/mail.php');
$admin_templates->set_var('page_image', $_CONF['layout_url'] . '/images/icons/mail.gif');
$admin_templates->set_var('option_label', $LANG01[105]);
$admin_templates->parse('cc_main_options','ccitem',true);
}
if (( $_CONF['backend'] == 1 ) && SEC_inGroup( 'Root' )) {
$admin_templates->set_var('page_url', $_CONF['site_admin_url'] . '/syndication.php');
$admin_templates->set_var('page_image', $_CONF['layout_url'] . '/images/icons/syndication.gif');
$admin_templates->set_var('option_label', $LANG01[38]);
$admin_templates->parse('cc_main_options','ccitem',true);
}
if ($_CONF['allow_mysqldump'] == 1 AND SEC_inGroup( 'Root' )) {
$admin_templates->set_var('page_url', $_CONF['site_admin_url'] . '/database.php');
$admin_templates->set_var('page_image', $_CONF['layout_url'] . '/images/icons/database.gif');
$admin_templates->set_var('option_label', $LANG01[103]);
$admin_templates->parse('cc_main_options','ccitem',true);
}
if (SEC_inGroup( 'Root' )) {
$admin_templates->set_var('page_url', 'http://www.geeklog.net/versionchecker.php?version=' . VERSION);
$admin_templates->set_var('page_image', $_CONF['layout_url'] . '/images/icons/version.gif');
$admin_templates->set_var('option_label', $LANG01[107]);
$admin_templates->parse('cc_main_options','ccitem',true);
}


Obviously, you need to upload some images with the filenames as per the code above.

I also edited the template to allow me two rows of icons - otherwise it gets a bit crowded. Copy the table row in layout/theme/admin/moderation/moderation.thtml for the admin blocks, rename to cc_main_options2 and then do the same in moderation.php for any of the items you want to appear in your second row of icons.

I've put a detailed explanation on my site with icons to use.

Cheers,

Euan.
-- Heather Engineering
-- No job too small
 Quote

All times are EDT. The time is now 08:25 am.

  • 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