vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add a banner image to each forum (vb3.5) (https://vborg.vbsupport.ru/showthread.php?t=94119)

azmi 10-05-2005 06:55 AM

Quote:

Originally Posted by commonsense
None that I know of.. this is a fresh 3.5 install.

are you sure , that you installed the right version of the xml?
in your case it is the banner_image.xml to import.

commonsense 10-05-2005 12:21 PM

Quote:

Originally Posted by azmi
are you sure , that you installed the right version of the xml?
in your case it is the banner_image.xml to import.

Yep. That's what I installed. I am going to try removing it today and doing it again and see what happens.

I have the interface in the admincp for all the forums, but I get the error when I try to add the code to the two template files.

Zachariah 10-05-2005 12:55 PM

Quote:

Originally Posted by commonsense
Yep. That's what I installed. I am going to try removing it today and doing it again and see what happens.

I have the interface in the admincp for all the forums, but I get the error when I try to add the code to the two template files.

Just looking @ your choice of words "two template files" - You are editing in the template system, not forumdisplay.php and showtread.php right ? :confused:

AdminCP => Styles & Templates => Style Manager => choose the style

*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD

commonsense 10-05-2005 01:38 PM

Quote:

Originally Posted by Zachariah
Just looking @ your choice of words "two template files" - You are editing in the template system, not forumdisplay.php and showtread.php right ? :confused:

AdminCP => Styles & Templates => Style Manager => choose the style

*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD

Aw Jeez. I didn't realize that. I am so use to stuff like PostNuke where I am use to having to drop stuff into the file itself...

Lemme give that a shot. :o

Zachariah 10-06-2005 01:11 AM

Quote:

Originally Posted by commonsense
Aw Jeez. I didn't realize that. I am so use to stuff like PostNuke where I am use to having to drop stuff into the file itself...

Lemme give that a shot. :o

ya, I did postnuke for a few years .... :glasses:

murrtex 10-10-2005 05:17 PM

when i want to add banner in each forum,

i get error like that;

Database error in vBulletin 3.5.0:

Invalid SQL:

REPLACE INTO datastore
(title, data)
VALUES
('forumcache', 'a:1373:{i:1;a:23:{s:7:\"forumid\";i:1;s:7:\"style id\";i:0;s:5:\"title\";s:29:\" Administrator (YÖNETİME ÖZEL)\";s:11:\"description\";s:0:\"\";s:7:\"optio .....
.blap blap blap

what should i do???

Zachariah 10-10-2005 08:13 PM

Quote:

Originally Posted by murrtex
when i want to add banner in each forum,

i get error like that;

Database error in vBulletin 3.5.0:

Invalid SQL:

REPLACE INTO datastore
(title, data)
VALUES
('forumcache', 'a:1373:{i:1;a:23:{s:7:\"forumid\";i:1;s:7:\"style id\";i:0;s:5:\"title\";s:29:\"Administrator (Y?NETİME ?ZEL)\";s:11:\"description\";s:0:\"\";s:7:\"optio. ....
.blap blap blap


what should i do???

Have you uninstalled and reinstalled ? - perhaps the install had a problem ?

murrtex 10-10-2005 08:38 PM

yes i did ..but result is same :(

if i understand why being like this , i'll fix it but i dit not understand why..

Zachariah 10-10-2005 08:40 PM

Quote:

Originally Posted by murrtex
yes i did ..but resut is same :(

if i understand why being like this , i'll fix it but i dit not understand why..

If you uninstall/deactivate do you still have the same error ? (trying to root out if the DB needs fixed or the hack is the cause of the problem.)

murrtex 10-10-2005 08:47 PM

no after unistall everything is okey. i can add new forum etc. ..

Zachariah 10-10-2005 09:05 PM

If this is a new install import "banner_image.xml" the other two are updates.

murrtex 10-10-2005 09:46 PM

no this is new installation.. for 3.5.0 ...but 3 day ago i used there were no problem it was okey...and i uninstalled..than today i wanna install again bu it does not :(

Zachariah 10-11-2005 12:18 AM

Quote:

Originally Posted by murrtex
no this is new installation.. for 3.5.0 ...but 3 day ago i used there were no problem it was okey...and i uninstalled..than today i wanna install again bu it does not :(

What other plugins do you have @ Hook Location : forumdata_start ? (or better than that other hacks installed ?)

smoknz28 10-11-2005 01:05 AM

Question with this one here....

I'm running v3.50 and would like to know if this install will work with my adding php code from phpAdsNew.

The code looks like this:

<?php
if (@include(getenv('DOCUMENT_ROOT').'/phpadsnew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:9', 0, '_blank', 'http://www.g-forcesuspension.com', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>

Zachariah 10-11-2005 01:13 AM

Not yet no. You can spit out the java vs. PHP and it will work @ the moment.

Quote:

Originally Posted by smoknz28
Question with this one here....

I'm running v3.50 and would like to know if this install will work with my adding php code from phpAdsNew.

The code looks like this:

<?php
if (@include(getenv('DOCUMENT_ROOT').'/phpadsnew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:9', 0, '_blank', 'http://www.g-forcesuspension.com', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>


Bounce 10-11-2005 07:30 PM

Works a treat , thank you

gc1 10-11-2005 08:26 PM

This is one fantastic mod.... you can do about anything you want with this baby, thanks alot

murrtex 10-11-2005 09:48 PM

2 days ago it was workin. and now failed..i found something,for example 2 days ago i have 100 forum,and now i have 10 more..i mean 110 forums..
is does not with 110 forums..(that errors)(forumcashe) i think sql can not read that table because it is big file more or less 1 MB
when i delete 5,10,15 forums it work :) (there is no error)

we should do something for more forums ..i am not coder :( i dont know what will do at php files or sql files ??

have any idea?

Zachariah 10-11-2005 09:52 PM

Quote:

Originally Posted by murrtex
2 days ago it was workin. and now failed..i found something,for example 2 days ago i have 100 forum,and now i have 10 more..i mean 110 forums..
is does not with 110 forums..(that errors)(forumcashe) i think sql can not read that table because it is big file more or less 1 MB
when i delete 5,10,15 forums it work :) (there is no error)

we should do something for more forums ..i am not coder :( i dont know what will do at php files or sql files ??

have any idea?

that sounds like a error with your Database.

repair / reoptimize - I have 190 forums on my site. w/o problems. I had 270 w/ VB 3.0 many moons ago w/o problems.

AdminCP => Maintenance => Repair / Optimize Tables => Check All

murrtex 10-11-2005 10:22 PM

thanks,100 is the only example number..i have 1400 forum

murrtex 10-11-2005 10:33 PM

i click install thank u

Zachariah 10-12-2005 02:18 AM

Quote:

Originally Posted by murrtex
thanks,100 is the only example number..i have 1400 forum

What do you have your forums @ now 1350 ? When did it start working ?

murrtex 10-12-2005 02:53 AM

yes,around 1300

john1744 10-13-2005 05:38 AM

Is there any way to set this to disable it on a per user basis?

Zachariah 10-13-2005 12:34 PM

Quote:

Originally Posted by john1744
Is there any way to set this to disable it on a per user basis?

Per user. I don't see a problem. You may want to do "usergroup". That way all in the group vs. editing 1 @ a time. Its easy to move a ton of people or setup a Promotions when a user does this or that upgrade to the new user level. The new group level is in a <if> statment to not show the banner.

Ill kick around the idea and see what I can come up with.

john1744 10-13-2005 03:31 PM

Cool man, we were using some rather large gaming banners, and theres a couple 56Kers that didn't like them.

MissKalunji 10-14-2005 12:02 AM

Quote:

Originally Posted by rjerina
nice mod. it would be nice too to be able to add in your own html code like someone else said as well, as a lot of people use Google Adsense on their forums :)

n e news?

Zachariah 10-14-2005 01:24 AM

Quote:

Originally Posted by MissKalunji
n e news?

You can post any HTML / JAVA . No PHP at this time.

https://vborg.vbsupport.ru/attachmen...chmentid=34099

Changelog:
------------
1.6
Banner shows up on each thread
adds: 1 more template edit to the install
Requested by: - Ryan McBain

** Note: 1.5 - 1.6 needs only to edit SHOWTHREAD not Reinstall the XML files

1.5
Added HTML option (tested w/ Java and Iframe from phpadsnew output)
Added 3.x to VB 3.5 upgrade XML file.

funinthesun 10-15-2005 06:40 PM

Works fine. Thanks *installed*

one9er 10-18-2005 01:09 PM

Thanks Zachariah this is just what I wanted. INSTALLED!

makaveli420 10-19-2005 02:48 AM

works awesome!! exellent idea..

RaceJunkie 10-19-2005 07:22 PM

Thanks I love it

Clicks Install

Allan 10-21-2005 07:54 AM

hey :)

this hack work with tle .swf (flash) extensions ?

Zachariah 10-21-2005 11:36 AM

Quote:

Originally Posted by Allan
hey :)

this hack work with tle .swf (flash) extensions ?

It will if you paste your code in the HTML/Paste Area.

Allan 10-21-2005 11:53 AM

yes, work perfectly , thanks :)

"Click Install" ;)

athoob 10-24-2005 03:42 PM

Thanx :)

piXelatedEmpire 10-25-2005 08:16 AM

Quote:

Originally Posted by Zachariah
Per user. I don't see a problem. You may want to do "usergroup". That way all in the group vs. editing 1 @ a time. Its easy to move a ton of people or setup a Promotions when a user does this or that upgrade to the new user level. The new group level is in a <if> statment to not show the banner.

Ill kick around the idea and see what I can come up with.

Just curious if this is still being worked on.. would be a fantastic feature

HormZ 10-25-2005 11:11 AM

Am I the only dunce or what!! :ermm:

I did what I thought was a perfect install but......................I do not see the banner.

It is there wanting to be seen but will not show. The outline is there with the alt phrase but no flash banner showing.

See here: http://www.bokbok.co.uk/forumdb/forumdisplay.php?f=20

What can I do to fix this? :tired:

Zachariah 10-25-2005 11:27 AM

Quote:

Originally Posted by HormZ
Am I the only dunce or what!! :ermm:

I did what I thought was a perfect install but......................I do not see the banner.

It is there wanting to be seen but will not show. The outline is there with the alt phrase but no flash banner showing.

See here: http://www.bokbok.co.uk/forumdb/forumdisplay.php?f=20

What can I do to fix this? :tired:


Code:

Sorry, BOKBOK is resting! The board is unavailable at the moment while we install updates and test functionality & correct upgrade errors.

We will be back soon...better, stronger, flashier and cooler!

Q: You are posting the HTML for the flash code into the HTML textarea ? The image area blanks will do only images.

Zachariah 10-25-2005 01:26 PM

Here is a simple JAVA random banner code you can paste in the HTML area of any forum.

EX:
This will show @ random.

image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com


Code:

<script language="javascript" type="text/javascript">
<!--
function banner() {
};

banner = new banner();
number = 0;

// bannerArray
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
 
// keep adding items above here...

increment = Math.floor(Math.random() * number);
document.write(banner[increment]);

//-->
</script>

Useage: If you need more banners edit / add another row.
Code:

banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location


All times are GMT. The time now is 12:47 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.01581 seconds
  • Memory Usage 1,829KB
  • 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
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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