Advertisement:

Need Help Customizing Theme

Aloittaja DownloadPs3, toukokuu 19, 2011, 10:25:28 IP

« edellinen - seuraava »

DownloadPs3

Hi, i am currently designing a website and i need a theme for the forum that will match the rest of the website. You can view the site here: http://testptc.net76.net/   (this is just a testing site to get everything set up and working before i launch the real site.

I was wondering if someone could either make a theme or give me a link to the best matching theme that i could make a few changes to.

Also how would i go about changing the nav bar so that Home brings me to the home page of the website and then add a tab called "Forum Home" That will bring me to the home page of the forum.


P.S. i am on RC5
Check Out My Site At myfreespeach.co.cc

mashby

Well, I cannot really connect to your site on this work computer due to some sort of security warning:
LainaaThe URL that you are attempting to access is a potential security risk. Trend Micro OfficeScan has blocked this URL in keeping with network security policy.
Now, I have no idea what is causing that.

But /Sources/Subs.php is where your menu is being generated. That's the place to edit to make your menu do what you need it to do.
Always be a little kinder than necessary.
- James M. Barrie

DownloadPs3

It is probably to do with the host the website is stored on. I'm currently using 000webhost as its free and i can test everything out on it before i launch the actual site.

I will try editing the subs file and see if i can get it working.


Unrelated but what do you think is a good host? I was thinking i may go to blue host.
Check Out My Site At myfreespeach.co.cc

DownloadPs3

Lainaus käyttäjältä: DownloadPs3 - toukokuu 19, 2011, 10:47:34 IP
It is probably to do with the host the website is stored on. I'm currently using 000webhost as its free and i can test everything out on it before i launch the actual site.

I will try editing the subs file and see if i can get it working.


Unrelated but what do you think is a good host? I was thinking i may go to blue host.

Where in the Subs.php folder is that? I have the firebug addon in firefox and using that addon i can modify the menu and get it how i want but i cant seem to find the stuff im changing inside the subs folder. And firebug wont tell me what file its in or where in the file
Check Out My Site At myfreespeach.co.cc

mashby

Look for this in that file:
// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
That's where the magic happens.

As far as hosting goes, I'm no expert on that but there is a board around it.

Free hosts are great for doing initial research much like you are doing, but I have to say paying for hosting is the way to go when you're ready for prime time. Find a host that meets the needs of your site. The more traffic you expect, the better hosting and thus more money you should expect to dole out.
Always be a little kinder than necessary.
- James M. Barrie

DownloadPs3

I found where you are talking about however im not sure what to modify in that.

In fire bug it says:

<li id="button_help">
<a href="http://forums.testptc.net76.net/index.php?action=help" title="Help">
<span>Help</span>

If i rename the <span>Help</span> to <span>Home</span>
Then change <a href="http://forums.testptc.net76.net/index.php?action=help" title="Help">    to  <a href="http://testptc.net76.net" title="Home">

It does exactly what i want and changes the menu buttons name to home and links to the home page of the website when i click it. I just cant find out what file thats in to make the actual change to the website.

(If your wondering im using joomla as a website and i have a forum tab in the nav bar that links to the forum sub domain. I want the home tab to link to the home page of the joomla part of the site and then add a tab thats called Forum Home that brings you to the forum home page.    I thought i would explain that seeing as you cant view the website.)
Check Out My Site At myfreespeach.co.cc

Sir Osis of Liver

#6

Doesn't work that way.  Firebug is showing you the code the browser is getting from the php compiler, which doesn't actually exist in that form in the SMF code.

Go to /Sources/Subs.php and find this -



function setupMenuContext()
{
global $context, $modSettings, $user_info, $txt, $scripturl;

// Set up the menu privileges.
$context['allow_search'] = allowedTo('search_posts');
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
$context['allow_edit_profile'] = !$user_info['is_guest'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups', 'profile_title_own', 'profile_title_any'));
$context['allow_memberlist'] = allowedTo('view_mlist');
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
$context['allow_moderation_center'] = $context['user']['can_mod'];
$context['allow_pm'] = allowedTo('pm_read');

$cacheTime = $modSettings['lastActive'] * 60;

// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),



You can change any of the buttons by doing this -



'help' => array(
'title' => 'Home',
'href' => 'http://testptc.net76.net',
'show' => true,
'sub_buttons' => array(
),
),



You may have to tinker with the formatting, but get the button working first.

When in Emor, do as the Snamors.
                              - D. Lister

DownloadPs3

Lainaus käyttäjältä: Krash. - toukokuu 20, 2011, 12:05:22 AP
Doesn't work that way.  Firebug is showing you the code the browser is getting from the php compiler, which doesn't actually exist in that form in the SMF code.

Got to /Sources/Subs.php and find this -



function setupMenuContext()
{
global $context, $modSettings, $user_info, $txt, $scripturl;

// Set up the menu privileges.
$context['allow_search'] = allowedTo('search_posts');
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
$context['allow_edit_profile'] = !$user_info['is_guest'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups', 'profile_title_own', 'profile_title_any'));
$context['allow_memberlist'] = allowedTo('view_mlist');
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
$context['allow_moderation_center'] = $context['user']['can_mod'];
$context['allow_pm'] = allowedTo('pm_read');

$cacheTime = $modSettings['lastActive'] * 60;

// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),



You can change any of the buttons by doing this -



'help' => array(
'title' => 'Home',
'href' => 'http://testptc.net76.net',
'show' => true,
'sub_buttons' => array(
),
),



You may have to tinker with the formatting, but get the button working first.

Thanks ill try this
Check Out My Site At myfreespeach.co.cc

Advertisement: