vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBaCMPS Latest Geek Articles (https://vborg.vbsupport.ru/showthread.php?t=73828)

The Geek 01-04-2005 10:00 PM

vBaCMPS Latest Geek Articles
 
Hack: vBadvanced CMPS Latest Geek Articles
Version: 1.0
Author: Me

Instructions:
upload modules/latestgeekarticles.php into modules folder
upload admincp/latestgeekarticles_install.php into admincp folder
run above file
Follow the slight file modifications 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 Latest Topics module, but is instead set up to pull the 'Latest articles' from a specified forum. This is really designed for those using The Geek Article System.

Check out the Readme that comes in the package.

Change Log
version 1.3 uploaded 02/02/05
Minor update to module in order to work with new vBaCMPS release

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 in Latest Articles.
Please note that this means there is now a file edit. Please read the README.

version 1.1 uploaded 07/01/05
Fixed bug where when users had vba excluded forums set, it caused a query error. To fix, download latest package and upload latest modules/latestgeektopics.php overwriting your old one.


note:if you dig this module, you may be interested in the Featured/Random Articles one too.

PS: Your template will be a tad different from my screen shot as this is for my style.

nJoy

TCB 01-05-2005 03:24 PM

Yeah baby, I like. Thanks a lot https://vborg.vbsupport.ru/external/2005/01/7.gif

Just one of the things that I miss by not having v3 articles is the 'featured article'. Perhaps this can be replaced by a 'random article' block that uses the first x characters of the post?

TTG 01-05-2005 03:48 PM

Easy install, no problems .. thanks for the hack

Clicked Install

The Geek 01-05-2005 04:21 PM

Quote:

Originally Posted by TCB
Yeah baby, I like. Thanks a lot https://vborg.vbsupport.ru/external/2005/01/7.gif

Just one of the things that I miss by not having v3 articles is the 'featured article'. Perhaps this can be replaced by a 'random article' block that uses the first x characters of the post?

Actually, it most liekly wouldnt be difficult to add a featured article module. It would require you to set the threadid in your vbacmps settings though. So in other words, every time you changed the feautred article, it would through vbacmps.

Does that sound pants or would you be interested in it?

fly 01-05-2005 06:03 PM

Quote:

Originally Posted by the nail geek
Actually, it most liekly wouldnt be difficult to add a featured article module. It would require you to set the threadid in your vbacmps settings though. So in other words, every time you changed the feautred article, it would through vbacmps.

Does that sound pants or would you be interested in it?

Please? Please? Please?

*biting fignernails*

The Geek 01-05-2005 07:10 PM

Quote:

Originally Posted by flypaper
Please? Please? Please?

*biting fignernails*

Done guys :)

I have released a Featured/Random Articles module here->
https://vborg.vbsupport.ru/showthread.php?t=73836

fly 01-05-2005 07:27 PM

Holy crap that was fast! THANK YOU

rlamego 01-06-2005 02:48 AM

Thanks again! =)

bold 01-06-2005 03:07 AM

help i get this error.

Code:

Database error in vBulletin 3.0.3:

Invalid SQL:
                  SELECT
                  IF(votenum >= 1, votenum, 0) AS votenum, IF(votenum >= 1 AND votenum != 0, votetotal / votenum, 0) AS voteavg,
                  thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid
                  , thread.iconid AS threadiconid, iconpath AS threadiconpath
                        ,thread.forumid, forum.title AS forumtitle
                       
                        , NOT ISNULL(subscribethread.subscribethreadid) AS subscribed
                        FROM vb3_thread as thread
                        LEFT JOIN vb3_icon USING (iconid)
                        LEFT JOIN vb3_forum AS forum ON (thread.forumid = forum.forumid)
                       
                        LEFT JOIN vb3_deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
                        LEFT JOIN vb3_subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = 1)
                        WHERE open <> '10' AND thread.visible = 1 AND thread.forumid NOT IN(6,27,33,34,35) Array AND deletionlog.primaryid IS NULL
                        ORDER BY lastpost DESC
                        LIMIT 5
       
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Array AND deletionlog.primaryid IS NULL
                        ORDER BY lastpost DE

mysql error number: 1064


The Geek 01-06-2005 06:04 AM

What do you have in your settings as your forum ids?

bold 01-06-2005 07:10 AM

Quote:

Originally Posted by the nail geek
What do you have in your settings as your forum ids?

i have 33,34,35

bold 01-06-2005 07:14 AM

Quote:

Originally Posted by bold
i have 33,34,35

oh actually it was because i excluded 33,34,35 in the misc options so that it doesn't show up on the latest threads. is there a way i can only make the articles show up in the latest articles block and not in the latest threads block?

The Geek 01-06-2005 07:45 AM

Quote:

Originally Posted by bold
the misc options so that it doesn't show up on the latest threads. is there a way i can only make the articles show up in the latest articles block and not in the latest threads block?

