![]() |
vBaCMPS Featured/Random Geek Articles
Hack: vBadvanced CMPS Featured/Random Geek Articles
Version: 1.2 Author: Me Instructions: upload modules/featuredgeekarticles.php into modules folder upload admincp/featuredgeekarticles_install.php into admincp folder run above fileFollow the file modification in the README File modifications: 1 Template modifications: 0 Installer: Yup. A very cool one. Phrased: Yup In a nutshell, this module is based upon the vBa news module, but is instead set up to pull a pre specified 'Featured Article' or even a 'Random Article'. This is really designed for those using The Geek Article System. If you don't have The Geek Article System, you are most likely very lonely anyway. version 1.2 uploaded 02/02/05 Updated Readme to work with latest vBaCMPS version 1.2 uploaded 07/01/05 Fixed 'Excluded Forums' bug that appeared to have been bitten by Zombie. It came back to haunt one user so I had to take drastic action and update it. It now WORKS with your 'excluded forums' setting. That is to say, you can exclude your acticle forums from 'Latest topics' but they will still happily appear as a featured article. Please note that this means there is now a file edit. Please read the README. Check out the Readme that comes in the package. note:if you dig this module, you may be interested in the Latest articles one too. PS: Your template will be a tad different from my screen shot as this is for my style. nJoy |
Thanks man! Just what I needed.
|
Hmmm
Do I have to have the geek article system installed for this to work? edit: apparently so, cause nothing is showing up! |
Quote:
You will need to have vBadvanced installed as a minimum though (as it uses its settings system). Just out of curiosity... what are you after if you don't have my article thingee installed? |
I have contests on my board and i want to have those as the 'featured thread' on my site. And I do have vBadvanced installed...
And you're right, I dont have Geek Articles installed and Im very lonely. Will you be my friend? edit: Oh yeah, and Im really dumb. I got it working. thx |
Quote:
1- Make sure that you have added the featuredgeekarticles module through vBaCMPS. 2- Make sure your 'Featured/Random thread' is set to yes and the next box has the threadid of the featured thread. like this: |
I've never seen an easier to install mod for vbadvanced than yours (never had one with an installscript before). And the text that you mention to come up with with every installer is hilarious every time https://vborg.vbsupport.ru/external/2005/01/7.gif.
I'll install this mod first thing tomorrowmorning. Thanks! |
nothing shows up for me too
|
Random doesn't work on my site. I've tried every combination of yes/no - forumids/threadids but it doesn't display anything.
Ooops! Almost forgot! Thanks for another great hack! =) |
Hey guys... those of you having problems... can you post the first 2 settings of your...um, settings (i.e. Featured or Random Article? and Featured thread id) and I will get it sorted for you ;)
|
Quote:
Love it, geek. |
For some reason, it seems to only be pulling certain articles over and over, while I listed about 4 forums with many articles each, I keep seeing the same ones being "randomly" featured. Is it possible I did something wrong? I have it set to random, and I have a list of the forums like this "1,2,3" - should there be spaces in the commas? Is there a setting I've overlooked?
Is there some kind of restriction on which articles it pulls? I know for certain I have many more articles than it has shown, even though I've refreshed my page many times and checked on multiple days, yet have only seen at most 5 different articles. h |
Quote:
Let me know if that is the case. otherwise Ill need the SQL statement. |
Not sure what you mean by the "SQL Statement," but the only adjustment I made was I changed the phrase "Random Article" to say "Featured Lesson," just based on my personal preferance on wording, no other changes were made and I am, indeed, using the "Random Article" option.
h |
Yea, after I posted my response I started refreshing. out of about 12 refreshes, I came up with 2 or 3 duplicates... but I guess that depends on the amount of articles you have.
'standard notation according to tab' or whatever was the one that seemed to want to appear more than others, however I was still getting pretty random results (just went back on and the one I just mentioned popped up a couple times... but still not overly disportionate). Do you still feel like its not 'random' enough? |
I feel like some of the forums' articles aren't being pulled, while other forums are constantly being pulled; not sure why.
h |
It might be perception, might be based on the proportion of articles in each forum. Try omitting the "constant" forums and seeing if you actually get output from the "never" forums.
Regards, Matt |
Is there any way to make it so it doesn't rely on how many articles there are per forum?
h |
Quote:
I am not sure what you are asking here. What mySQL does is select a random listing from one of the forums in your coma seperated field. It doesnt weigh the pull or anything. The randomness is occuring at mySQL level, not in the code. Sorry if that doesnt help. |
No, that's what I had thought, memobug's post led me to believe otherwise, but no worries. :)
So is there any reason though I keep getting one thread many times, while other ones I have yet to see at all? h |
Quote:
The other choice is to keep a cache of the 'last shown feature' and then incriment to the next. In other words, instead of random you would get a cycled. The random factor then would be the person loading the page. They could still see the same ad - it just depends on how many people viewed since they were last on. It would also require an extra select and an extra update (essentially 2 more queries to do) - hmmmm - I wonder though... I wonder if I could do something with a cookie that may mix it up a little. Ill have to give it some thought. If anyone has any ideas - feel free :) |
Do this work with CMPS v1.0.1?
I cant find where to add the second code in the include_bottom.php. And it doesn't seem to work without it. :) |
Quote:
|
Quote:
Dont follow Step 2 Ill update the package - Thanks |
Quote:
One more question: How do I get it to enable HTML? |
Quote:
Aside from the dangers of posting HTML, it could also mess up your page as the HTML could get snipped before close tags. Let me know. |
Yes, the post is in a HTML enabled forum :)
I'm aware of the dangers of HTML, so the articles in this forum may only be posted by admins, and all comments will be moderated ;) |
Quote:
If only admins can post. try this: replace (in your modules/featuredgeekarticles.php) PHP Code:
PHP Code:
|
Thanks! It worked perfectly! :D
|
Quote:
|
Quote:
|
Is there any way to show the first attachment in the thread on the "featured" module? That would be killer. I'm having a look at the code trying to see if I can figure it out, but I don't know how to pull the attachment from the database. :x
|
What are the templates we use for this? THey are not listed in the install files. :(
Also should this be a center, right, or left col? |
Quote:
hth's |
Yes they are installed but when we make the module we need the names of the templates.. otherwise they are uncached and add load to the pages...
|
Quote:
HTH's |
Well let me be the first to ask the question....
Is there any way to do this with vbindex? Yeah.... I know. But its too late. So since this has a installer I cant even fiddle with it. Help? |
Quote:
Ill try to keep this in mind for the next version :) |
yo.. thanks for your works
but i dunno why i can not get eandom articles to work. it showed fine for featured articles, but nothing shows when i choose random for setting, i choose no for the first option (obviously.. ) then enter : 5,6,7 (forum id for the articles) nothing show up :'( |
Quote:
Can you send me screenies and ill scan it for you. Thanks (BTW: none of those forumids are in the vba Excluded Forums section?) Cheers |
All times are GMT. The time now is 02:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|