301
Cuidiu
Re: Search Members by State
  • 2006/5/13 15:37

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Thanks sceilig. That was great information. A little beyond me - I think I could do it but not sure it's worth all the effort. I have been using extended profiles and really like it a lot. However, I can't figure out how to add a dropdown list or radio buttons to it. I'm assuming I have to hack one of the files for it to display properly in the registration form...?

As for search by state. Perhaps there is a shortcut. I first tried creating a function for a state listing similar to the alpha function. This did not work because I know only the most basic PHP, if that. So, instead what about something like this:
domain.com/modules/xmmemberstats/index.php?query=CA&sortby=uid
The CA would be the state (unless I add field for that?). Then hack the xmmemberstats/index.php and add a link for each search so that it would appear to the user as so:
Search for members from California:Click here
except use a little mod_rewrite to make the URL shorter:
modules/xmmemberstats/CA/ so that it appears nicer in the browser and so on... I suppose that would also be a pain putting in all 50 states... I'll have to think more on this.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



302
Cuidiu
Re: Adding to adminactivate.tpl
  • 2006/5/13 14:52

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Thank you Biteronboard! The non XOOPS form these people are using have results of the form sent to them for administrative purposes. Once they start using XOOPS, they *could* go into the Admin and do a search for inactive users and find the info they need to complete the approval process but those are extra steps they wouldn't have to take if the results were sent in the notify email. Whatever you can do to help would be much appreciated!
Quote:
Biteronboard wrote:
I have not attempted this, seems like a great idea!

I will not be home until this evening but I will see what I can do, hope I am able to help.

elseif

perhaps there is an alternative solution rather than editing the template.

Like I said though cant even look into it until this evening

cheers until then.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



303
Cuidiu
Re: Adding to adminactivate.tpl - will pay
  • 2006/5/13 14:36

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Thanks for your help msdana. I was a bit confused as to why you would assume I had not used the search. I have. All I have done for weeks here is use the search, read posts and try to learn. Perhaps I did not use the correct keywords but I *always* search first. If I somehow missed the posts or used the incorrect keywords, I apologize but please do not assume I'm not working hard at trying to figure it out on my own BEFORE posting. I usually spend at least an hour minimum trying to figure things out. Usually much more. Perhaps it would be helpful if I prefaced every post with "I've tried to figure out for x hours/search for ___ keywords and couldn't find the answer". If that would be more helpful, then I will do so. There's nothing more upsetting to be told to search when one has been working for hours to figure something out. And yes, because I'm a newbie, I can spend hours, sometimes days trying. And I don't want to post for fear I will get either no answer or someone claiming I haven't worked hard enough on my own to try to figure it out. That hurts.

