1
johnwyp
Re: Downloads module issue
  • 2004/9/2 20:13

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


I'm sorry, I don't think I was clear w/ my last reply. Your suggestion to turn on PHP Debug pointed me in the right direction. When I turned it on, I saw that it was complaining about not being able to write to some files in templates_c. I wasn't being a punk.

Thanks for your help, Herve....appreciate it.


Cheers,
John



2
johnwyp
Re: Downloads module issue
  • 2004/9/2 13:57

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


Thanks...that pointed me in the right direction.

So the templates_c directory needs 777 rights? I didn't know that....



3
johnwyp
Re: Downloads module issue
  • 2004/9/1 18:59

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


OK, changed the anon group to be able to get at the downloads module.

Yes...I added it via the admin menu of the module.



4
johnwyp
Downloads module issue
  • 2004/9/1 16:57

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


I've finally gotten around to activating the downloads module on my XOOPS 2.0 site (www.rlasg.com so you can see the version).

For some reason, NOTHING is displayed when I select Downloads from the menu. I've created three categories, but none display. Heck, I even added a download from the admin menu, but still nothing displays.

I've checked the group privs, and that all looks good. That is the extent of my "expertice" with this at the moment. Any ideas?

BTW, it looks like the module version is 1.1.

Thanks!

- john

*edit* Crud...I just realized I posted this in the wrong forum.



5
johnwyp
Recent posts block problem
  • 2003/12/12 15:56

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


If you choose to NOT have the recent posts block display in full, then the last post column in the table created is empty even though the template looks correct.

Both full display and non-full display have <{$topic.time}> to display when the last post was made....but it only WORKS when displaying in full mode.

Ideas?

<table class="outer" cellspacing="1">

  <{if 
$block.full_view == true}>
  <
tr>
    <
th><{$block.lang_forum}></th>
    <
th><{$block.lang_topic}></th>
    <
th align="center"><{$block.lang_replies}></th>
    <
th align="center"><{$block.lang_views}></th>
    <
th align="right"><{$block.lang_lastpost}></th>
  </
tr>

  <{foreach 
item=topic from=$block.topics}>
  <
tr class="<{cycle values="even,odd"}>">
    <
td><a href="<{$xoops_url}>/modules/newbb/viewforum.php?forum=<{$topic.forum_id}>"><{$topic.forum_name}></a></td>
    <
td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&amp;forum=<{$topic.forum_id}>&amp;post_id=<{$topic.post_id}>#forumpost<{$topic.post_id}>"><{$topic.title}></a></td>
    <
td align="center"><{$topic.replies}></td>
    <
td align="center"><{$topic.views}></td>
    <
td align="right"><{$topic.time}></td>
  </
tr>
  <{/foreach}>

  <{else}>

  <
tr>
    <
td class="head"><{$block.lang_topic}></td>
    <
td class="head" align="center"><{$block.lang_replies}></td>
    <
td class="head" align="right"><{$block.lang_lastpost}></td>
  </
tr>

  <{foreach 
item=topic from=$block.topics}>
  <
tr class="<{cycle values="even,odd"}>">
    <
td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&amp;forum=<{$topic.forum_id}>"><{$topic.title}></a></td>
    <
td align="center"><{$topic.replies}></td>
    <
td align="right"><{$topic.time}></td>
  </
tr>
  <{/foreach}>

  <{/if}>

</
table>

<
div style="text-align:right; padding: 5px;">
<
a href="<{$xoops_url}>/modules/newbb/"><{$block.lang_visitforums}></a>
</
div>



6
johnwyp
Re: Can somebody please help me? Block issues.
  • 2003/11/21 18:55

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


Quote:
Oh and how do I remove this from the special section which I renamed Columns:


Go to the template set manager in your admin menu. There you can clone the entire set of template and edit your cloned set.

In your cloned set, you should see a "Sections" selection with the number of files in parenthesis. Go there and find the main php file and edit that to remove that bit.