hmmm... edit your latestgeekarticles.php module and remove $iforumperms in line 101 and let me know if that sorts it.

bold 01-06-2005 09:47 AM

nope didnt work. i get teh same error.

The Geek 01-06-2005 10:09 AM

Quote:

Originally Posted by bold
show up on the latest threads. is there a way i can only make the articles show up in the latest articles block and not in the latest threads block?

can you PM me temporary FTP and Admin details so I can have a look?

frage 01-06-2005 11:09 PM

Quote:

Originally Posted by bold
the misc options so that it doesn't show up on the latest threads. is there a way i can only make the articles show up in the latest articles block and not in the latest threads block?
yepp I have the same prob,
but nevertheless
I love your humour and your good work
frage

yinyang 01-07-2005 08:42 AM

nailgeek - you never cease to make me chuckle in your install instructions. gg.

i have a quick question for you. i plan on making one of my article forums a designated "Download" section.

i would then like to adapt the latest articles module and turn it into an additional "latest downloads" module.

is there any way to a) do this easily and b) are you planning on coming out with a "hottest articles" so i (i meaning you hopefully ... :P ) can adapt it to a "hottest download" module?

good stuff!!

The Geek 01-07-2005 11:45 AM

Quote:

Originally Posted by frage
yepp I have the same prob,
but nevertheless
I love your humour and your good work
frage

Updated package and fixed the bug when using exluded forum id's. It now works with them.

Yinyang-> There is no reason installs and readmes should be drab eh? ;)
I wouldnt see a problem with changing the phrase 'latest articles' to 'latest downloads' if that is all you are after. Just search your phrases for geek_articles_latest or were you after some other type of modification?

The 'Most popular' or 'Hotest Articles' would be a cinch. Would you guys prefer it as a seperate module or a configuration for Latest Articles? I think most would like it as a seperate module is my guess.

nJoy. Hope that update sorts the woes you guys had.

frage 01-07-2005 01:02 PM

nope..
ok mysql says: no prob for me,
and I would like to see the table for the latest article,
but no article ...
and yes: everybody could see this latest articles...

*a cup of coffee for the nail geek *
;)
frage

The Geek 01-07-2005 01:13 PM

Hi frage.

So you are saying that you are no longer getting a mysql error, but no 'Recent Articles' is showing up?

If so, give me the following settings:

Latest Geek Articles
Article forum id's
Maximum number of articles to show

Miscellaneous Options
Excluded Forums

Then, could you turn on Add Template Name in HTML Comments and give me a link to the homepage? And I will look into it for you.

frage 01-07-2005 01:51 PM

please have a look to your pm

thanks a lot for your help
frage

frage 01-07-2005 06:06 PM

you made may day!
:up:
thanks a lot
frage

The Geek 01-07-2005 06:21 PM

Quote:

Originally Posted by frage
you made may day!
:up:
thanks a lot
frage

No problem Frage. Thanks for helping me make the hack better ;)

yinyang 01-07-2005 06:44 PM

Quote:

Originally Posted by the nail geek
Updated package and fixed the bug when using exluded forum id's. It now works with them.

Yinyang-> There is no reason installs and readmes should be drab eh? ;)
I wouldnt see a problem with changing the phrase 'latest articles' to 'latest downloads' if that is all you are after. Just search your phrases for geek_articles_latest or were you after some other type of modification?

The 'Most popular' or 'Hotest Articles' would be a cinch. Would you guys prefer it as a seperate module or a configuration for Latest Articles? I think most would like it as a seperate module is my guess.

nJoy. Hope that update sorts the woes you guys had.

you're absolutely correct!!! installs and readmes should learn a thing or two from you!! but then you won't be so unique.

i want to install and latest articles and latest downloads. so then i can just 1) install latest articles and then take another copy of latest articles and 2) replace everywere it says "articles" with "downloads" (including the file name ) and upload. that should work right?

ooh ooh meee..... Most Popular (i like that term better) articles as a separate module!!!! please.

-yinyang

bold 01-07-2005 07:34 PM

Quote:

Originally Posted by the nail geek
No problem Frage. Thanks for helping me make the hack better ;)

thanks for fixing it :)

The Geek 01-07-2005 07:55 PM

Quote:

Originally Posted by yinyang
you're absolutely correct!!! installs and readmes should learn a thing or two from you!! but then you won't be so unique.

i want to install and latest articles and latest downloads. so then i can just 1) install latest articles and then take another copy of latest articles and 2) replace everywere it says "articles" with "downloads" (including the file name ) and upload. that should work right?

ooh ooh meee..... Most Popular (i like that term better) articles as a separate module!!!! please.

-yinyang

