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

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Help button on DarkModern with smp / smf (latest)?  (Read 9745 times)

0 Members and 1 Guest are viewing this topic.

Offline jimbouk1977

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Help button on DarkModern with smp / smf (latest)?
« on: April 12, 2010, 07:40:11 PM »
Hi guys im very new to all this so not really got a clue what im doing ive got the site looking kind of how I want & I know about blocks & so on but I have the same problem this guy was having  http://simpleportal.net/index.php?topic=4566.msg31258#msg31258  now i added a response in there probably not the right thing to do but could you read what ive added & let me know

Basicly what I want to do is get rid of the help button & get the forum button to show on all themes now I was asking if I nick that attachment  from that topic will it work with all, or just that theme as I like the darker colour themes but when I tried one out it got rid of the forum button.

Another thing. might be on the wrong board(with this) but i installed the advance contact form but I cant get the messages out now my host has give me some lines of script but I don't know where to put them & as i say im a complete novice so I don't want to break my site before ive got it running  :'(

the lines they gave me are

Code: [Select]
removed by poster
Thanks in advance for all replies im grateful for the help
Jim

P.S. i have read the sticky on custom themes but as I said im a novice & I don't want to ruin anything I might try it when I have a bit more experience but im a 2 day old novice with PHP

UPDATE:-

Themes I like are:-  blackRain V2 (tutorial has a broken link) ,  DarkModern , stoncurve , ModernDark64 , Ravon
« Last Edit: April 15, 2010, 06:33:46 PM by jimbouk1977 »


Offline jimbouk1977

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Forum button on all themes with smp / smf ?
« Reply #1 on: April 12, 2010, 08:26:27 PM »
Just noticed some of these already work my bad :)