Once that is done, you have to change your preferences for your site to use your cloned template.

Hope that helps.



7
johnwyp
Re: Block problems
  • 2003/11/21 17:55

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


Awesome! That worked. Next issue....

<SCRIPT LANGUAGE="JavaScript" SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=32285">
</
SCRIPT>


That is going to bring up a graphic that, again, works PERFECTLY in preview, but displays completely squished on the site.

Ideas?



8
johnwyp
Block problems
  • 2003/11/21 15:59

  • johnwyp

  • Just popping in

  • Posts: 10

  • Since: 2003/3/20


I have the code that I've put in an HTML block that works fantastic in preview, but prints the code on the actual page. Any ideas what I can do to fix that?

<?php
$smonXML 
'http://www.serverspy.net/bin/smonXml.mpl?mid=32285';
$smon = Array();
global 
$smon;
$smon['PLAYERS'] = Array();
$smon['DETAILS'] = Array();
$smon['RULES'] = Array();
$smon['SERVERSPY'] = Array();

function 
startElement($parser$tagName$attrs) {
    global 
$smon;
    if (
$tagName == 'PLAYERS'){
        
$smon['PLAYERS'][$attrs['NAME']] = Array();
        
$smon['PLAYERS'][$attrs['NAME']]['CONNECTED'] = $attrs['CONNECTED'];
        
$smon['PLAYERS'][$attrs['NAME']]['KILLS'] = $attrs['KILLS'];

    } elseif (
$tagName == 'SERVERSPY'){
        
$smon['SERVERSPY'][$attrs['NAME']] = $attrs['VALUE'];

    } elseif (
$tagName == 'RULES'){
        
$smon['RULES'][$attrs['NAME']] = $attrs['VALUE'];
    
    } elseif (
$tagName == 'DETAILS'){
        
$smon['DETAILS'][$attrs['NAME']] = $attrs['VALUE'];
    }

//    while (list ($key, $val) = each ($attrs)) {
//    } // end while
}


function 
characterData($parser$data) {    
    
// no wrapped data used
}


function 
endElement($parser$tagName) {    
    
// no wrapped data used
}

// Create an XML parser
$xml_parser xml_parser_create();

// Set the functions to handle opening and closing tags
xml_set_element_handler($xml_parser"startElement""endElement");

// Set the function to handle blocks of character data
xml_set_character_data_handler($xml_parser"characterData");

// Open the XML file for reading
$fp fopen($smonXML,"r")  or die("Error reading ServerSpy.net XML feed. Either the URL is invalid or the XML feed has been updated.");

// Read the XML file 4KB at a time
while ($data fread($fp4096))    
// Parse each 4KB chunk with the XML parser created above
xml_parse($xml_parser$datafeof($fp)) 
        or die(
sprintf("XML error: %s at line %d",
            
xml_error_string(xml_get_error_code($xml_parser)),
                
xml_get_current_line_number($xml_parser)));
// Close the XML filef
fclose($fp);

// Free up memory used by the XML parser
xml_parser_free($xml_parser);

// Details
print "<b>".$smon['DETAILS']['name']." Server Details</b><br>n";
while (list (
$key$val) = each ($smon['DETAILS'])){
    print 
"$key = $val<br>n";
}
print 
"<br><br>";

// Players
print "<b>Server Rules</b><br>n";
while (list (
$key$val) = each ($smon['RULES'])){
    print 
"$key = $val<br>n";
}
print 
"<br><br>";

// Rules
print "<b>Players</b> (player-kills-connected/ping)<br>n";
while (list (
$key$val) = each ($smon['PLAYERS'])){
    print 
"$key  - ".$smon['PLAYERS'][$key]['KILLS']." - ".$smon['PLAYERS'][$key]['CONNECTED']."<br>n";
}

// end of file

?>


I just looked at the code block and the URL is showing up as a link, but rest assured it is NOT like that in the actual code block.




TopTop



Login

Who's Online

131 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

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

Latest GitHub Commits