Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 906
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

External link , rendering in portal

Started by Buzz, November 02, 2010, 03:23:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Buzz

Hi , i did some research but didnt found anything usefull  :'(

First i work with SMF 1.1.8 en portal 2.3.2.

My main website is www.flemingard.com and i want to render an other folder of my directory into the portal. The other folder is www.flemingard.com/RN.

I tried with blocks and pages but its like a hugh waist of time to let it work (copy code en change links to respectable blocks etc ) and to be realistic it possible will never work.

I hope i made my question clear and in the correct board  :-[

Gz BuzZ

ccbtimewiz


Buzz


AngelinaBelle

SMF 1.1.12 is simply a much better choice, security-wise.
It isn't going to give you any key stuff to integrate raidninja into your SMF forum.

The first step might simply to create a link from your SMF forum/portal to your raidninja page.

It looks like the RaidNinja site has information on integrating with SMF (even an SMF login module), so that would be a good second step -- the experts there should be able to help you. When you've got in integrated with SMF, you might look into what you can do about a SimplePortal page.

Good Luck!

Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Buzz

#4
thx , gona need al the luck  :nervous-happy:

about the updating part , i know its beter for security (thats with all the openscource programs) But i have mods that aren't upgrade to 1.1.12  :'(

AngelinaBelle

Sounds like you will learn a lot in a short time.

Don't be afraid to try things, and to read the manuals and try the tutorials.
Remember to do all your code development on a TEST version of your forum.

Others have integrated RaidNinja with SMF, so you can do it too.
You may or may not need a little work in SQL to match your existing RaidNinja user data with the SMF user IDs. Or you may just decide to ditch old data and start fresh.

After that, if you want it in a SimplePortal page, you'll need to figure out which php code you'll need to extract.  You may be able to get some help on that at the RaidNinja forum.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Buzz

thx AngelinaBelle.

Fot the moment il try to quick fix it by using an /iframe code in a html block.

And hopefully find a solution in the meanwhile  :nervous-happy:

Buzz

#7
not realy the place to post it , but i dont want to get an other topic over something (i think stupid) question.

For some reason if i make another link in menu bar, the animation goes back to the first link of the menu bar.

Maybe the picture say's more then i can type.

here's the code i changed :

$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers','forum','Sign-Up')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm','forum','dkp','rooster','Sign-Up')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}

// Show the start of the tab section.
echo ' <ul class="menu1">';
// Show the [home] button.
echo '<li', $current_action == 'home' ? '
class="active"' : '', '><a href="', $scripturl, '"><b>' , $txt[103] , '</b></a></li>';
// Show the [forum] button.
echo '<li', $current_action == 'forum' ? '
class="active"' : '', '><a href="', $scripturl, '?action=forum"><b>' , $txt['forum']='Forum' , '</b></a></li>';
// Show the [rooster] button.
echo '<li', $current_action == 'rooster' ? '
class="active"' : '', '><a href="', $scripturl, '?topic=381.0"><b>' , $txt['rooster']='Raid rooster' , '</b></a></li>';
// Show the [Raidninja] button.
echo '<li', $current_action == 'Sign-Up' ? '
class="active"' : '', '><a href="', $scripturl, '?topic=457.0"><b>' , $txt['Sign-Up']='Sign-Up' , '</b></a></li>';
// Show the [help] button.
echo '<li', $current_action == 'help' ? '
class="active"' : '', '><a href="', $scripturl, '?action=help"><b>' , $txt[119] , '</b></a></li>';
// How about the [search] button?
if ($context['allow_search'])
echo '<li', $current_action == 'search' ? '
class="active"' : '', '><a href="', $scripturl, '?action=search"><b>' , $txt[182] , '</b></a></li>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li', $current_action == 'admin' ? ' class="active"' : '', '><a href="', $scripturl, '?action=admin"><b>' , $txt[2] , '</b></a></li>';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li', $current_action == 'profile' ? '
class="active"' : '', '><a href="', $scripturl, '?action=profile"><b>' , $txt[79] , '</b></a></li>';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li', $current_action == 'pm' ? '
class="active"' : '', '><a href="', $scripturl, '?action=pm"><b>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<blink> '. $context['user']['unread_messages'] . ' </blink>]' : '' , '</b></a></li>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<li', $current_action == 'calendar' ? '
class="active"' : '', '><a href="', $scripturl, '?action=calendar"><b>' , $txt['calendar24'] , '</b></a></li>';
// The [member] list button.
if ($context['allow_memberlist'])
echo '<li', $current_action == 'mlist' ? '
class="active"' : '', '><a href="', $scripturl, '?action=mlist"><b>' , $txt[331] , '</b></a></li>';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li', $current_action == 'register' ? '
class="active"' : '', '><a href="', $scripturl, '?action=register"><b>' , $txt[97] , '</b></a></li>';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li', $current_action == 'login' ? '
class="active"' : '', '><a href="', $scripturl, '?action=login"><b>' , $txt[34] , '</b></a></li>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li', $current_action == 'logout' ? '
class="active"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><b>' , $txt[108] , '</b></a></li>';
echo '
</ul>';
}


Gz

Nathaniel

#8
It is always a good idea to start a new topic if your issue is not particularly related. ;)

I have edited you post so that there isn't a wall of code, please post code in code bbc tags, or attach the php file to your post.

You need to define what it means for those tabs to be the current tab, otherwise SMF doesn't know which one to highlight (and defaults to the home tab).

This edit to that code should do what you want.

Code ("Find") Select
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';


Code ("Replace") Select

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
if (!empty($context['topic']) && $context['topic'] == '381')
$current_action = 'rooster';
if (!empty($_GET['page']) && $_GET['page'] == 'page2755')
$current_action = 'Sign-Up';
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Buzz

Rly thx  :D , and indeed i needed to put the code in the  insert code style.  :-X

ccbtimewiz

$current_action = ''rooster'';

Lol what?

Change to:

$current_action = '\'rooster\'';

Nathaniel

Whoops! Thanks for the correction ccb. :)

I have updated my earlier post so that people don't copy the incorrect version.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

ccbtimewiz

To be honest I thought the returned value was literally 'rooster' so that's why I escaped. Didn't even think you'd make a mistake like double singles. :P

Nathaniel

Quote from: ccbtimewiz on November 07, 2010, 07:11:00 PM
To be honest I thought the returned value was literally 'rooster' so that's why I escaped. Didn't even think you'd make a mistake like double singles. :P

Ah, we all make mistakes sometimes, I probably cut and pasted it with the single quotes into more single quotes. ;)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.