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
  #52  
Old 04-11-2005, 10:30 AM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this and the other one working with cmps 1.0.1 and geek articles 3.51 ? because this one didn't work for me and the other one's instructions cannot be completed because the file change we need to make cannot be made.
Reply With Quote
  #53  
Old 04-12-2005, 02:14 AM
misuse misuse is offline
 
Join Date: Apr 2003
Location: San Diego, CA USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Two things:

1) Even though I have it set to "Show the thread/article icon", nothing shows. The poster avatar will show when enabled however.

2)In the URL to default image section it keeps adding the slash before the UNC, as follows:
/http://www.bloodydecks.com/forums/gas/images/default.jpg
Reply With Quote
  #54  
Old 04-19-2005, 05:20 PM
KTBleeding's Avatar
KTBleeding KTBleeding is offline
 
Join Date: Feb 2004
Location: Tooele, UT
Posts: 756
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by misuse
Two things:

1) Even though I have it set to "Show the thread/article icon", nothing shows. The poster avatar will show when enabled however.

2)In the URL to default image section it keeps adding the slash before the UNC, as follows:
/http://www.bloodydecks.com/forums/gas/images/default.jpg
Same here, I even hardcoded the icon in (removed the conditional statements) and it still won't show up.
Reply With Quote
  #55  
Old 04-19-2005, 05:29 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

Thats becasue this is designed for GAS2.0

I havent had time to develop one for 3.0 yet. This will work - but it will not use GAS3x header image or byline. It will only show first x amount of chars from the article.

I have a rough version on my site for 3.0 but havent had time to rework it properly though. If anyone wants to finish it up - I am more than happy to help by providing the code.
Reply With Quote
  #56  
Old 04-29-2005, 05:06 PM
misuse misuse is offline
 
Join Date: Apr 2003
Location: San Diego, CA USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyword on what's happening with getting this set up to work with 3.5 yet?
Reply With Quote
  #57  
Old 04-29-2005, 06:57 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

I sent tpr some prototype stuff I use on my site and he tweaked it some so its now working for him. He said he would post it when he gets a minute.

HTH's
Reply With Quote
  #58  
Old 04-29-2005, 06:59 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made a module to display categories, should I post?
Reply With Quote
  #59  
Old 04-29-2005, 07:00 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 Lionel
I made a module to display categories, should I post?
hell ya. Is it like the one for last x articles? If its different - post a new add on. I am sure many would benefit.
Reply With Quote
  #60  
Old 04-29-2005, 07:08 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here you go. I grouped all articles as subforums under one category in forums named articles.
then I made a module named geekcategories.php (replace parentid=xx with the main category number)

PHP Code:
<?
$result_articlescategories = $DB_site->query("
SELECT * FROM forum WHERE parentid=XX ORDER BY displayorder
 
"); 
 
 
 
while ($artcatego = $DB_site->fetch_Array($result_articlescategories)) {
 
$artid = $artcatego[forumid];
 
$arttitle = $artcatego[title];
 
$artdescription = $artcatego[description];
 
$artthreadcount = $artcatego[threadcount];
 
eval('$categobits .= "' . fetch_template('adv_portal_artcategobits') . '";'); 
 
}
 
$DB_site->free_result($result_articlescategories);
 
 
 
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_artcatego') . '";');
 
 
 
unset($artcatego,$artid,$arttitle,$artdescription,$artthtreadcount);
 
?>
then I created the templates.
adv_portal_artcatego
Quote:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Categories</strong></span></td>
</tr>
$categobits
</table>
<br />
adv_portal_artcategobits (replace forums with yours)
Quote:
<tr class="alt1"><td><table width="100%" cellpacing="0" cellpadding="0" border="0"><tr class="alt1"><td><span class="smallfont"><strong><a href="/forums/forumdisplay.php?f=$artid" title="$artdescription">$arttitle</a></strong></span></td><td align="right"><span class="smallfont"><font size="1" color="#666666"> ($artthreadcount)</font></span></td></tr></table></td></tr>
Reply With Quote
  #61  
Old 05-06-2005, 02:47 PM
Troy McClure Troy McClure is offline
 
Join Date: Feb 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like a couple of others I am having trouble with the module displaying. If I make it a "featured" article and specify the article number, the module shows up fine but if I go with the random method nothing shows at all on my front page.

Anyone figure out a fix?

Thanks,

Troy
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 06:19 AM.


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.04519 seconds
  • Memory Usage 2,313KB
  • 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
  • (1)bbcode_php
  • (4)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