Creating new links in phpBB issues

STG related Support requests. Post site related support issues or questions about Star Trek Guide, or any of the tools or services on STG -- Not for phpBB Support --
Forum rules
Image
Post site related support issues or questions about phpBB Academy at Star Trek Guide, tools or STG services.
Post site feedback here as well.
Programming and general coding support or assistance should be requested in the Coding Assistance forums.

No phpBB Support in this forum

Re: Creating new links in phpBB issues

Postby wired076 » 10 Oct 2009, 22:44

I have made the changes as suggested to no avail.

I appreciate the help that you are giving me. Thank you.

My functions.php file is attached.

If you need anything else let me know.

I look forward to hearing back from you.

(Had to rename .php ext to .php.txt to upload)
Attachments
functions.php.txt
(125.91 KiB) Downloaded 68 times
I.T. Construct
STG Supporter
Please contact me via email/im for help at reasonable prices.
USA Based Web hosting
email: admin@itconstruct.com.au
- Visit http://www.itconstruct.com.au
wired076    
Supporter
Supporter
 
Posts: 494
Joined: 03 Feb 2009, 16:51
Location: Australia
Gender: Male
phpBB Knowledge: 5


Re: Creating new links in phpBB issues

Postby topdown » 10 Oct 2009, 22:58

Line 3635
Code: Select all
'S_USER_NOTICE'      => ($errno == E_USER_NOTICE) ? true : false)

should be
Code: Select all
'S_USER_NOTICE'      => ($errno == E_USER_NOTICE) ? true : false,
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3022
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9

Re: Creating new links in phpBB issues

Postby wired076 » 10 Oct 2009, 23:08

topdown wrote:Line 3635
Code: Select all
'S_USER_NOTICE'      => ($errno == E_USER_NOTICE) ? true : false)

should be
Code: Select all
'S_USER_NOTICE'      => ($errno == E_USER_NOTICE) ? true : false,


Thanks that fixed that error! However when I click on the link it shows {CONTACT} as the page url and a 404 error occurs after clicking link.

I have this code in overall_header.html for that section:

Code: Select all
      <ul>
     <!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
      <li id="menu_button1" style="width:60px;"><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}"><span>{L_SEARCH_ADV}</span></a></li>
     <!-- ENDIF -->
     <!-- IF not S_IS_BOT -->
     <!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED -->
      <li id="menu_button2" style="width:60px;"><a href="{U_REGISTER}"><span>{L_REGISTER}</span></a></li>
   
      <li id="menu_button3" style="width:60px;"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}"><span>{L_LOGIN_LOGOUT}</span></a></li>
     <!-- ENDIF -->
     <!-- ENDIF -->
     <!-- IF S_USER_LOGGED_IN -->
     <li id="menu_button11" style="width:60px;"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}"><span>{L_LOGIN_LOGOUT}</span></a></li>
     <!-- ENDIF -->
     <!-- IF not S_IS_BOT and S_DISPLAY_MEMBERLIST -->
      <li id="menu_button4" style="width:80px;"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"><span>{L_MEMBERLIST}</span></a></li>
     <!-- ENDIF -->
     <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
      <li id="menu_button5" style="width:80px;"><a href="ucp.php?i=167" title="Usergroups"><span>Usergroups</span></a></li>
      <li id="menu_button6" style="width:80px;"><a href="{U_PROFILE}" title="{L_PROFILE}"><span>{L_PROFILE}</span></a></li>
     <!-- IF S_DISPLAY_PM -->
     <li id="menu_button7" style="width:100px;"><a href="{U_PRIVATEMSGS}"><span>{PRIVATE_MESSAGE_INFO}</span></a></li>
     <!-- ENDIF -->
     <!-- ENDIF -->
     <li id="menu_button8" style="width:80px;"><a href="{U_GALLERY_MOD}" title="{L_GALLERY_EXPLAIN}"><span>{L_GALLERY}</span></a></li>
     <li id="menu_button9" style="width:60px;"><a href="{CONTACT}" title="Contact"><span>Contact</span></a></li>
     <li id="menu_button10" style="width:60px;">
      <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%40friendsnortheast%2eco%2euk&item_name=Friends%20Northeast&amount=1%2e00&no_shipping=0&no_note=1&tax=0&currency_code=GBP&lc=GB&bn=PP%2dDonationsBF&charset=UTF%2d8">
      <span>Donate</span></a></li>
    </ul>


