51
kalamata
Creating More Blocks
  • 2006/9/16 14:47

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I would like to create a new block under the weblinks module that would have the functionality of viewcat.php (the current Recent Links block does not cover my needs).

Checking the database, I worked out that the block is using a PHP file called weblinks_top.php, so I thought that copying viewcat.php would do the trick. However, as it does not return a block structure I suppose, this does not work.

Could you please suggest any other ideas as to how I might go about implementing this functionality?

I look forward to hearing from you soon.

Thanks in advance.

George



52
kalamata
Module Existence and Block Question
  • 2006/9/13 2:24

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I would like to ask a couple of questions regarding XOOPS.

I am looking for a module with the following functionallity. I want to be able to specify a URL, a date I want to be used as a timestamp, a short description and a more extended description (that will appear in the URL if the user clicks on it). Does one already exist as part of the XOOPS collection?


Also, how can I have something displayed on a page without it being a block? Assuming on the home page I want to display viewcat.php?cid=1, how can I do that (say to have it on the home page)?

Thanks,
George



53
kalamata
Validation working only on certain pages
  • 2006/9/12 0:21

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I have a XOOPS page in which I created two custom blocks on the right side, comprising of two simple forms to gather the e-mail and the mobile number of the users. Upon submission, a javascript is called to verify integrity of information submitted and then the information is sent to a PHP script.

If I run index.php, validation works as wanted. If I use another page, say www.test.com/modules/weblinks/viewcat.php?catid=1, then validation does not happen no matter what the user tries to submit.

I checked the HTML and the code for the forms is exactly the same. Any ideas as to what might be causing this?


I look forward to hearing from you soon.

Thanks in advance.

George



54
kalamata
$xoopsOption['show_rblock'] does not work
  • 2006/8/12 23:42

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

My aim is to add text to the main block, keeping the left and right ones as defined in the administration section. I tried the following code that did not work in XOOPS 2.0.14 (I get no blocks at all). Any hints as to where I might be going wrong?

<?php
include("mainfile.php");
include("header.php");
$xoopsOption['show_rblock'] = 1; //0 for no right block
$xoopsOption['show_lblock'] = 0; //0 for no right block
?>
My HTML

<?php
include("footer.php");
?>

Thanks,
George



55
kalamata
Re: Updating the news template - what am I doing wrong?
  • 2006/7/25 22:17

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Forgot to mention that when run with PHP debugging enabled, no errors come up. Also, when debugging at Smarty templates level, all the information comes up - it is only not been displayed!!!



56
kalamata
Re: Updating the news template - what am I doing wrong?
  • 2006/7/25 22:12

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Nope, no luck. In previedw mode, everything works fine though.

George



57
kalamata
Re: Updating the news template - what am I doing wrong?
  • 2006/7/25 21:53

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


I did, yes, but still the same result. The funny thing is that even if I type some text in, which should show up anyway, it doesn't - in preview it does. Any other ideas?


Thanks,
George



58
kalamata
Updating the news template - what am I doing wrong?
  • 2006/7/25 20:07

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I want to update the news template so that it displays the description of the news article as well as its title. I am assuming I have the right code as when I click Preview when updating the template through the web interface I see what I want to see. However, when I load up the page containing the Recent News block I only see the date and the title.

I checked the file under templates in the news folder and the template source in the database and they all contain the source that gives the right result according to Preview. However, I am not getting the desirable outcome (all templates_c files are cleaned up as well).

Could somebody provide any suggestions as to where I might be going wrong?

Thanks,
George



59
kalamata
Backdating blog entries
  • 2006/7/20 14:36

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

Does anyone know if any of the blog modules offered by XOOPS gives the administrator the ability of backdating certain blog entries?

Thanks,
George



60
kalamata
XoopsPoll Problem
  • 2006/6/28 18:01

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am having the following problem when trying to edit a poll:

The edit form is coming up fine, but in the poll options I just get the name of the last option repeated (so, if my options are foo,bar and foobar I will get foobar three times).

I had a look at the code under xoopspoll//class/index.php and it seems that the code handling that is the following:

$options_arr =& XoopsPollOption::getAllByPollId($poll->getVar("poll_id"));
$notify_value = 1;
if ( $poll->getVar("mail_status") != 0 ) {
$notify_value = 0;
}
$notify_yn = new XoopsFormRadioYN(_AM_NOTIFY, "notify", $notify_value);
$poll_form->addElement($notify_yn);
$option_tray = new XoopsFormElementTray(_AM_POLLOPTIONS, "");
$barcolor_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/modules/xoopspoll/images/colorbars/");
$i = 0;
foreach($options_arr as $option){
$option_text = new XoopsFormText("", "option_text[]", 50, 255, $option->getVar("option_text"));
$option_tray->addElement($option_text);
$option_id_hidden = new XoopsFormHidden("option_id[]", $option->getVar("option_id"));
$option_tray->addElement($option_id_hidden);

My undertanding of that code is that it should be adding a textbox with the name of the option every time it loops through the options array. However, it only remembers the name of the last option and I could not figure out why, even after looking at class/xoopsform/elementtray.php.

Can somebody please point out what the problem is?

Thanks,
George




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 12 »



Login

Who's Online

145 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 145


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