51
BradM
Re: Who's Online no longer working
  • 2003/12/28 8:39

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Yikes, I don't know what I've done. I decided to revert back to the original sessions.php file from XOOPS 2.0.5., so I reuploaded that file.

Now my who's online never updates, it always says 0 users!


Brad



52
BradM
Newbb bug during uninstall
  • 2003/12/28 8:22

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Hi,

I just uninstalled newbb as I am trying out the IPB module on a test site. However when I uninstalled, it also removed all of my xtremeguestbook block templates! I'm not sure if this is a bug in newbb or the xtremeguestbook.


Block template newbb_block_top.html deleted from the database. Template ID: 130
Block template xtremguestbook_index.html deleted from the database. Template ID: 161
Block template xtremguestbook_sign.html deleted from the database. Template ID: 162
Block template xtremguestbook_post.html deleted from the database. Template ID: 163
Block template xtremguestbook_index.html deleted from the database. Template ID: 164
Block template xtremguestbook_sign.html deleted from the database. Template ID: 165
Block template xtremguestbook_post.html deleted from the database. Template ID: 166

Block Most Active Topics deleted. Block ID: 17



Brad



53
BradM
Re: Cannot using Xtremguestbook
  • 2003/12/28 3:57

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


I've had success with version 2.3 which can be found here:

Xoops - France

I'm using XOOPS 2.0.5.1

EDIT> I just realized that I had to set up an account before I could download the archive. If you don't want to go this route (although they have a good collection of modules there), you can download it from my website.


Brad



54
BradM
Re: Who's Online no longer working
  • 2003/12/28 3:43

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Actually I had implemented a small hack that would show everyone on the "home page" unless they were in a specific module (it was working great).

The site isn't live yet, and for the most part, I am the only one on (unless I use two different browsers to check things). I still don't know how the whole thing works, so maybe I need more traffic before it will work properly... ?


Brad



55
BradM
Re: Need coding help for Glossary hack
  • 2003/12/28 2:35

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Well I still haven't had much luck with this... are there any good MySql tutorial sites out there? Basically I have to figure out a way to build a list of all the terms currently in the database, then search through the current definition for all the words in the list, and replace them with links to the terms themselves... It sounds relatively easy to do, I'm just stumbling with the code right now.


Brad



56
BradM
Small xtremguestbook hack
  • 2003/12/28 2:31

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


This small hack will add a "sign guestbook" submenu under the main Guestbook link on the Main Menu.

Edit xoops_version.php as follows:

Change:
// Menu
$modversion['hasMain'] = 1;

To This:
// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _XTG_SIGNGUESTBOOK;
$modversion['sub'][1]['url'] = 'sign.php';



Brad



57
BradM
Who's Online no longer working
  • 2003/12/27 5:41

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Well, it still tells the number of users, but when I click on "more...", it doesn't show me where everyone is located.

I tried changing my session time, also implemented the sessions.php hack as mentioned in another thread, but still, the locations are unknown (show up blank).

Any ideas?

Brad



58
BradM
Re: Amazon, Hot or Not, phpNuke and Xoops
  • 2003/12/26 21:00

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


One other thing, I wasn't able to get the script to display details about a 'recommended' book (one which I added via the admin/search). I added the following code to the module's index.php file, which helped:
if (isset($HTTP_POST_VARS)) {
    foreach (
$HTTP_POST_VARS as $k => $v) {
        ${
$k} = $v;
    }
}
if (isset(
$HTTP_GET_VARS['bid'])) {
    
$bid $HTTP_GET_VARS['bid'];
}



Brad



59
BradM
Re: Amazon, Hot or Not, phpNuke and Xoops
  • 2003/12/26 20:51

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Regarding the blank admin section, I made this modification to admin_header.php, which has fixed it:

Change:
$xoopsModule = XoopsModule::getByDirname("photovote");

To:
$xoopsModule = XoopsModule::getByDirname("books");

As for the default prefix, I checked out a couple other modules, and the standard format seems to be this:

$query = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix("books_items")." valid='1' ORDER BY RAND() LIMIT 1"));

The above might need tweaking, as I mentioned, I'm not too familiar with sql... also, you might have to grab the globals, like:

global $xoopsConfig, $xoopsDB, $xoopsUser;


Brad



60
BradM
Re: Amazon, Hot or Not, phpNuke and Xoops
  • 2003/12/26 20:33

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


As for the prefix issue, I believe all you have to do is edit your mysql.sql file, and remove the "xoops_" part from the two tables that are created (at least, that's what I did, and it worked). I believe that XOOPS automatically adds "xoops_" to the table names.

I too am coming up with a blank admin page... I don't know much about module coding, but I'm willing to help out as much as I can. I've been looking for an Amazon-type module for a while now!


Brad




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



Login

Who's Online

183 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 183


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