4511
ghia
Re: How to Synch Webhost Password with Xoops
  • 2008/8/28 14:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Xoops uses only an account on the MySQL database. This name and password is stored in mainfile.php. It might that your site admin password synchronizes with the MySQL database.

Quote:
I have read that I need to change the password frequently in order to avoid viruses.
Viruses have other ways than that. Changing passwords helps to avoid intrusion.



4512
ghia
Re: Logging in Returns to the Login Screen
  • 2008/8/28 14:31

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You did change all the names of your tables in the database to reflect the new prefix?
Module Protector has an admin function to assist that.



4513
ghia
Re: Starting a new Xoops site
  • 2008/8/28 9:26

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1





4514
ghia
Re: Default News Module Blues
  • 2008/8/28 3:03

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Comment all <{$news.date}> out in modules\news\templates\blocks\news_block_top.html .

Move your XOOPS to a subdirectory eg /xoops .
Adapt your URL and path in mainfile.php
Create an index.html inhttp://medicalmarijuanareferrals.com like:
<html><head></head>
<
frameset ROWS="100%, *" frameborder="no" framespacing=0 border=0>
<
frame SRC="http://medicalmarijuanareferrals.com/xoops/" 
NAME="mainwindow" frameborder="no" framespacing="0" marginheight="0" 
marginwidth="0" title="Mainframe" scrolling="yes">
<
noframes
<
body><center>Our site is at
<
a href="http://medicalmarijuanareferrals.com/xoops/">
http://medicalmarijuanareferrals.com/xoops/
</a></center>
</
body>
</
noframes>
 </
frameset></html>
Your users won't see any link at all!



4515
ghia
Re: Problems with usergroups and ranks
  • 2008/8/28 2:08

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It could be related to this.



4516
ghia
Re: I want to edit the text of the registration form
  • 2008/8/28 2:03

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Which text?



4517
ghia
Re: captcha or other spam deterrent?
  • 2008/8/28 2:01

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You can find a lot of information about the security image of DuGris on his site and in this lexicon, which gives examples of integration in a lot of modules.
It's in French, but Google wil translate and PHP stays PHP!



4518
ghia
Re: Xoops 2.3 - FCK and Koivi problems
  • 2008/8/27 11:37

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


See this and this.
They are still working on it and you better wait for the next release candidate.



4519
ghia
News and Rating in text
  • 2008/8/27 9:25

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Would it be nicer if the rating showed you excellent, interesting, boring or AAA, B- or ... in stead of 7.22, 5.65 etc.
If you want the display of the rating with a textual description in stead of a number, you can use this modification in modules\news\class\class.newsstory.php .
Change

$story['rating'] = number_format($this->rating(), 2);

to

if ($this->rating() > 8) {
  
$story['rating'] = 'Excellent';
 } else if (
$this->rating() > 5) {
  
$story['rating'] = 'Interesting';
 } else if (
$this->rating() > 2) {
  
$story['rating'] = 'Boring';
 } else if (
$this->rating() > 0) {
  
$story['rating'] = 'Skip';
 } else {
  
$story['rating'] = 'Be the first!';
 }


The texts and divisions are of course easy to adapt to your desire. (The equations have to be done in descending order.)



4520
ghia
News and Comments
  • 2008/8/27 9:11

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


When you look at the end of an article in News (1.56 - 1.62) with XOOPS 2.2.6 then you see at the bottom something like:
Quote:
Read More... | 6774 bytes more | 16 comments

To my surprise both links point to the same URL of the full article view.
I found that very ennoying and illogical, because when I click on comments, I expect to land on the comments at the bottom of the article and not pages away at the top.

So, I patched it.

First we need an anchor to land. I choose this at the top of the comment functions block (in this way other modules can benefit as well).

In /include/comment_view.php at 153 change

$navbar '

to

$navbar ' <a name="comments"></a>


Next we adapt the links in modules\news\class\class.newsstory.php around 640 or 690 from

if ( $ccount == ) {
                
$morelink .= '">'._NW_COMMENTS.'</a>';
            } else {
                if ( 
$fullcount ) {
                    if ( 
$ccount == ) {
                        
$morelink .= '">'._NW_READMORE.'</a> | '.$morelink2.'">'._NW_ONECOMMENT.'</a>';
                    } else {
                        
$morelink .= '">'._NW_READMORE.'</a> | '.$morelink2.'">';
                        
$morelink .= sprintf(_NW_NUMCOMMENTS$ccount);
                        
$morelink .= '</a>';
                    }
                } else {
                    if ( 
$ccount == ) {
                        
$morelink .= '">'._NW_ONECOMMENT.'</a>';
                    } else {
                        
$morelink .= '">';
                        
$morelink .= sprintf(_NW_NUMCOMMENTS$ccount);
                        
$morelink .= '</a>';
                    }
                }
            }

in five changes to

if ( $ccount == ) {
                
$morelink .= '#comments">'._NW_COMMENTS.'</a>';
            } else {
                if ( 
$fullcount ) {
                    if ( 
$ccount == ) {
                        
$morelink .= '">'._NW_READMORE.'</a> | '.$morelink2.'#comments">'._NW_ONECOMMENT.'</a>';
                    } else {
                        
$morelink .= '">'._NW_READMORE.'</a> | '.$morelink2.'#comments">';
                        
$morelink .= sprintf(_NW_NUMCOMMENTS$ccount);
                        
$morelink .= '</a>';
                    }
                } else {
                    if ( 
$ccount == ) {
                        
$morelink .= '#comments">'._NW_ONECOMMENT.'</a>';
                    } else {
                        
$morelink .= '#comments">';
                        
$morelink .= sprintf(_NW_NUMCOMMENTS$ccount);
                        
$morelink .= '</a>';
                    }
                }
            }


And when we were changing anyway, I found the layout of the comment functions block for posting a comment very confusing and the link to post is easy overlooked. It deserves a more prominent place for easier access.

The four controls are placed in a table with 1 row and 1 column. So I decided to add a new row, because a new column wasn't it what I was looking for.

For this you have to change

$navbar .= '&nbsp;<input type="button" onclick="self.location.href=''.$postcomment_link.''.$link_extra.''" class="formButton" value="'._CM_POSTCOMMENT.'" />';

in /include/comment_view.php at 204 to

$navbar .= '</td></tr><tr><td class="odd" align="center"><input type="button" onclick="self.location.href=''.$postcomment_link.''.$link_extra.''" class="formButton" value="'._CM_POSTCOMMENT.'" />';


So that looks already much nicer!

Only the text
Quote:
The comments are owned by the poster. We aren't responsible for their content.

looks a little orphaned, maybe I must add it in the table in a row between the controls, but that's for a next time!




TopTop
« 1 ... 449 450 451 (452) 453 454 455 ... 461 »



Login

Who's Online

228 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 228


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