31
rajaito
Re: could I use a news mod as an event calendar?
  • 2005/6/22 4:58

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


hmm... if I were to use a news module, I would need to have a user put the date in, but have all news (including future news) to be displayed.

I am alread using the latest pical. But its soo clunky.
I am looking into AgendaX but it has problems too.

I want my calendar to work similar to this one:http://www.nmunderground.com/board/events.php

I just want simple yet woking. I looked for xtcal. I couldn't find a downloadable file anywhere. Any chance you could find me a working link mOnty?



32
rajaito
could I use a news mod as an event calendar?
  • 2005/6/22 4:32

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Basically all I want is a flat view of user submited events in order of date of the event. I would need users to have access to modify their events at anytime though.

Also categories(states) and an image upload feature.



33
rajaito
so many annoying questions for you guys
  • 2005/6/22 2:33

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


I really wish that I had more time to learn how PHP, smarty and XOOPS work. Everything I have learned so far I have taught myself by researching and experimenting. But it's just not enough to satisfy my needs as a XOOPS user.

I put my questions out there to the developers and the XOOPS community and although some questions are answered (thank you to those who have been able to help!), so many just fall to the wayside. I don't know if I am just asking rediculous questions or if this is totally possible stuff that someone knows how to do but doesn't have the time.


For example:

I keep downloading all these great modules with all these little things I want to change. Little things like make my calendar module display the event loacation and the uploaded image while viewing in flat view.

Or...

I wish I knew a way to limit the size of all images displayed on the site. Why? Because I am using a theme that is 800 px wide. However, people consistantly post stuff that is 1024 wide and larger. It breaks my theme everytime. It is annoying! Cant I just write some block of php somewhere that says.... anywhere that a .jpg or .gif file is displayed, the script will automatically resize posted image to maximum of 500 px wide? The key here is to not stretch smaller images too a larger size, but to only resize stuff that is larger then 500px. This has to be possible. I have searched for the answer, but I haven't found any clear examples of this working.

Sorry if I am rambling. I just wish I knew enough to write my own modules. I am not even sure where to start.



34
rajaito
Re: Official Agenda X support
  • 2005/6/22 2:19

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


while I am at it....

The text editor does not automatically allow one to cut and paste with fire fox. Instead the user is taken to some firefox page giving intstructions on how to edit core mozilla files or something.

That's totally annoying!! I and a few other people may actually do it. But the average user probably will not. maybe the average user will be using IE though. Either way... am I the only one who gets irritated by things like this?



35
rajaito
Re: Official Agenda X support
  • 2005/6/22 2:15

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


and more specifically does anyone have any idea why when the admin gives users permission to edit events they have access to all events? Can this be changed to give them access to only events that they submit??



36
rajaito
Official Agenda X support
  • 2005/6/22 2:11

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Does anyone know how to get someone to respond to questions for the AgendaX team?? I posted directly on the developers website months ago, but I have recieved no support.



37
rajaito
Re: xcgal - MAJOR BUG when batch adding photos
  • 2005/6/22 1:55

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


OK well I think I did find a real bug this time. Did you hear that? Yes I really said BUG!

When batch uploading images, the recent activity for xcgal on the profile page does not link correctly. It shows the little grey image for the gallery but does not show the linkable text for batch uploaded photos. I disabled the whole recent activity list because of this and it really sucks because I find that a useful thing to have on my site!

But now, I just discovered this is also true when doing a sitewide search. All the batch uploaded images do not show up as clickable.


Please someone help me fix this issue. Please. Please.... I am begging you.

The link to my site is below. Please just go do a search for the word "dance". You will see what I mean. Some of the photos will be clickable, but the ones that were batch uploaded are not.



38
rajaito
Re: Updater and now my site is gone !Urgent!
  • 2005/6/22 1:45

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Yikes!!

I wish I could help you..... mabye if I bump this someone else can. Good luck.



39
rajaito
Re: Updater and now my site is gone !Urgent!
  • 2005/6/21 3:55

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


dude... you gotta tell people what you did. When you say update.. what did you update? What were you working on specifically? Were you uploading a module or something?



40
rajaito
Re: adding comments to member profiles
  • 2005/6/21 1:55

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Ok well... Since nobody seems to be interested, I decided to try this myself. But after I completed step 4 I don't really understand what to do next.

How do I actually make it work? Do I have to at a table to the database? How do I call the comment functions on userinfo.php? What is a callback and why is it optional?

