Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#11   04-08-2008, 09:58 PM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: WOL forumdisplay


Odd i can't get that to work, I've tried forumdisplay_start/complete/ and global_start/complete and nothing will return the latest member or total member count for me.

I checked your query with a few other popular mods that query the username (such as VBA) and its the same exact code, So i'm not sure what i'm doing wrong.

I've got this for a plugin which should also give me the userid and active member counts and the such

// get total members and newest member from template
$numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);
$newusername = $vbulletin->userstats['newusername'];
$newuserid = $vbulletin->userstats['newuserid'];
$activemembers = vb_number_format($vbulletin->userstats['activemembers']);
$show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false;

I've tried putting all those variables into forumdisplay template without any luck so far.

I'll keep looking for other ways, until i can figure this one out Thanks for your help so far
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros

Last edited by Dave; 04-08-2008 at 10:04 PM.
Quote   |  



#12   04-08-2008, 10:04 PM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,560 Location: Anaheim, CA
Re: WOL forumdisplay


Add this to the top of the plugin (note: stay out of the global_start, stay to a forumdisplay_):

global $vbulletin;
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#13   04-08-2008, 11:31 PM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,560 Location: Anaheim, CA
Re: WOL forumdisplay


Now that I think about it, it is probably due to the fact that its called with the datastore, and does not have the specialtemplates being called. I have a fix for it, but it requires a template edit.

Open file: forumdisplay.php

Find:

Code:
'prefixcache'
Replace with:

Code:
'prefixcache',
	'userstats'
Then add what I told you to add in the template, then throw the variable in the template.
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#14   04-08-2008, 11:44 PM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: WOL forumdisplay


So Mike, wanna have my babies!

That worked, thanks a ton sir!


Search Engine Optimization Strategies - Search Engine Optimize vBulletin
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  



#15   04-08-2008, 11:45 PM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,560 Location: Anaheim, CA
Re: WOL forumdisplay


Well the part where your a dude isnt a great idea...so marriage no.

But your welcome
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#16   04-08-2008, 11:55 PM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: WOL forumdisplay


Is anyone intersted in this as i can package it up and release it here if there is interest for it?
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  



#17   04-08-2008, 11:58 PM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,560 Location: Anaheim, CA
Re: WOL forumdisplay


Well, do not include your forumdisplay.php ;).

Is yours fully phrased? Are you using the already established phrases?

BTW: It is so weird talking to you on three different forums, and you have a different name on each lol.
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#18   04-09-2008, 12:05 AM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: WOL forumdisplay


lol yes it is

Its using phrases from the index template as it was a straight copy and paste over into forumdisplay
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  



#19   04-09-2008, 01:42 AM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,560 Location: Anaheim, CA
Re: WOL forumdisplay


It might be easier if you are going to release it, to throw everything from what you copied over, and then add it to a new template, then eval a variable, so you can just insert $newvariablehere anywhere in the forumdisplay template.
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#20   04-09-2008, 02:28 AM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: WOL forumdisplay


Done, its almost ready to go, I'm seeing if i can play around with automatic template insertion :evil:
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting an AD after 5 Threads on FORUMDISPLAY ArtemC vBulletin Hacks - Modifications 3 12-19-2007 06:41 PM
what causes forumdisplay.php loading slow? henry_nguyen vBulletin Questions 4 09-28-2007 09:25 PM


All times are GMT -6. The time now is 12:49 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory