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 login or register.

* Who's Online

  • Dot Guests: 696
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: External link , rendering in portal  (Read 5582 times)

0 Members and 1 Guest are viewing this topic.

Offline Buzz

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 1.1.8
  • SP Version: 2.3.2
External link , rendering in portal
« on: November 02, 2010, 03:23:28 PM »
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

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: External link , rendering in portal
« Reply #1 on: November 02, 2010, 03:58:07 PM »
Update to SMF 1.1.12

Offline Buzz

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 1.1.8
  • SP Version: 2.3.2
Re: External link , rendering in portal
« Reply #2 on: November 02, 2010, 06:42:44 PM »
does that have some key stuff ?

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: External link , rendering in portal
« Reply #3 on: November 02, 2010, 06:56:03 PM »
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?

Offline Buzz

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 1.1.8
  • SP Version: 2.3.2
Re: External link , rendering in portal
« Reply #4 on: November 02, 2010, 07:18:20 PM »
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  :'(
« Last Edit: November 02, 2010, 07:20:35 PM by Buzz »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: External link , rendering in portal
« Reply #5 on: November 02, 2010, 07:37:39 PM »
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?

Offline Buzz

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 1.1.8
  • SP Version: 2.3.2
Re: External link , rendering in portal
« Reply #6 on: November 04, 2010, 06:19:06 AM »
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:

Offline Buzz

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 1.1.8
  • SP Version: 2.3.2
Re: External link , rendering in portal
« Reply #7 on: November 06, 2010, 05:27:29 AM »
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 :

Code: [Select]
$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
« Last Edit: November 06, 2010, 06:29:52 AM by Nathaniel »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: External link , rendering in portal
« Reply #8 on: November 06, 2010, 06:36:03 AM »
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';
« Last Edit: November 07, 2010, 07:07:33 PM by Nathaniel »
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.

Offline Buzz

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 1.1.8
  • SP Version: 2.3.2
Re: External link , rendering in portal
« Reply #9 on: November 06, 2010, 07:28:47 AM »
Rly thx  :D , and indeed i needed to put the code in the  insert code style.  :-X

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: External link , rendering in portal
« Reply #10 on: November 07, 2010, 07:05:50 PM »
Code: [Select]
$current_action = ''rooster'';
Lol what?

Change to:

Code: [Select]
$current_action = '\'rooster\'';

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: External link , rendering in portal
« Reply #11 on: November 07, 2010, 07:07:54 PM »
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.

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: External link , rendering in portal
« Reply #12 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

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: External link , rendering in portal
« Reply #13 on: November 07, 2010, 07:39:12 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.