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 Featured/Random Geek Articles (https://vborg.vbsupport.ru/showthread.php?t=73836)

The Geek 01-18-2005 06:00 AM

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 :)

hpwilhelm 02-02-2005 04:46 PM

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. :)

The Geek 02-02-2005 06:03 PM

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.

The Geek 02-02-2005 06:52 PM

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

hpwilhelm 02-12-2005 07:27 PM

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?

The Geek 02-12-2005 07:47 PM

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.

hpwilhelm 02-12-2005 08:28 PM

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 ;)

The Geek 02-12-2005 08:49 PM

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.

hpwilhelm 02-13-2005 02:38 PM

Thanks! It worked perfectly! :D

The Geek 02-13-2005 02:50 PM

Quote:

Originally Posted by hpwilhelm
Thanks! It worked perfectly! :D

Cool. Glad to have helped. Hit install when you get a minute please ;)


All times are GMT. The time now is 01:47 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.01112 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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