21
tcnet
Re: Where is the Project Management Quality
  • 2009/8/19 22:24

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Quote:
Then I could probably mark the dev topics in the wiki here for removal… At least if they’re outdated and/or already in the dev.x.o wiki.

Please do not delete the dev pages from xoops.org as dev.xoops.org has a habit of closing for months on end due to malicious behavior. It has been closed a couple of times in the past few years.

The dev.wiki topics on xoops.org were added last year when dev.xoops.org was down. I believe the wiki pages here were restored from the old d.x.o db and are slowing getting updated with the recent core changes.


DXO was just recently reopened during catzwolf's module update initiative. The dev wiki files published on dxo were probably copied from the xoops.org wiki.

Personally I feel all XOOPS info should be published under the main domain and not spread across subdomains, local support sites and individual devs sites.



22
tcnet
Re: Does everyone have to make a buck on twitter blocks
  • 2009/8/15 15:02

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


That's odd. Works here on WAMP local, XOOPS 2.3.3 and php 5.2.

The custom block was set to php script?



23
tcnet
Re: Does everyone have to make a buck on twitter blocks
  • 2009/8/15 6:05

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


I am not a very good coder but this seems to work on my test server. php5 only

$feedurl 'http://twitter.com/statuses/user_timeline/15268838.xml';
$yourtwitterurl 'http://www.twitter.com/ibleedv20';
$itemlimit 5;  //Limit number of items

$xml = new SimpleXMLElement($feedurlNULLTRUE);

if(
$xml !== '') {  
  
$itemnum 0;
  echo 
'<ul>';
  foreach(
$xml->status as $status) {
    
$statusdate $xml->status[$itemnum]->created_at;
    
$statustext $xml->status[$itemnum]->text;
    echo 
'<li>'.formatTimestamp(strtotime($statusdate), 's').' - '.strip_tags($statustext).'</li>';
    
$itemnum++;
    if ( 
$itemnum == $itemlimit ) {
        break;
    }
  }
echo 
'</ul><br /><a href="'.$yourtwitterurl.'">Follow us on Twitter</a>';
}


Enter into a custom block set to phpscript.



24
tcnet
Re: Adding a plain url link into mainmenu
  • 2009/8/10 9:53

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Add a link to the main menu by editing modules/system/templates/blocks/system_block_mainmenu.html

<table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
      <!-- 
start module menu loop -->
      <{foreach 
item=module from=$block.modules}>
      <
class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/" title="<{$module.name}>"><{$module.name}></a>
        <{foreach 
item=sublink from=$module.sublinks}>
          <
class="menuSub" href="<{$sublink.url}>" title="<{$sublink.name}>"><{$sublink.name}></a>
        <{/foreach}>
      <{/foreach}>
      <!-- 
end module menu loop -->
<
class="menuMain" href="yoururl" title="yourlinkname">My Link</a>
    </
td>
  </
tr>
</
table>


Go to system admin - modules and update the system module to set the changes.

Moderators: One of the Most Asked FAQs:
How do I add custom links in the main menu? is displaying a white screen.



25
tcnet
Re: Omitting module from Search Results
  • 2009/8/10 0:03

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Check the module's xoops_version.php for something like this:

// Search
$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "include/search.inc.php";

Set hasSearch to 0.

Update the module in system admin - modules to set the change.



26
tcnet
Re: Attaching an Image To a Specific Page
  • 2009/7/25 4:11

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


You can use the XOOPS image manager to upload the image and add it to your content.

Or upload your image using FTP and then click the image link button and add the image using the image's url.



27
tcnet
Re: Where is the Project Management Quality
  • 2009/7/25 3:11

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


I read a Wishcraft comment where he stated that DJ had asked him to fill in while DJ was busy with work.

Of course I can't find it now because comments can't be searched.



28
tcnet
How to Change Style for Blocks Inside a XOOPS Core Block
  • 2009/7/23 16:58

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Re: I want to add a new block in xoopscore blocks.

Quote:

I am trying to add a new block type as side block left bottom.

...some blocks at the bottom have to have a different layout and style


There is no need to add a new XOOPS core block to change the style for some blocks. The core developers have provided the smarty variable $block.weight and we can use it to identify blocks for special treatment.

To change the style for blocks at the bottom of a XOOPS Left Block using <{$block.weight}>:

Add a conditional and some math <{if $block.weight < n}> to set a threshold where the blocks should change style and add it to your theme_blockleft.html template.

Go to system blocks admin and set the block's weight greater than n to highlight.

You can also highlight a specific block by giving the block a unique weight n and using <{if $block.weight = n}>.

You can highlight a group of blocks by setting their Order Weight equal to n and using <{if $block.weight = n}>.

For example, at Technical Crew Network this <{$block.weight < 50}> was added to theme_blockleft.html to give blocks with a weight above 50 a yellow background.

In theme_blockleft.html:

<{if 
$block.weight 50}>
  <!-- default 
style -->
  <{if 
$block.title}>
    <
div class="blockTitle">
      <
h3><{$block.title}></h3>
    </
div>
   <{/if}>
   <
div class="blockContent">
     <{
$block.content}>
   </
div>
<{else}>
  <!-- 
special style -->
  <
div class="leftcolumnbottom" style="background-color: #FFFFCC">
    <{if 
$block.title}>
      <
div class="blockTitle">
        <
h3><{$block.title}></h3>
      </
div>
    <{/if}>
    <
div class="blockContent">
      <{
$block.content}>
    </
div>
  </
div>
<{/if}>


You will probably want to add the class leftcolumnbottom to your style sheet instead of using the example's inline style.

You could use this in your theme.html but it would require a new theme_blockleftbottom.html template.



29
tcnet
Re: php block
  • 2009/7/22 3:22

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Try include 'scripts/random.php';

I don't think the <?php or ?> is needed in a custom php block.



30
tcnet
Re: Parse error: syntax error, unexpected T_IF
  • 2009/7/22 3:06

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Usually those autoinstallers use very old versions of xoops. Stick with the version downloaded here.

What errors do you have when installing the archive from this site?





TopTop
« 1 2 (3) 4 5 6 ... 21 »



Login

Who's Online

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


Members: 0


Guests: 155


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