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: 315
  • 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]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: forums  (Read 5530 times)

0 Members and 1 Guest are viewing this topic.

Offline sattninja

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
forums
« on: December 02, 2009, 10:45:47 PM »
ok i installed simple portal and live it i have found my way sround pretty easily however there is no clear way to get to my forums i have to make a block with the top forums then it will list my forums then i can click on that the click another link to take me to my forums i am trying to be clear as i can is there a way to either add a button on top that says forums or some kind of block i have to be missing something here

please help

thanks

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: forums
« Reply #1 on: December 03, 2009, 01:12:26 AM »
Yes, by clicking the 'forum' button in your tab list. :)

Offline sattninja

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: forums
« Reply #2 on: December 03, 2009, 02:14:28 AM »
i am not using the default theme there is no forum button

Offline Marcus

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: forums
« Reply #3 on: December 03, 2009, 02:16:44 AM »
Then you'll need to add a button in your theme's index template to the following URL.

http://yourdomain.com/index.php?action=forum

Or you can add a link using HTML in a block.

Offline sattninja

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: forums
« Reply #4 on: December 03, 2009, 02:18:41 AM »
i am pretty much a noob at this can you give me some details

Offline Marcus

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: forums
« Reply #5 on: December 03, 2009, 02:22:03 AM »
I can give you the HTML for adding a button in a block, but it would probably be best to add the button to your menu.

Edit: Take a look here.  There is a very good tutorial.  That is assuming you are using version 1.1 as stated in your profile.  Depending on your theme, the template may be different.  You might also search the thread for your theme on Simplemachines if that is where you got it.

Good luck.
« Last Edit: December 03, 2009, 02:29:50 AM by Marcus »

Offline sattninja

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: forums
« Reply #6 on: December 03, 2009, 02:36:14 AM »
yes that is where i got is it is called 2nd i am looking there now but no luck yetcould you give me the html code for now i can atrtach my php if you could take a look at it

i appreciate the help

Offline Marcus

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: forums
« Reply #7 on: December 03, 2009, 02:59:49 AM »
I am fairly new to doing all of this.  I just took a look at your template file, and I see some of the code for the menu is repeated.   You would probably be better off waiting for someone with more experience to help you.

Did you take a look at that tutorial? 

http://docs.simplemachines.org/index.php?topic=564.0

Offline sattninja

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: forums
« Reply #8 on: December 03, 2009, 03:48:38 AM »
ok i got it with the link you sent me problem is it is just a word no button how do i make it a button man i love this theme but how stupid is it that they didnt build a forum button into it

Offline Chas

  • Jr. Member
  • **
  • Posts: 74
  • Gender: Male
    • Fifty Plus Forum
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: forums
« Reply #9 on: December 03, 2009, 04:57:30 AM »
Before you installed SimplePortal, the "HOME" button took you to the forum page. When SimplePortal is installed the Home button takes you to the portal "Home" page, your forum page can be found at www. myforumname/forumfolder/index.php.

What you need to do is use the instructions in the link to edit the code in the index.template.php file of your forum for whatever theme you're using to copy the code for your current Home or Help button and convert this to point to the Forum page. The instructions are clear there.

Make a backup copy of each theme's index.template.php and then edit each one using a plain text editor or PHP text editor (Notepad2 for Windows is good).

Once you have edited each theme's index.template.php file you then upload them back to your server (ftp probably) and your forum button will appear.

Remember BACKUP the originals before you change anything just in case you get the code wrong and you get errors.

HTH
Chas
PS have done this numerous times on different themes.

Offline sattninja

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: forums
« Reply #10 on: December 03, 2009, 05:04:31 AM »
the instruction i follwed did the now i have

home,profile,members,search,message etc button anf i do have forum now in that list and it works takes you to the forum but it is only text not a button like the rest i have been pouring over this code and i think i am close i managed to make 2 home button lol but everything i try i cannot get the forum text to become a button

Offline sattninja

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.10
  • SP Version: 2.3.1
Re: forums
« Reply #11 on: December 03, 2009, 05:42:53 AM »
yeah i am lost i have tried everyting i can delete buttons off the page i can duplicate buttons off the page but i cannot get a forum button on the page just text that takes you right to the forum can some one please tell me what the hell to do i deleted my help button cause i dont want it so the forum text is the last in the list here is what it looks like my php

Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
 { echo '<li', $current_action == 'calendar' ? ' class="current"' : '', '><a href="', $scripturl, '?action=calendar"><b>' , $txt['calendar24'] , '</b></a></li>';

;}else{ echo'';}
   // Show the [Forum] button.
   echo ($current_action=='Forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'Forum' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=Forum">Forum</a>
            </td>' , $current_action == 'Forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';




}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td> </td>';

echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode('  |  ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}

the home button string was at the bottom i deleted it and the home button went away

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: forums
« Reply #12 on: December 10, 2009, 04:25:55 AM »
The best tutorial for adding a 'Forums' button for SimplePortal is this one: General Custom Theme Tutorial

Have a go at following that, if you can't get it to work then attach your index.template.php file to your next post.

Moved to the Themes and Graphics board.
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.