![]() |
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')."\";"); |
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. ;)
|
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 |
sure lionel
let me know what you need. i send you a pm with the code change not to show in your selected forums. |
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')."\";"); |
open showthread.php. find the code:
PHP Code:
PHP Code:
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. |
I am looking at your file now... I just downloaded
|
ok ;)
|
In your hack, looks like it will popup for every page even the registration page....
|
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.
|
no. it will show only in the templates you place the $vbpopup variable. however, if you want to use the code above, skip the global.php mod.
|
;) glad you like it lionel. i'm here to help if i can. what do you think about the post in site feedback?
|
the one about your hack? Some people think it is annoying. I disagree totally. Most forums do not let guest read at all. I think it is a good teaser to let them in a little, see what they miss, but cannot give it all. It is better than to keep the guest totally locked out. How would they know about what they are missing?
and you know what? I gain 131 members from intall date |
i'm glad that you agree with me. read more here please:
https://vborg.vbsupport.ru/showthrea...threadid=35304 is about my vbPopup hack, and how people make fun of my work. i went to bed to 4am in the morning only to finish it... also i need you to tell me if the hack is flexible enough. i tried my best to make it as simple as possible. |
once I am done, I will post in there.
|
thanks lionel
|
I get a javascript error again here
I skipped global.php, place the code twice in showtread, ran the template... , placed code in headinclude... , js in forums... |
hmm.. i dont get any java errors and the popup is there
make sure you copy exacly the code... i see that the popup is not placed the same way i know me.. that means you still have some of your old code in there. |
I reverted, but am using your popup design to display. I am still going to post something in a few. Thanks for help
|
you are welcome lionel. glad it worked great.
|
lionel, you still have a problem. you placed the java code in head. this will give you java errors when a member visit the forum! please run the template installer. you will not get anymore errors after that. ;)
|
It's the exclude code that does not work. All excluded forums are popping up
|
try this:
PHP Code:
|
that's what I have... shouldn't it be forum instead of thread? I also have this $adpopup in forumdisplay template
|
you cannot have it in 2 places... global.php and showthread.php
select only the one you want. |
it is only in global.php. I reverted to original...
|
ok... replace the code with this:
PHP Code:
|
thanks
|
hehe, i change it. i put the != negation instead of == afirmation. :p
|
All times are GMT. The time now is 06:59 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|