so do I will just need to know how to get rid of the help page now I think  8)  Oh yeah and the message thing  :-[


Told you i was a noob


Offline cme1st2302

  • Full Member
  • ***
  • Posts: 117
  • Gender: Male
    • East Coast Astro
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Forum button on all themes with smp / smf ?
« Reply #2 on: April 12, 2010, 11:20:43 PM »
Basically you would have to add the code for the forum button on all the themes you would like to use.  If you are using SMF 1.1.X then this would be done in the index.template.php file for the theme.  If you need help adding the button and removing the other button just attach that file and I will be more than happy to help you out.  Make sure you give me a link to the forum as well.

Chris
Admin

He who waits for perfect conditions sees nothing!!
SMF Version: 1.1.11
SimplePortal Version: 2.3.1

Offline jimbouk1977

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Forum button on all themes with smp / smf ?
« Reply #3 on: April 12, 2010, 11:36:39 PM »
ive gone with the theme darkmodern as it already has the forum button on it & I like the look of it I just need to get rid of the help button now & sort out why my emails are not being sent as my host gave me that info but wont help any further as im on a trial package. you see ive got a site already with a separate forum but want it all under one roof with unlimited customisation (which I don't have at the moment) so the site is on a trial domain untill I get it how I want then I will transfer my domain & shut down my old sites.

So in short just need to get rid of help button & page (can I do it by just removing the php of my server ? or will the button stay & link to nothing if so I need to find out what part of the script i need to remove.

once again thanks for all help & I love the look & operation of this product & being open source it's great  8)

P.S. not sure if it shows but smf = 2.0 RC3  & Smp = 2.3.2
« Last Edit: April 12, 2010, 11:42:16 PM by jimbouk1977 »


Offline iSatisfi

  • Just Registered
  • Posts: 1
  • SMF Version: 1.1.11
  • SP Version: None
Re: Forum button on all themes with smp / smf ?
« Reply #4 on: April 13, 2010, 01:59:21 AM »
Ok in your theme open the file index.template.php and search (ctrl+f) for
Quote
echo '<li><a' , $current_action=='home'

Now change:
Quote
            // Show the [home] button.
            echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

            // Show the [help] button.
            echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

to...

Quote
            // Show the [home] button.
            echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';
            
            // Show the [forum] button.
            echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl, '?action=forum"><span>' , $txt['sp-forum'] , '</span></a></li>';

            // Show the [help] button.
            echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';


I hope I helped :)

Offline jimbouk1977

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Forum button on all themes with smp / smf ?
« Reply #5 on: April 13, 2010, 03:42:20 AM »
Ok in your theme open the file index.template.php and search (ctrl+f) for
Quote
echo '<li><a' , $current_action=='home'

Now change:
Quote
            // Show the [home] button.
            echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

            // Show the [help] button.
            echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';



to...

Quote
            // Show the [home] button.
            echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';
            
            // Show the [forum] button.
            echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl, '?action=forum"><span>' , $txt['sp-forum'] , '</span></a></li>';

            // Show the [help] button.
            echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';


I hope I helped :)


Is this to make the Help button / page go or to change the help button into the forum button ?
As i now have the forum button showing & just need to get rid / delete help button & page !.


Also i still really need to sort the emails out any ideas on where i need to drop the script in ? as they(my host) wont give me the smtp details & my englishclan.co.uk is with gmail so i need to sort it with them(my host streamline.net) & then forward to my gmail address (@englishclan.co.uk)
« Last Edit: April 13, 2010, 06:13:32 AM by jimbouk1977 »


Offline cme1st2302

  • Full Member
  • ***
  • Posts: 117
  • Gender: Male
    • East Coast Astro
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Forum button on all themes with smp / smf ?
« Reply #6 on: April 13, 2010, 04:54:27 AM »
Instead of deleting the help button all together just comment it out.  This will keep the code but will not show the button.  That way if you ever decide to put it back up all you have to do is remove the comments.  You do it but surrounding the code with /* & */.  So use this for the help button:

Code: [Select]
/*
// Show the [help] button.
            echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';
*/

Hope this helps,
Chris
Admin

He who waits for perfect conditions sees nothing!!
SMF Version: 1.1.11
SimplePortal Version: 2.3.1

Offline jimbouk1977

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Forum button on all themes with smp / smf ?
« Reply #7 on: April 13, 2010, 06:12:20 AM »
Dont know if im just being stuid but i can not see that in my them index.php ?

ie:-  smf theme / darkmodern/index.php

Searched theme by copying your code & ctrl + F & it dont show ? now am i going mental or blind ? :(

the only thing in the theme i could find was this

Code: [Select]
#
// Show all the relative links, such as help, search, contents, and the like.
#
echo '
#
//<link rel="help" href="', $scripturl, '?action=help" />
#
<link rel="search" href="', $scripturl, '?action=search" />
#
<link rel="contents" href="', $scripturl, '" />';
Is that it ?
« Last Edit: April 13, 2010, 06:17:54 AM by jimbouk1977 »


Offline Renegd98

  • Semi Newbie
  • *
  • Posts: 49
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Forum button on all themes with smp / smf ?
« Reply #8 on: April 13, 2010, 08:16:19 AM »
Themes are not doen the same way in SMF 2.x as they are in SMF 1.x.. All the information for most themes in SMF 2.x are in the sources/subs.php

Offline jimbouk1977

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Forum button on all themes with smp / smf ?
« Reply #9 on: April 13, 2010, 05:25:54 PM »
Right so I looked in there and found

Code: [Select]
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),

Tried changing True to False & that didn't work so how is it done ? tried putting /* code */  before & after that didn't work  now am I being dumb or what please if you know how to stop it showing on the latest versions of both SMF & SMP please Help  ironic I need help in removing the Help button !.

i do have sub.php & sub.php~   


Offline jimbouk1977

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Help button on DarkModern with smp / smf (latest)?
« Reply #10 on: April 15, 2010, 04:54:42 PM »
Sorted the Help button / page on my own :) but could still do with some help as to why my E-mail will not send !. :|


Offline jimbouk1977

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Help button on DarkModern with smp / smf (latest)?
« Reply #11 on: April 15, 2010, 06:32:56 PM »
Now sorted the email out as well on my own its easy this aint it  :D :clown: lol (joke)