1
torrent
Mydownloads numbering
  • 2006/6/5 4:56

  • torrent

  • Just popping in

  • Posts: 7

  • Since: 2006/5/25


Hey guys,

On the index page of the mydownloads module, the category has (#) next to it (# meaning number of files). I want it so that the subcategories under the category have a (#) next to it just like it is in the viewcat.php of the module.

Any ideas on how to make this happen?

Thanks



2
torrent
PD Downloads listing not showing
  • 2006/6/5 0:20

  • torrent

  • Just popping in

  • Posts: 7

  • Since: 2006/5/25


Hey guys,

I have PD-Downloads 1.2 and whenever I make a listing, it doesn't show up in the downloads section.

I'm not uploading anything with the form, instead I just put the address to where the file can be found, so I'm pretty sure it's not any directory permissions problems or anything.

Any ideas?

Thanks



3
torrent
Re: Two questions?
  • 2006/6/4 19:51

  • torrent

  • Just popping in

  • Posts: 7

  • Since: 2006/5/25


Do I change this:

$user_mailok = (isset($_POST['user_mailok']) && intval($_POST['user_mailok'])) ? 1 : 0;

to this?

$user_mailok = 1;

Is that the line I change?

Thanks



4
torrent
Re: Two questions?
  • 2006/6/4 16:48

  • torrent

  • Just popping in

  • Posts: 7

  • Since: 2006/5/25


Hey,

Thanks for the reply.

I changed the code to this:

class XoopsFormRadioYN extends XoopsFormRadio
{
/**
* Constructor
*
* @param string $caption
* @param string $name
* @param string $value Pre-selected value, can be "0" (No) or "1" (Yes)
* @param string $yes String for "Yes"
* @param string $no String for "No"
*/
function XoopsFormRadioYN($caption, $name, $value=1, $yes=_YES, $no=_NO)
{
$this->XoopsFormRadio($caption, $name, $value);
$this->addOption(1, $yes);
$this->addOption(0, $no);
}
}
?>

Is this right? Because I uploaded the file and it still defaults to no in the register.php

Thanks



5
torrent
Two questions?
  • 2006/6/4 15:29

  • torrent

  • Just popping in

  • Posts: 7

  • Since: 2006/5/25


Hey guys,

Thanks for the help before but I have some more questions :P

How can I change this code so that the default filled in radio button is yes instead of no?:

$reg_form->addElement(new XoopsFormRadioYN(_US_MAILOK, 'user_mailok', $user_mailok));

And is there a hack for the downloads module so that I don't have to put in file sizes in bytes, and put them in megabytes instead since I upload large files?

Thanks



6
torrent
Add javascript statistics code
  • 2006/5/27 5:06

  • torrent

  • Just popping in

  • Posts: 7

  • Since: 2006/5/25


Hey guys,

I'm trying to add code to my site that was provided to me by my search engine optimizer service in order to track visitors and provide statistics to me.

The code is this:

<!-- Javascript EngineSeeker.com Code Snippet -->

<script type="text/javascript" language="javascript">
var base = "http://stats.engineseeker.com/clients/_tools/record_stats.php";
var refer = escape(document.referrer);
var agent = navigator.userAgent.toLowerCase();
var aN = escape(navigator.appName);
var aV = escape(navigator.appVersion);
var os = escape(navigator.platform);
var res = escape(screen.width+ 'x'+screen.height);
var url = escape(document.location);
var java = navigator.javaEnabled();
var id = "17905";

var query_url = base+"?id="+id+"&res="+res+"&http_user_agent="+agent+"&aN="+aN+"&aV="+aV+"&java="+java+"&os="+os+"&http_referer="+refer+"&url="+url;

document.writeln('<img src="' + query_url + '" border="0">');
</script>
<noscript>
<img src="http://stats.engineseeker.com/clients/_tools/record_stats.php?id=17905" border="0">
</noscript>

But, how can I add it so that it works on my website? I tried to put it in a custom block (although I didn't make it visible) because I don't want people to see the code.

Thanks,
David



7
torrent
News module
  • 2006/5/25 4:32

  • torrent

  • Just popping in

  • Posts: 7

  • Since: 2006/5/25


Hey guys,

On my website, www.animeigloo.com, I have all the news blocks on the homepage. The big story block, though, is only a link to the news story. I want it to actually contain the story, not the link to the story. Any ideas?

Also, I know there are many threads on this, but is there a module I can use to add static pages that would function EXACTLY like the modules? Well, in AboutU module, it creates an about us, but they're all under a folder along with a contact us capability and so on; I just want it to display about us information. Any ideas?

Thanks,
David Pham




TopTop



Login

Who's Online

231 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 231


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