Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBaCMPS Featured/Random Geek Articles Details »»
vBaCMPS Featured/Random Geek Articles
Version: 1.2, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-04-2005 Last Update: 02-01-2005 Installs: 38
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-18-2005, 06:00 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hockyfan
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
I think that it is one of those random things. Unless there is some nuance with mySQL's rand() function that I am not aware of, then its simply down to the luck of the draw and maybe one of your articles are simply getting a bit more lucky than others. I have refreshed your home page several times and occasionally I will get one I have already seen, but that is typical of something being random.
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
Reply With Quote
  #23  
Old 02-02-2005, 04:46 PM
hpwilhelm hpwilhelm is offline
 
Join Date: Mar 2002
Location: Norway
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 02-02-2005, 06:03 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hpwilhelm
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.
Huh... just noticed the new release. Ill look into it.
Reply With Quote
  #25  
Old 02-02-2005, 06:52 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the nail geek
Huh... just noticed the new release. Ill look into it.
Right - here is the minor fix:

Dont follow Step 2

Ill update the package - Thanks
Reply With Quote
  #26  
Old 02-12-2005, 07:27 PM
hpwilhelm hpwilhelm is offline
 
Join Date: Mar 2002
Location: Norway
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the nail geek
Right - here is the minor fix:

Dont follow Step 2

Ill update the package - Thanks
Thanks for the update!

One more question: How do I get it to enable HTML?
Reply With Quote
  #27  
Old 02-12-2005, 07:47 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hpwilhelm
Thanks for the update!

One more question: How do I get it to enable HTML?
hmmm. That should be dependant on the post it pulls. Is there HMTL enabled in the post itself?

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.
Reply With Quote
  #28  
Old 02-12-2005, 08:28 PM
hpwilhelm hpwilhelm is offline
 
Join Date: Mar 2002
Location: Norway
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 02-12-2005, 08:49 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hpwilhelm
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
hmmm.

If only admins can post. try this:

replace (in your modules/featuredgeekarticles.php)
PHP Code:
$geek_feature['message'] = parse_bbcode2($geek_feature['pagetext'], 01$allowsmilie1); 
with
PHP Code:
$geek_feature['message'] = parse_bbcode2($geek_feature['pagetext'], 11$allowsmilie1); 
I havent tested... but it should work.
Reply With Quote
  #30  
Old 02-13-2005, 02:38 PM
hpwilhelm hpwilhelm is offline
 
Join Date: Mar 2002
Location: Norway
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! It worked perfectly!
Reply With Quote
  #31  
Old 02-13-2005, 02:50 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hpwilhelm
Thanks! It worked perfectly!
Cool. Glad to have helped. Hit install when you get a minute please
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 09:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04579 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete