PDA

View Full Version : My Spiders Online Hack Working With CMPS


amykhar
05-31-2005, 10:00 PM
Finally! :whew: This is the portal integration with this hack:

https://vborg.vbsupport.ru/showthread.php?t=75986

Forgive me for this, but I'm just going to upload the modified module code and post the one line change you need to make in global.php. I think that will make it easier for all of us.

In global.php Find (the special templates array in the CMPS section:


$specialtemplates = array_merge($specialtemplates,

array(
'adv_modules',
'adv_portal_opts',
'attachmentcache',
'bbcodecache',
'birthdaycache',
'eventcache',
'iconcache',
'maxloggedin',
'smiliecache',
'userstats'


Add After:

,'wol_spiders'


Then, upload this revised onlineusers.php to your modules directory.

Finally, make the following change to your adv_portal_onlineusers template:

Find:

<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>


Replace with:

<phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase>



I believe this will work on your portal home page even if you do not have my original hack installed.

dsboyce8624
06-01-2005, 05:21 AM
Okay, it shows the spiders names now, but it doesn't show a number in the heading:

2 members, 0 guests and spiders

Thanks for working on it, a bunch of us are appreciative.

Dennis

kall
06-01-2005, 06:30 AM
No, it does work...you have to make the change to adv_portal_onlineusers (obviously) to get it to work.

www.nzboards.com (lower right)

:)

*edit* No install button. :(

amykhar
06-01-2005, 10:10 AM
Okay, it shows the spiders names now, but it doesn't show a number in the heading:

2 members, 0 guests and spiders

Thanks for working on it, a bunch of us are appreciative.

Dennis
Dennis, given that you are already having problems with the quiz hack, do you think it's wise to be installing anything else until you get that fixed? Part of fixing bugs is making sure you only change one thing at a time so that you can isolate and fix problems.

dsboyce8624
06-01-2005, 01:29 PM
No, it does work...you have to make the change to adv_portal_onlineusers (obviously) to get it to work.
(

What's "The Change?" I must have missed that.

If you mean the one suggested in the other hack thread, I did that.

Dennis

Dennis, given that you are already having problems with the quiz hack, do you think it's wise to be installing anything else until you get that fixed? Part of fixing bugs is making sure you only change one thing at a time so that you can isolate and fix problems.

The quiz hack is working fine for my users, I don't know why it runs weird for me.

blueuniverse
06-01-2005, 01:34 PM
Okay, it shows the spiders names now, but it doesn't show a number in the heading:

2 members, 0 guests and spiders

Thanks for working on it, a bunch of us are appreciative.

Dennis

Same problem and before you ask I have edited the adv_portal_onlineusers file. As far as I know it shows up fine with spiders online but when they aren't (ie on my test board) it just says spiders instead of 0 spiders.

dsboyce8624
06-01-2005, 01:36 PM
Okay I played and got it.

In the other thread it says to add $numspiders and it should be $numberspiders.

Working fine now. You might wanna add that to the first post Amy, when you add the install button.

Thanks a bunch for the great work.

Dennis

blueuniverse
06-01-2005, 01:42 PM
Thanks, sorted for me as well. :)

TTG
06-01-2005, 11:51 PM
Thanks Amykhar .. works well :)

amykhar
06-02-2005, 12:06 AM
Thanks Amykhar .. works well :)
Good to know. This one was a pain in the patooty to do because it's been so long since I installed the portal that I forgot that it had bits of code in global.php. Took me forever and a day to figure out why it wasn't working.

Boofo
06-02-2005, 06:04 AM
Is there a chance this might work with vBAdvanced or does it only work with the CMPS?

amykhar
06-02-2005, 10:23 AM
No clue. Try it and see :)

Amy

dsboyce8624
06-02-2005, 03:09 PM
Is there a chance this might work with vBAdvanced or does it only work with the CMPS?

Works great.

Gemma
06-04-2005, 06:28 PM
Amy this worked great wit vba CMPS 1.01

Any ideas how to get it showing the number of spiders from vba CMPS 2? :)

amykhar
06-04-2005, 08:05 PM
Amy this worked great wit vba CMPS 1.01

Any ideas how to get it showing the number of spiders from vba CMPS 2? :)
You're kidding, right? I had no idea there was such an animal.

Amy

kall
06-04-2005, 08:58 PM
Amy this worked great wit vba CMPS 1.01

Any ideas how to get it showing the number of spiders from vba CMPS 2? :)
Just do exactly as you did to get it working on 1.0 and 1.01.

Gemma
06-04-2005, 11:05 PM
You're kidding, right? I had no idea there was such an animal.

Amy

Nope vba 2 RC1 was released last night :)

Just do exactly as you did to get it working on 1.0 and 1.01.

Doesn't work for me,I have tried placing the code in the includes/vba_cmps_includes_template.php file and editing the template but it doesn't show the number of spiders.I get this now -

13 members and 8 guests and spiders

Have I missed something?

amykhar
06-04-2005, 11:14 PM
Did you reupload my copy of the module? I didn't even need to change the vba_cmps_includes_template.php file when I installed just now. I simply changed the onlineusers template and reuploaded my copy of the module and it's working.

Amy

Gemma
06-04-2005, 11:45 PM
Thank You Amy.

I was sure I had re-uploaded your version of onlineusers to my site.Obviously not! Works now :rolleyes: :confused:

Gemma


EDIT: it is showing the number of spiders now but is also showing double for the stats :(

8 members and 0 guests and 2 spiders whien I only have -

4 members and 0 guests and 1 spiders (this may be a CMPS fault though because WOL shows okey everywhere else)

Any ideas?

dsboyce8624
06-04-2005, 11:53 PM
You're kidding, right? I had no idea there was such an animal.

Amy

It's new, and technically still in beta.

kall
06-05-2005, 12:42 AM
Thank You Amy.

I was sure I had re-uploaded your version of onlineusers to my site.Obviously not! Works now :rolleyes: :confused:

Gemma


EDIT: it is showing the number of spiders now but is also showing double for the stats :(

8 members and 0 guests and 2 spiders whien I only have -

4 members and 0 guests and 1 spiders (this may be a CMPS fault though because WOL shows okey everywhere else)

Any ideas?
Ahh yes, I am experiencing that too..hadn't noticed until now.

divided_by_fear
10-29-2005, 04:24 AM
yeah mine still aint showing the number of spiders it just shows this 1 members and 0 guests and spiders but i think this could be cause there index page has changed and them codes aint in there no more

amykhar
10-29-2005, 01:14 PM
Kall, this mod is for 3.0, not 3.5 ;) of course it doesn't work on your site.

kall
10-29-2005, 07:44 PM
Kall, this mod is for 3.0, not 3.5 ;) of course it doesn't work on your site.
*boggles*

Given that Beta 1 wasn't released until 5 days after I posted that... I am fairly sure I would have been running 3.0.x at that point. ;)

amykhar
10-29-2005, 10:36 PM
oops. Sorry :blush: I didn't see the date.