vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   exclude forums (https://vborg.vbsupport.ru/showthread.php?t=35290)

Lionel 02-21-2002 03:21 PM

in the below forum, I'd like to exclude some forums. How can I add that simple line?

if ($bbuserinfo['userid']==0) {
eval("\$adpopup = \"".gettemplate('ad_popup')."\";");

TECK 02-22-2002 12:46 AM

lionel, i wanted to add this mod to my hack... check my sig why i changed my mind. you should check my vbPopup hack if you want to have a better version of java code (adapted for VB) and also an easier integration in templates. as for your request here, i will pm you with the code. let me know here if is what you wanted. ;)

Lionel 02-22-2002 12:59 AM

I saw your hack. I painfully installed mine with a combination of using a different template and it is working. I just have a couple of totally public forums that I do not want to display the popups. Could you please help me?

Lionel

TECK 02-22-2002 01:05 AM

sure lionel
let me know what you need.

i send you a pm with the code change not to show in your selected forums.

Lionel 02-22-2002 01:08 AM

I am no expert, I struggle on doing what I need. I simply need to finish this line

if ($bbuserinfo['userid']==0) and forumnumber!=[xxx] or forumnumber!=[xxx] {
eval("\$adpopup = \"".gettemplate('ad_popup')."\";");

TECK 02-22-2002 01:17 AM

open showthread.php. find the code:
PHP Code:

$forum=getforuminfo($thread['forumid']); 

below this add:
PHP Code:

if ($bbuserinfo[userid]==and ($thread['forumid']!=xx or $thread['forumid']!=xx)) {
  eval(
"\$adpopup .= \"".gettemplate('ad_popup')."\";");


note: the $forum=... code shows 2 times in showthread.php file. do it twice.

let me know if it worked. ;)

i recommend you to install my hack. due to speed performance and compatibility with VB. plus is totally customizable. check my sig for vbPopup.

Lionel 02-22-2002 01:18 AM

I am looking at your file now... I just downloaded

TECK 02-22-2002 01:20 AM

ok ;)

Lionel 02-22-2002 01:25 AM

In your hack, looks like it will popup for every page even the registration page....

Lionel 02-22-2002 01:28 AM

looks very interesting the way you did it. Since I am also using the flag hack (mandatory) I could serve ad to members leaving in a specific country.


All times are GMT. The time now is 01:32 PM.

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.01025 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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