11
hydrO
Re: Xcgal Titles
  • 2006/4/5 10:01

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


I have done this on my website . Here is a little modified code to put in the <head> section of your theme.html.

Quote:

<{if $xoops_pagetitle|truncate:5:""=="Photo" }>
<title><{$xoops_pagetitle}> -<{$pic_title}> - <{$xoops_sitename}></title>

<meta name..........etc


Ofcourse you can interchange <{$xoops_pagetitle}> with $pic_title to place it before everything.
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



12
hydrO
Re: Problem with Javascripts in Newbb in IE
  • 2006/4/5 9:54

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


Does anyone know if it is possible to detect IE using php? if so please let me know. I want to disable those javascripts strictly for IE Only.
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



13
hydrO
Re: Problem with Javascripts in Newbb in IE
  • 2006/3/30 6:45

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


If anyone was looking for this info, I worked it out using PHP If function.

Here is what i did.

Before putting the script on my header I added a statement to check if the selected module is Newbb( forum)and, end the <head> tag if its the Forum.


<{if $xoops_pagetitle|truncate:5:""=="Forum" }>
</head>

<{else}>
..{java script goes here}...

</script>
</head>
<{/if}>
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



14
hydrO
Re: Problem with Javascripts in Newbb in IE
  • 2006/3/26 12:44

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


Hi I have searched through the whole website and I could't find a solution to this problem. I don't even think anyone else had mentioned about this problem in the forum.

I have included XOOPS module header in my theme, and everything works pretty fine in Firefox. The only thing is that this Javascript is causing some conflicts with Newbb2 contents in IE. (atleast thats what I could think of).

Right now I am just looking for a way to perhaps disable this script when it comes to Newbb2...
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



15
hydrO
Problem with Javascripts in Newbb in IE
  • 2006/3/26 12:14

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


Hi.

I am developing 3 column based theme using CSS. I have a javascript in my theme.html which adjusts the height of the layout inorder to make the footer visible only at the bottom.

Here is the particular Javascript :

<script type="text/javascript" src="<{$xoops_url}>/themes/mytheme/x.js"></script>
<script type="text/javascript">
function adjustLayout()
{
// Get natural heights
var cHeight = xHeight("content");
var lHeight = xHeight("leftside");
var rHeight = xHeight("rightside");

// Find the maximum height
var maxHeight =
Math.max(cHeight, Math.max(lHeight, rHeight));

// Assign maximum height to all columns
xHeight("content", maxHeight);
xHeight("left", maxHeight);
xHeight("right", maxHeight);

// Show the footer
xShow("footer");
}



window.onload = function()
{
xAddEventListener(window, "resize",
adjustLayout, false);
adjustLayout();
}
</script>


However everything works fine except when it comes to viewing Newbb module in IE. The drop down CSS menus in Newbb fails to show up in IE.

I have figured out that this problem in IE is caused by the javascript that I am using to adjust the layout. When I remove this script from the theme.html, the drop down menus in Newbb2 does appear.

But I definitely would need that javascript to be included in the theme file for all the other modules. I would like to see if there is a way I can come around with this problem.

Perhaps with a PHP or a Javascript code that can disable this particular script when Newbb2 loads?

Would be great if someone can show me a way to get around with this.
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



16
hydrO
Re: Error with Newbb 2: Forums not displayed under Category Names and bits of image tag displayed
  • 2006/3/24 17:09

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


I have had the same problem too. But I wasn't using the default XOOPS Template set when I did the upgrade.

So it worked when I changed the template set to default.
If it doesn't work you might wanna clear templates_c folder and do a system and newbb module update.
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



17
hydrO
Re: Ajax in Xoops Template
  • 2006/3/16 14:38

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


Hi Can you provide details on how you implemented AJAX on xoops? This would be really helpful .Thanx
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



18
hydrO
Seperate block style for Mainmenu
  • 2006/3/16 14:26

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


Hi I am trying to make a theme using CSS and am having difficulty rendering a seperate style for XOOPS Mainmenu item.

I don't know how to explain this well, so I am gonna paste codes in here.

In theme.htm file I have the following code for leftside blocks.

<div id="leftside"><{foreach item=block from=$xoops_lblocks}><div class="misc_box"><span 
class="menu_heading"><{$block.title}></span><{$block.content}></div><{/foreach}>
</
div>


But the problem is that, when the output is displayed XOOPS Mainmenu is always inside another box ("misc_box". I don't want Mainmenu to be inside one of the boxes, I want it to have a style of its own.

I will put the CSS styles for both these items.

.misc_box {
    
width147px;
    
margin10px;
    
border-size1px;
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size11px;
    
font-weightnormal;
    
background-imageurl(images/bg-misc-box.gif);
    
background-repeatrepeat-x;
    
padding3px 0px 1px 3px;
    
border1px solid #0C8BB5;
}


//// this one is for mainmenu

.mainmenu {
    
margin4px;
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size11px;
    
font-weightbold;
        
color#003300;
    
}


Has anyone got an idea? I have tried searching through forum but couldn't find anything.

Thanx!
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



19
hydrO
Re: Not able to use any XOOPS content editors (fckeditor, koivi, inbetween)
  • 2006/3/1 3:01

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


I am having the same problem too. I have tried to use one of the editors in newbb, ,but same problem occured.
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]



20
hydrO
Re: What about Virtual Private Servers?
  • 2005/12/25 11:30

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


Thanx for the tips xman04,

I am taking all this into consideration. My hosting company tells me that this usage problem could have started since I changed the main theme of the site. I removed the footer completely while chaning the theme.

Would removing footer have resulted in excessive usage of system at all?
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]




TopTop
« 1 (2) 3 4 5 ... 9 »



Login

Who's Online

140 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 140


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits