Help with Mod

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

Re: Help with Mod

Postby pallindrome » 09 Apr 2011, 03:20

Will try it buddy.
pallindrome
Cadet IV
Cadet IV
 
Posts: 49
Joined: 26 Mar 2011, 00:58
Gender: Male
phpBB Knowledge: 5




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Help with Mod

Postby pallindrome » 09 Apr 2011, 03:24

Buddy can't find those lines :( both suggested by spaceace and sniper.

Can't find :
Code: Select all
<div id="banner">
   <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
</div>
pallindrome
Cadet IV
Cadet IV
 
Posts: 49
Joined: 26 Mar 2011, 00:58
Gender: Male
phpBB Knowledge: 5

Re: Help with Mod

Postby Sniper_E » 09 Apr 2011, 08:14

This is what you posted: viewtopic.php?p=127573#p127573

That is the overall_header of yours from your style. You can't find that line?
It's right here in your template.
Code: Select all
<div id="wrapper">

<div id="banner">
   <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
</div>

<div id="header">
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6986
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: Help with Mod

Postby pallindrome » 09 Apr 2011, 11:50

The code is working perfectly buddy but still I have a problem , the original layout of the theme is distorted :
Image
pallindrome
Cadet IV
Cadet IV
 
Posts: 49
Joined: 26 Mar 2011, 00:58
Gender: Male
phpBB Knowledge: 5

Re: Help with Mod

Postby Sniper_E » 09 Apr 2011, 12:13

Well, it's about placing it in your style to fit. I don't have that style to play with to help you.
I don't see your header image in that snapshot. Did it take that out also?

Maybe add it in your banner instead... like this.
Code: Select all
<div id="wrapper">

<div id="banner">
      <table width="100%" cellspacing="0">
      <tr>
             <td width="100%">
                <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
             </td>
      </tr>
<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
      <tr>
             <td width="100%" align="right">
                <form action="{U_SEARCH}" method="post">
                <input name="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
                <input value="{L_SEARCH}" type="submit" /><br />
                <label for="gSearch">{L_SEARCH_GOOGLE} <input class="radio" style="vertical-align: middle;" name="gsearch" type="checkbox" id="gSearch" /></label><br />
                <a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
                </form>
             </td>
          </tr>
<!-- ENDIF -->
      </table>
</div>

<div id="header">

You just have to play with it. I don't have that mod or that style. Hope that works.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6986
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: Help with Mod

Postby pallindrome » 10 Apr 2011, 01:34

This is my original header without the google search added in it:
Image

After adding the above code , it is still distorted and it has been overlapped and the checkbox is also not working :(
It looks like this :
Image
pallindrome
Cadet IV
Cadet IV
 
Posts: 49
Joined: 26 Mar 2011, 00:58
Gender: Male
phpBB Knowledge: 5

Re: Help with Mod

Postby Sniper_E » 10 Apr 2011, 02:56

OK, put it in a <div> of it's own and see how it lays out.

Code: Select all
<div id="wrapper">

<div id="banner">
   <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
</div>

<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
<div>
      <table width="100%" cellspacing="0">
          <tr>
             <td width="100%" align="right">
                <form action="{U_SEARCH}" method="post">
                <input name="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
                <input value="{L_SEARCH}" type="submit" /><br />
                <label for="gSearch">{L_SEARCH_GOOGLE} <input class="radio" style="vertical-align: middle;" name="gsearch" type="checkbox" id="gSearch" /></label><br />
                <a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
                </form>
             </td>
          </tr>
      </table>
</div>
<!-- ENDIF -->

<div id="header">
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6986
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: Help with Mod

Postby pallindrome » 10 Apr 2011, 03:49

Putting the above code gives you like this and the Tabs are moved and an orange button is appearing on the theme , and I played everything with it , tried everything but no way :( It was a failure , but it works perfectly for subsilver2. Please help guys. :)

Image
pallindrome
Cadet IV
Cadet IV
 
Posts: 49
Joined: 26 Mar 2011, 00:58
Gender: Male
phpBB Knowledge: 5

Re: Help with Mod

Postby spaceace » 10 Apr 2011, 09:21

the problem is that the style has an image for the whole header and also a logo image positioned over it. if i get a chance today, i'll install this style and play with the mod to see if i can come up with something. or if Sniper_E gets it solved before me, that's even better ;)
User avatar
spaceace
Supporter
Supporter
 
Posts: 263
Joined: 14 Feb 2008, 20:44
Location: Ontario, Canada
Gender: Male
phpBB Knowledge: 5

Re: Help with Mod

Postby pallindrome » 10 Apr 2011, 11:22

Thanks buddy for helping me out , you guys are really nice and great!
pallindrome
Cadet IV
Cadet IV
 
Posts: 49
Joined: 26 Mar 2011, 00:58
Gender: Male
phpBB Knowledge: 5

PreviousNext

Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: Ezooms Bot, Googlebot, Majestic-12 [Bot] and 10 guests

cron