Someone out there that knows more than me must be interested in this hack! At least tell me if I am crazy to try to make this work?

===== 3.4.3.1 Adding XOOPS global comments feature to your module (Smarty version) =====
===
Step 1===

First of allthere are 2 variables that you must prepare before proceeding to subsequent stepsThose are:

    * 
AThe name of unique ID for an item to which comments will be added. For examplethis will be 'storyid' in News module, and 'poll_id' in XoopsPoll module.
    * 
BThe name of file which displays each item when the above unique item ID is passed as HTTP GET request. For examplethe file name will be 'article.php' for News modulewhere an each article will be displayed by accessing this file as article.php?storyid=(unique id here). Similarlyit will be 'pollresults.php' for XoopsPoll module.

Now open xoops_version.php and add the following lines:

$modversion['hasComments'] = 1;
$modversion['comments']['itemName'] = 'value obtained in A';
$modversion['comments']['pageName'] = 'value obtained in B';

For 
examplein News module:

$modversion['hasComments'] = 1;
$modversion['comments']['itemName'] = 'storyid';
$modversion['comments']['pageName'] = 'article.php';

===
Step 2===

Copy the following files from the web links module and save them to your module directory

        
comment_new.php
        
comment_edit.php
        
comment_delete.php
        
comment_post.php
        
comment_reply.php

===Step 3===

Open the file specified in Step 1B (i.earticle.php in News), and add the following line just before including footer.php

include XOOPS_ROOT_PATH.'/include/comment_view.php';

===
Step 4===

Open the appropriate template file for your module (news_article.html for News module), and copy paste the following lines where comments should be displayed (You can of course customise the HTML tags as you prefer).

<
div style="text-align: center; padding: 3px; margin: 3px;">
  <{
$commentsnav}>
  <{
$lang_notice}>
</
div>

<
div style="margin: 3px; padding: 3px;">
<!-- 
start comments loop -->
<{if 
$comment_mode == "flat"}>
  <{include 
file="db:system_comments_flat.html"}>
<{elseif 
$comment_mode == "thread"}>
  <{include 
file="db:system_comments_thread.html"}>
<{elseif 
$comment_mode == "nest"}>
  <{include 
file="db:system_comments_nest.html"}>
<{/if}>
<!-- 
end comments loop -->
</
div>

That's about all you would need to add on the user side. As for the admin side, ALWAYS call the following function whenever an item is deleted so that the comments attached to the deleted item will also be removed and number of user posts be updated accordingly.

function xoops_comment_delete(integer module_id , integer item_id)

For example in News module, the function is called as below whenever a news article is deleted:

xoops_comment_delete($xoopsModule->getVar('
mid'), $storyid)

Another useful function is xoops_comment_count(), which takes module ID and item ID as parameters and will return the total number of comments for the specified item.

function xoops_comment_count(integer module_id [, integer item_id*])

If item_id is not specified, then the total number of comments for the module specified by module_id will be returned.

===Step 5 (Optional)===

==Setting up callback functions==

You can specify callback functions by adding the following lines to xoops_version.php.

$modversion['
comments']['callback']['approve'] = 'function';

function will be executed upon successful post of an approved comment. This includes comment posts by administrators, and change of comment status from '
pending' to 'active' state. An XoopsComment object that has been approved will be passed as the first and only parameter. This should be useful for example notifying the item submitter of a comment post.

$modversion['
comments']['callback']['update'] = 'function';

function will be executed whenever the total number of '
active' comments for an item is changed. Two parameters will be passed as parameters, the unique ID of an item as the first parameter and the total number of active comments for that item as the second.

$modversion['
comments']['callbackFile'] = 'file name';

The name of file in which callback functions are defined.

Example

modules/mylinks/xoops_version.php

$modversion['
comments']['callbackFile'] = 'include/comment_functions.php';
$modversion['
comments']['callback']['approve'] = 'mylinks_com_approve';
$modversion['
comments']['callback']['update'] = 'mylinks_com_update';

modules/mylinks/include/comment_functions.php

function mylinks_com_update($link_id, $total_num){
        $db =& Database::getInstance();
        $sql = '
UPDATE '.$db->prefix('mylinks_links').' SET comments '.$total_num.' WHERE lid '.$link_id;
        $db->query($sql);
}

function mylinks_com_approve(&$comment){
        / / send notification mail
}




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



Login

Who's Online

156 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 156


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