As for your suggestions, thank you. They helped with where I should add fields under this area:
elseif ($xoopsModuleConfig['activation_type'] == 2)
but not with the field names/formats. Since I'm using extended profiles, I do not know where to find the field name and how to add it to the adminactivate.tpl. The fields are not in register.php. I see this;
/ Get fields
$fields =& $profile_handler->loadFields();
but that's all. I do not see the individual fields. Are they there and I'm just missing them? Are they in another file? Would I use the fields from the database, xm-memberstats, somewhere else? Do they look like _FIELDNAME or UFIELDNAME? If I could figure that out, I think I can figure out how to incorporate it in the adminactivate.tpl (though that's probably more wishful thinking).

What keywords would you suggest I use to try to find the answers?

Quote:

msdana wrote:
Doing a search brought up these topics:

Try the Search feature...it's easy and free. Or you can pay me for doing the search for you.

HTH
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



304
Cuidiu
Re: Adding to adminactivate.tpl - will pay
  • 2006/5/12 23:52

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Okay then. How about this approach? I'll pay someone to help me figure it out. I have several things like this I need help with. Any takers?
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



305
Cuidiu
Re: Rewriting module URLs
  • 2006/5/12 23:35

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Thanks. Are you saying that with the page titles anything after domain.com/dir/117/ I can fill in - but that would be manually if I'm setting the URL somewhere in the menu or something, correct? Otherwise, it will be just domain.com/dir/117/ normally. I fear this has potential for duplicate URLs in search engines causing penalites if by chance only the dir/117/ is picked up somehow. Also the other URLs still work too - the index.php?articleid=# URLs. I would not want any URL to be active except the URL that I've got set in menus on the pages. I assume there is no way around this.

Also, on the page I am getting the _MD_SF_REQUESTEDANDANSWERED (1 _MD_SF_READS) in the page. It should say: Requested and Answered by Admin on 02-May-2006 09:54 (6 reads). I have tried to figure out where in the templates to change but have not found it. All links within the module are not changing and I don't know how to do this either. Can I hire you? This is just too complicated for me. You made it look so easy in your posts!

Quote:

disky wrote:
Cuidio:

You need a .htaccess line like:
RewriteRule ^article/([0-9]+)/.*$ /modules/fsArticle/index.php?articleid=$1 [L]

With this RwwriteRule, you can have URL's like:

domain.com/article/117/bla_bla_bla_bla

It simply ignores everything after /117/

p.s. You need to adjust it to the module you use.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



306
Cuidiu
Re: Rewriting module URLs
  • 2006/5/12 22:36

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Hi disky,
Actually, I just wanted the page titles just as you do for articles or news. Such as:
http://www.xray-mag.com/article/159/Ferry_sinks_in_Red_Sea_
I assumed faqs could be done the same such as - domain.com/faqs/1/question_title_here.html or
domain.com/faqs/1/question_title_here or domain.com/faqs/category/1/category_title_here

However, if it is not possible to rewrite FAQs this way, I can stay with what I've got. But for my news/articles pages, I am not sure how to get the page titles as you have done because I did not understand the step:
Quote:
Then on every relevant pagetemplate i took the title of a webpage and added it to the URL.
Can you help me by telling me where I can change page templates? How would I add a page title to an url? Would it be in the module templates and where in the template? I mean, is there a common line to look for to change?

Thanks.

Quote:
disky wrote:
I am not sure i understand what you want.

Do you want to be able to have a URL like:

domain.com/faqs/Mod_rewrite_faq.html

The only way i know (and i am stilla mod_rewrite newbie) would be to have a line in the .htaccess file like this:

WriteRule ^faqs/Mod_rewrite_faq.html$ /modules/smartfaq/faq.php?faqid=117 [L]

if the id for that FAQ is 117

So you have 1 WriteRule per page, but there might be a better way to do this, but i don't know for sure.
It would not wonder me if it would be possible to do it via a MySQL database or something like that, but it is pure speculation.

Hope this helps, else just ask :)
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



307
Cuidiu
Re: Rewriting module URLs
  • 2006/5/12 22:21

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Sorry... posted too soon. Answered below.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



308
Cuidiu
Re: Rewriting module URLs
  • 2006/5/12 20:42

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


I've almost got it! Close but not quite. I'm trying to rewrite modules/smartfaqs/ to faqs/ so that if it's an faq it would show up as:
mydomain.com/faqs/faqpagetitle.html
and categories would show up as
mydomain.com/faqs/category/category-name/ or /faqs/category/name/ would be fine.
So far I've taken these steps - I did this:
Quote:
So change (please note I have removed opening and closing "<" and ">" from the statements so this renders in HTML, you will need to fix the tags:

From: meta name="keywords" content="<{$xoops_meta_keywords}>" /
To: meta name="keywords" content="<{$xoops_pagetitle}>, <{$xoops_meta_keywords}>" /

From: meta name="description" content="<{$xoops_meta_description}>" /
To: meta name="description" content="<{$xoops_pagetitle}>, <{$xoops_meta_description}>" /

But the next one I did not know how to do. Should I change the templates in each module? If so, where in the template? If only in a theme template, where in that template? I apologize if this should be obvious but I'm totally stumped at the moment.

Quote:
FROM FAQ END: Then on every relevant pagetemplate i took the title of a webpage and added it to the URL.

So that:http://www.xray-mag.com/article/159
Turns intohttp://www.xray-mag.com/article/159/Ferry_sinks_in_Red_Sea_
Because the headline is 'Ferry sinks in red sea'

I did this (but wrong I'm sure! see below):
Quote:
And of course the mod_rewrite changes i have mentioned earlier in this thread.

And I changed the line in common php.

It's partially working here though I'm doing it incorrectly. This is what I added to .htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^faqs/$ /modules/smartfaq/ [L]
RewriteRule ^faqs/category/([0-9]+).html$ /modules/smartfaq/category.php?categoryid=$1 [L]
RewriteRule ^faqs/([0-9]+)$ /modules/smartfaq/faq.php?faqid=$1 [L]

Here's what's working:
directory - domain.com/faqs/
category - domain.com/faqs/category/1.html
individual faq - domain.com/faqs/1

But I would like them to be the pagename and category name.
Can someone please help? Can someone point out what I'm doing wrong?

Thanks in advance.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



309
Cuidiu
Re: newbb vs. Invision Power Board
  • 2006/5/12 17:51

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Okay... obviously I'm trying to get a forum up and working but am having trouble with some NewBB2 issues. Here's the thing. The client wants a forum that will send daily or weekly digests of forum posts to their members if the member so chooses. I have tried in vain to get the digest feature to work. My question is - should I try CBB instead? Does CBB offer a working digest? Also, will I be able to edit a forum without an error with CBB? (I can't edit a forum with NewBB and after searching on the [/quote]Dev site I see this is not uncommon.)

If CBB does not offer a working digest and editable forums from the Admin, should I try Invision Power Board 1.5 for XOOPS 2.2.4? I really don't want to go with something that hacks the core files but frankly, I'm beginning to think it's something I'll be forced into due to the client's requirements. I really need to make a decision asap. Can someone please advise which way I should go?

Currently using XOOPS 2.2.4, NewBB 2.0.2, PHP 4.4.2, MySQL 5.0.18-standard-log, Apache/1.3.33 (Unix).

[quote]
davidl2 wrote:
IPB is a stand-alone forum, which requires hacks to work with each XOOPS revision.

CBB is designed to work natively with Xoops.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



310
Cuidiu
Still trying to fix NewBB digest - Please help
  • 2006/5/12 16:23

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


The digest notification is simply not working. At first I thought it was because something wasn't set up properly or notifications weren't enabled by the user or whatever but now I'm thinking different. Surely you knowledgeable folks can help with this?

On the NewBB admin index page this is displayed:
Digest notification
Should be sent out 19122715 minutes ago | Digest archive 0
(Should be sent out... is link /modules/newbb/admin/index.php?op=senddigest)

When clicking on the link with debug enabled the following appears:
Digest NOT processed

If the page does not automatically reload, please click here

[size=x-small]Notice [PHP]: Only variables should be assigned by reference in file modules/newbb/class/forum.php line 748 (There are 7 of the same notices so I'm only including one)

Warning [PHP]: array_keys(): The first argument should be an array in file modules/newbb/class/digest.php line 249
Warning [PHP]: implode(): Bad arguments. in file modules/newbb/class/digest.php line 249[/size]

After reading information on the dev site (see below) I tried to send the digest this way:
modules/newbb/digest.php
and received the following errors:
[size=x-small]Notice [PHP]: Only variables should be assigned by reference in file modules/newbb/class/forum.php line 748 (There are 7 of the same notices so I'm only including one)
Warning [PHP]: array_keys(): The first argument should be an array in file modules/newbb/class/digest.php line 249[/size]

When trying to run newbb/admin/admin_digest.php (Digest Manager on clicking Submit) the following appear:

[size=x-small]Warning [PHP]: implode(): Bad arguments. in file modules/newbb/class/digest.php line 249
Notice [PHP]: Undefined index: digest_id in file modules/newbb/admin/admin_digest.php line 52
Warning [PHP]: Invalid argument supplied for foreach() in file modules/newbb/admin/admin_digest.php line 54
[/size]
Here are the lines of code from the files. Does anyone see anything wrong with these?
newbb/class/digest.php line 249: $forum_criteria = ' AND t.forum_id IN (' . implode(',', array_keys($access_forums)) . ')';

newbb/admin/admin_digest.php lines 49-58:
xoops_cp_header();
switch($op){
case "delete":
$digest_ids = $_POST['digest_id'];
$digest_handler =& xoops_getmodulehandler('digest', 'newbb');
foreach($digest_ids as $did => $value){
$digest_handler->delete($did);
}
redirect_header( "admin_digest.php", 1);
break;


Using XOOPS 2.2.4, NewBB 2.0.2, (Preferences set to Digest enabled daily) PHP 4.4.2, MySQL 5.0.18-standard-log, Apache/1.3.33 (Unix).

Dev site about the digest:
Digest in NewBB 2.0
What is digest?

Digests are a special type of topics chosen/marked by moderators. These topics are usually highly valuable and can be viewed through 'view digest post' in the forum, as well as being sent to subscribers though PM or emails.

How is the digest handled in NewBB 2.0 ?

A. sending digest: if $xoopsModuleConfig['email_digest'] is set to 1 (daily) or 2 (weekly), the digest will be sent out by calling newbb/digest.php
Note: it is suggested to use cronjob for automatically sending out digest for the current version of newbb
B. prompt: the webmasters(moderators) are notified from the newbb/admin/index.php by being indicated the due time to send out the digest according to the set preference
C. managing sent digests: sent digests can be viewed or deleted from newbb/admin/admin_digest.php

Thanks.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]




TopTop
« 1 ... 28 29 30 (31) 32 33 34 35 »



Login

Who's Online

262 user(s) are online (179 user(s) are browsing Support Forums)


Members: 0


Guests: 262


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