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


Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Help button on DarkModern with smp / smf (latest)?

Started by jimbouk1977, April 12, 2010, 07:40:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jimbouk1977

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

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


jimbouk1977

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


cme1st2302

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

jimbouk1977

#3
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


iSatisfi

Ok in your theme open the file index.template.php and search (ctrl+f) for
Quoteecho '<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 :)

jimbouk1977

#5
Quote from: iSatisfi on April 13, 2010, 01:59:21 AM
Ok in your theme open the file index.template.php and search (ctrl+f) for
Quoteecho '<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)


cme1st2302

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:

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

jimbouk1977

#7
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

#
// 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 ?


Renegd98

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

jimbouk1977

Right so I looked in there and found

),
'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~   


jimbouk1977

Sorted the Help button / page on my own :) but could still do with some help as to why my E-mail will not send !. :|


jimbouk1977

Now sorted the email out as well on my own its easy this aint it  :D :clown: lol (joke)