Specifically:
Code: Select all
<li id="menu_button9" style="width:60px;"><a href="{CONTACT}" title="Contact"><span>Contact</span></a></li>
I.T. Construct
STG Supporter
Please contact me via email/im for help at reasonable prices.
USA Based Web hosting
email: admin@itconstruct.com.au
- Visit http://www.itconstruct.com.au
wired076    
Supporter
Supporter
 
Posts: 494
Joined: 03 Feb 2009, 16:51
Location: Australia
Gender: Male
phpBB Knowledge: 5

Re: Creating new links in phpBB issues

Postby topdown » 10 Oct 2009, 23:45

You PHP for the CONTACT in the functions
this line that you have on line 3636
Code: Select all
'CONTACT'           => append_sid("{$phpbb_root_path}contact.$phpEx"),


Should be in the head template vars
Adding it after
Code: Select all
      'U_GALLERY_MOD'         => append_sid("{$phpbb_root_path}gallery/index.$phpEx"),
      'L_ONLINE_EXPLAIN'      => $l_online_time,


eg
Code: Select all
      'U_GALLERY_MOD'         => append_sid("{$phpbb_root_path}gallery/index.$phpEx"),
      'L_ONLINE_EXPLAIN'      => $l_online_time,
      'CONTACT'           => append_sid("{$phpbb_root_path}contact.$phpEx"),
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3022
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9

Re: Creating new links in phpBB issues

Postby Obsidian » 10 Oct 2009, 23:48

topdown wrote:I just noticed this code that I posted has a syntax error
Code: Select all
        'NEW_LINK'                => append_sid($phpbb_root_path} . 'new_folder/'),  


should be
Code: Select all
        'NEW_LINK'                => append_sid($phpbb_root_path . 'new_folder/'),  


Sorry


Jeff, I think you were correct there. You were using double-quotes IIRC, which means you need to be using braces for the variable names. ;)
うるさいうるさいうるさい!

StopForumSpam Spam Reporting Database
Giving xrumer and friends a great big "screw you" since 2007.
User avatar
Obsidian    
Supporter
Supporter
 
Posts: 2250
Joined: 04 Mar 2008, 23:35
Gender: Male
phpBB Knowledge: 10

Re: Creating new links in phpBB issues

Postby wired076 » 11 Oct 2009, 04:56

topdown wrote:You PHP for the CONTACT in the functions
this line that you have on line 3636
Code: Select all
'CONTACT'           => append_sid("{$phpbb_root_path}contact.$phpEx"),


Should be in the head template vars
Adding it after
Code: Select all
      'U_GALLERY_MOD'         => append_sid("{$phpbb_root_path}gallery/index.$phpEx"),
      'L_ONLINE_EXPLAIN'      => $l_online_time,


eg
Code: Select all
      'U_GALLERY_MOD'         => append_sid("{$phpbb_root_path}gallery/index.$phpEx"),
      'L_ONLINE_EXPLAIN'      => $l_online_time,
      'CONTACT'           => append_sid("{$phpbb_root_path}contact.$phpEx"),


Thanks to both Obsidian and Topdown for the help on this issue!

This has now been resolved and is something that I will be remembering for future use! This is a cool feature of phpBB! :P
I.T. Construct
STG Supporter
Please contact me via email/im for help at reasonable prices.
USA Based Web hosting
email: admin@itconstruct.com.au
- Visit http://www.itconstruct.com.au
wired076    
Supporter
Supporter
 
Posts: 494
Joined: 03 Feb 2009, 16:51
Location: Australia
Gender: Male
phpBB Knowledge: 5

Previous

Return to STG Support

Who is online

Users browsing this forum: Ezooms Bot, rajivai04 and 3 guests