Contact Admin

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Contact Admin

Post by david63 »

Are you looking at the .xml file in the templates folder for either prosilver or subsilver2?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
grogo67
Registered User
Posts: 4
Joined: Sat Sep 08, 2007 4:21 pm
Location: Kansas City

Re: Contact Admin

Post by grogo67 »

Ah, I have the Black Pearl style loaded so I did not look at those files! I tried to make the same changes to index_body.html in the /styles/black_pearl/template folder but unfortunately it is still not working. I want to keep this style so I guess I'll just have to do without as I do not know enough about HTML or PHP to make it work.... :|
User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: Contact Admin

Post by WhiteWolfSix »

If you made edits to your black_pearl template, upload edited files to server and do not forget to clean cache!
Image
WhiteWolfSix (WW6)
ABXGuy
Registered User
Posts: 18
Joined: Tue Nov 16, 2004 3:02 pm

Re: Contact Admin

Post by ABXGuy »

Nice and easy mod allowing for user to contact Admin. I added the contact link in the Overall Header to display with the other links I have there with the fisubsilver style.

While looking at the necessary changes I noticed this, a not needed trailing anchor tag in the changes for the styles/subsilver2/template/index_body.html, in the following line.
<td class="cat" colspan="2"><h4>{L_HAVING_A_PROBLEM}</a></h4></td>
legendrules
Registered User
Posts: 10
Joined: Wed Jan 30, 2008 5:21 am

Re: Contact Admin

Post by legendrules »

hii..
I have done all the edits required for the mod but nuthin cumin up in the site... :(
plzzzz help :!:
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Contact Admin

Post by david63 »

have you edited your template(s)?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
legendrules
Registered User
Posts: 10
Joined: Wed Jan 30, 2008 5:21 am

Re: Contact Admin

Post by legendrules »

i didn't tried with prosilver n subsilver..
i just did it directly with glacier theme...
can u tell me wht all changes do i exactly need to make in this template...?
thnx.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Contact Admin

Post by david63 »

legendrules wrote:i just did it directly with glacier theme...
can u tell me wht all changes do i exactly need to make in this template...?
Sorry but I do not know that theme.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
nonegiven
Registered User
Posts: 121
Joined: Tue Apr 24, 2007 4:42 am

Re: Contact Admin

Post by nonegiven »

Just out of interest, how do you have this link appear on every displayed page whether index, forum or topic?

I tried moving it to the overall footer but it only appears when the Index page shows, the rest of the time is blank.

I tried placing it on viewforum.php, viewtopic.php or viewonline.php and it seems to break them badly.

The footer would be a great place to have it. Can anyone give me any pointers on how?

TIA. I will have a try later myself ...
User avatar
walkingdead
Registered User
Posts: 38
Joined: Thu Apr 12, 2007 9:41 am

Re: Contact Admin

Post by walkingdead »

nonegiven wrote:Just out of interest, how do you have this link appear on every displayed page whether index, forum or topic?

I tried moving it to the overall footer but it only appears when the Index page shows, the rest of the time is blank.

I tried placing it on viewforum.php, viewtopic.php or viewonline.php and it seems to break them badly.

The footer would be a great place to have it. Can anyone give me any pointers on how?

TIA. I will have a try later myself ...
have your tryed Purge the cache in ACP
nonegiven
Registered User
Posts: 121
Joined: Tue Apr 24, 2007 4:42 am

Re: Contact Admin

Post by nonegiven »

Yes ... and it should would be good to have an instant "developer's button" to purge and refresh in one for the number of times I have done it.

Does not work. It is something in the code, or that needs to be coded for subsequent pages.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Contact Admin

Post by david63 »

If anyone wants to have the link on a page, or pages, other that the Index page then you will need to put the index.php edits in the appropriate script(s) for that page. ie if you wanted the link to be in the header then you will need to put the edits in the page_header() function in functions.php.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
nonegiven
Registered User
Posts: 121
Joined: Tue Apr 24, 2007 4:42 am

Re: Contact Admin

Post by nonegiven »

That does work, thanks. Here are the specifics to put it in the footer;

Find:

Code: Select all

	$template->assign_vars(array(
		'DEBUG_OUTPUT'			=> (defined('DEBUG')) ? $debug_output : '',
		'TRANSLATION_INFO'		=> (!empty($user->lang['TRANSLATION_INFO'])) ? $user->lang['TRANSLATION_INFO'] : '',
After add:

Code: Select all

	$template->assign_vars(array(
		'DEBUG_OUTPUT'			=> (defined('DEBUG')) ? $debug_output : '',
		'TRANSLATION_INFO'		=> (!empty($user->lang['TRANSLATION_INFO'])) ? $user->lang['TRANSLATION_INFO'] : '',
// Contact Admin mod
	'U_ADMIN_CONTACT'			=> '<a href="mailto:' . $config['board_email'] . '?subject=' . $user->lang['CONTACT_SUBJECT'] . '">' . $user->lang['CONTACT_ADMIN'] . '</a>',
The end result should look like this:

Code: Select all

	$template->assign_vars(array(
		'DEBUG_OUTPUT'			=> (defined('DEBUG')) ? $debug_output : '',
		'TRANSLATION_INFO'		=> (!empty($user->lang['TRANSLATION_INFO'])) ? $user->lang['TRANSLATION_INFO'] : '',
// Contact Admin mod
	'U_ADMIN_CONTACT'			=> '<a href="mailto:' . $config['board_email'] . '?subject=' . $user->lang['CONTACT_SUBJECT'] . '">' . $user->lang['CONTACT_ADMIN'] . '</a>',
		'U_ACP' => ($auth->acl_get('a_') && $user->data['is_registered']) ? append_sid("{$phpbb_root_path}adm/index.$phpEx", false, true, $user->session_id) : '')
		
	);
Which places the contact admin email link before the 'delete cookies' link.

Of course, on retrospect, I suppose it could have been done with a simple mailto: link? May be ...

Anyway, this works.
User avatar
kicky
Registered User
Posts: 166
Joined: Wed Feb 27, 2008 11:49 am

Re: Contact Admin

Post by kicky »

Hi, I edited index.php and common.php rightly, but nothing change in my forum.
I had purge cache also, but still nothing change.

Please help me :D
Be a part of solution better than be part of problems
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Contact Admin

Post by david63 »

Have you done the edits in your template files?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here

Return to “[3.0.x] MOD Database Releases”