TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 565
  • Total: 566
  • @rjen

Subs error

Started by Optmusprime, December 31, 2006, 04:21:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Optmusprime

ok i have SMF 1.1.1 and i was told to do a manual install of Tiny Portal to get it running every thing works except Subs.php after i edit it and uplode it i get this error i cant seem to figure out what im doing wrong im following the install direction to the letter?  :idiot2: is there somthing i need to do differently or w8 for 0.9.8?
Quote from: Sub.phpParse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/boguild3/public_html/Sources/Subs.php on line 3131

Quote from: Mod_instructions_SMF11rc.html
$sourcedir/Subs.php
Search for this:

   $context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));

Replace with:

   $context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys','tp_settings','tp_articles','tp_blocks','tp_dlmanager'));

Search for this:

   // Admin area 'Members'.

Add this before:

   // TinyPortal
   if (allowedTo(array('tp_settings', 'tp_blocks', 'tp_articles', 'tp_dlmanager', 'tp_gallery', 'tp_linkmanager', 'tp_teampage')))
   {
      $context['admin_areas']['tportal'] = array(
         'title' => 'TinyPortal',
         'areas' => array()
      );
      if (allowedTo('tp_settings')){
         $context['admin_areas']['tportal']['areas']['tp_settings'] =  '<a href="' . $scripturl . '?action=tpadmin;sa=settings">' . $txt['tp-admin2'] . '</a>';
      }
      if (allowedTo('tp_blocks')){
         $context['admin_areas']['tportal']['areas']['tp_blocks'] =  '<a href="' . $scripturl . '?action=tpadmin;sa=blocks">' . $txt['tp-admin5'] . '</a>';
      }
      if (allowedTo('tp_articles')){
         $context['admin_areas']['tportal']['areas']['tp_articles'] =  '<a href="' . $scripturl . '?action=tpadmin;sa=articles">' . $txt['tp-admin8'] . '</a>';
      }
      if (allowedTo('tp_dlmanager') && $context['TPortal']['show_download']){
         $context['admin_areas']['tportal']['areas']['tp_dlmanager'] =  '<a href="' . $scripturl . '?action=tpmod;dl=admin">' . $txt['tp-admin9'] . '</a>';
      }
      if (allowedTo('tp_linkmanager') && $context['TPortal']['show_linkmanager']){
         $context['admin_areas']['tportal']['areas']['tp_linkmanager'] =  '<a href="' . $scripturl . '?action=tpmod;link=admin">' . $txt['tp-admin13'] . '</a>';
      }
      if (allowedTo('tp_gallery') && $context['TPortal']['show_gallery']){
         $context['admin_areas']['tportal']['areas']['tp_gallery'] =  '<a href="' . $scripturl . '?action=tpmod;show=admin">' . $txt['tp-admin15'] . '</a>';
      }
      if (allowedTo('tp_teampage') && $context['TPortal']['show_teampage']){
         $context['admin_areas']['tportal']['areas']['tp_teampage'] =  '<a href="' . $scripturl . '?action=tpmod;team=admin">' . $txt['tp-admin17'] . '</a>';
      }
   }
   // TinyPortal end


Nokonium


Optmusprime

ahhh ok sweet it now work ty. now only if i could get Helios Multi working right ^_^

This website is proudly hosted on Crocweb Cloud Website Hosting.