I think its going to be a bit harder than that.
Look... I felt bad so I just ran a quick 'Replace' on the install and module file. You can try those two (they install the same as Latest Articles)... Just remember that they are not something I support (I Am away for a week anyway so you're on your own ;) ).

Anyhoo... it should at least help get you started (if not do it for you!)

nJoy

MissKalunji 01-11-2005 12:59 PM

do you know how i can transform this hack to use it to show article on a non vb page?? i dont have vbapms and dont want to...
Lemme know

The Geek 01-13-2005 05:14 AM

Quote:

Originally Posted by MissKalunji
do you know how i can transform this hack to use it to show article on a non vb page?? i dont have vbapms and dont want to...
Lemme know

Hi there, I will take a look at it when I get back in town... It really shouldnt be too difficult to do :)

MissKalunji 01-13-2005 05:32 AM

Quote:

Originally Posted by the nail geek
Hi there, I will take a look at it when I get back in town... It really shouldnt be too difficult to do :)


:up: thank youuuuuuuuuuuu :classic:

mekro 01-16-2005 09:10 AM

Hi

I would like to use this but for a different way i will be using the geek article system for a yugioh site and it will be used for a Card of the Day feature.

In each card of the day is a picture of the card and I was wondering if instead of showing the latest article on the homepage would it be poccible just to show the image of it.

Anyhelp

Kirk

The Geek 01-16-2005 01:28 PM

Quote:

Originally Posted by mekro
Hi

I would like to use this but for a different way i will be using the geek article system for a yugioh site and it will be used for a Card of the Day feature.

In each card of the day is a picture of the card and I was wondering if instead of showing the latest article on the homepage would it be poccible just to show the image of it.

Anyhelp

Kirk

I wouldnt think that it would be overly difficult to do - however the code would need to pull the attachment (if that was how you were doing the picture).

If its only an image and not an article per say - maybe a photopost or vba gallery featured pic would suit your needs better?

msimplay 02-10-2005 04:01 PM

Any Chance of this for Vbadvanced the original version ?

The Geek 02-10-2005 08:57 PM

Quote:

Originally Posted by msimplay
Any Chance of this for Vbadvanced the original version ?

Hey there msimplay. Most likely not as I only use vbacmps. Couple that with the fact that there have been 11 installs in 2 months doesnt get me overly excited to do so. I would rather work on Geek Articles 3.0

That said... the module is very straight forward and could most likely be proted to anything you want with just a little investegatory work.

Let me know how you do if you decide to.

nathanaus 02-12-2005 06:55 AM

Do you know if this runs on vbaCMPS 1.0.1?

In the instructions for this it says to find:

Code:

if ($shownewpm)
{
        eval('$pmscript = "' . fetch_template('pm_popup_script') . '";');
        $footer .= str_replace('"private.php', '"' . $vboptions['bburl'] . '/private.php', $pmscript);
}

I don't seem to have that anywhere in my vba_cmps_include_bottom.php file.
As such where do I add "unset($fperms);" to now?

KTBleeding 02-13-2005 05:10 AM

Hmm. I can't get this to work. :(
I've tried everything I can think of.. It's active on all pages, every usergroup is set to view it, but it doesn't come up.

Do I have the settings incorrect?

nathanaus 02-13-2005 05:46 AM

Take adv_portal_ off the front of you templates being used list and re-save.

So instead of:
adv_portal_latestgeekarticles
adv_portal_latestgeekarticlebits

You would have:
latestgeekarticles
latestgeekarticlebits

*edit to add* what version of VBACMPS do you have? I can't find some of the code mentioned that needs to be changed, but it doesn't look like this mod is supported anymore

KTBleeding 02-13-2005 06:15 AM

Quote:

Originally Posted by nathanaus
Take adv_portal_ off the front of you templates being used list and re-save.

So instead of:
adv_portal_latestgeekarticles
adv_portal_latestgeekarticlebits

You would have:
latestgeekarticles
latestgeekarticlebits

*edit to add* what version of VBACMPS do you have? I can't find some of the code mentioned that needs to be changed, but it doesn't look like this mod is supported anymore

Nope, still doesn't work with that done. Thanks though.

I'm using 1.0.0 which is very strange cause I downloaded it from vbadvanced.com two days ago. :ermm:

Try searching for:
Code:

// $header replacement
The code should be RIGHT above that.

nathanaus 02-13-2005 06:36 AM

Nope no match. Thanks anyway. I'm using 1.0.1

Also I noticed you are including files and templates. Can that be done? I thought you had to have a file or a template?

KTBleeding 02-13-2005 06:40 AM

Weird? Is the closing php tag in your "vba_cmps_include_bottom.php" file? (The ?> at the very bottom of the page)

I just downloaded 1.0.1 and I see it in there.. Maybe it's possible the whole file isn't completed?

Jason McConnell 02-13-2005 07:02 AM

Quote:

Originally Posted by nathanaus
Nope no match. Thanks anyway. I'm using 1.0.1

Also I noticed you are including files and templates. Can that be done? I thought you had to have a file or a template?

It can be done with both, sometimes wit both a file and multiple templates. Take a look at the calendar module ;)


All times are GMT. The time now is 01:33 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
  • Page Generation 0.02068 seconds
  • Memory Usage 1,848KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete