You are not enjoying the benefits offered by registering. To register click here...
  
Forums | Prefs | Your Messages | Members | Recent | Search
Quick Search


Advanced Search
| Calendar | Doc | Dev' Blog! |
Chat (Alpha Version)

Guest, do not forget to login ( Register )
 Top > Forums > This Software > Discuss the Software
 How about sub-banners?

Skin Selection:
 (2 pages) 12  
Jasper

Public Speaker
Group: Testers
Posts: 562
Reputation: 10


Posted on May 15, 2006, 12:12 am by Jasper
How about sub-banners?
I don't mean seperate skins, but just seperate sub-banners below the main banner on different forums.

Sub-banners can be turned on and off per-forum in the ACP.

Here is a mock-up of what I mean



doesn't come here often, cause he has no free time ;_;
 
Top

JakeH

Public Speaker
Group: Moderators
Posts: 761
Reputation: 7


Posted on May 15, 2006, 2:50 am by JakeH
You just put them into the skin manually don't you?
lol
 
Top

chris

The Culprit
Group: Admins
Posts: 1,541
Reputation: 38


Posted on May 15, 2006, 3:23 am by chris
Yes, it looks like something you would put in the skin.
Is this to rotate ads banners?

 
Top

trinest

Devoted Beast
Group: Testers
Posts: 1,273
Reputation: 9


Posted on May 15, 2006, 3:56 am by trinest
an example is:

forum.starmen.net/

if you click on a diffrent section the banner will change depending on the section.
( Trinest.Com )
 
Top

Jasper

Public Speaker
Group: Testers
Posts: 562
Reputation: 10


Posted on May 15, 2006, 1:28 pm by Jasper
Wouldn't you need duplicate copies of the same skin though?
If you have 5 forums, where each 5 had a different sub-banner, wouldn't you need 5 seperate copies of the skin to do it skin-side?

That's why I was thinking, something like IPB does with their "rules" for each seperate forum. Where the rules are displayed above the forum. BUT, in this case, a sub-banner would be displayed on the different forums.
doesn't come here often, cause he has no free time ;_;
 
Top

trinest

Devoted Beast
Group: Testers
Posts: 1,273
Reputation: 9


Posted on May 15, 2006, 6:06 pm by trinest
It would be a code...a very complacated code.
( Trinest.Com )
 
Top

Jasper

Public Speaker
Group: Testers
Posts: 562
Reputation: 10


Posted on May 15, 2006, 7:25 pm by Jasper
 trinest wrote:
It would be a code...a very complacated code.


Yeah, I have an idea of what type of code, but for the average person downloading NextBBS that doesn't know much about coding, IF they wanted a feature like this.... it's not likely they can do it.


Something like:

Get the current do= value, and if it was say 'page1' then when fetching the links from the db and writing it to an output variable Then change the entry with page1 in it to one that used a different image. BUT that is a lot of work and like I said before anyone that wants this and isn't good at scripitng is going to have a very very hard time doing it. And I'm not even 100% sure if that would work.

It could be like a feature that other bbs systems don't have, to make NextBBS more desireable

Last edit by Jasper on Dec 31, 1969, 7:00 pm
doesn't come here often, cause he has no free time ;_;
 
Top

TEve

Story Teller
Group: Testers
Posts: 207
Reputation: 2


Posted on May 19, 2006, 10:21 pm by TEve
Yes that's an awesome idea, please add it Chris because I was about to suggest it before Jasper did lol. Banners for every forum would be awesome.
 
Top

harmor


Story Teller
Group: Developers
Posts: 127
Reputation: 3


Posted on Jul 15, 2006, 7:41 pm by harmor
I'll see if I can code it when get home. I've been brainstorming on how I'm going to implement this and it seems like it'll work.
I'll let everyone know if I can do this project by 12am et.
Xen Web Hosting Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more -------------------------------------------------------------------------------------------------------
Chris
Let's hang on to Harmor, it's not everyday that you find people who walk the walk, not just talk the talk.
 
Top

harmor


Story Teller
Group: Developers
Posts: 127
Reputation: 3


Posted on Jul 15, 2006, 9:46 pm by harmor
It's possible to do and it's not as hard as trinest claims.

This is all I added to index.php
PHP Code:
  1.  
  2. $level = !empty($INPUT['level']) ? $INPUT['level'] : false;
  3.       
  4. $getads = "SELECT * FROM {$CONFIG->dbprfx}ad_system WHERE enabled = '1' AND page='$page'
  5. AND level='$level' ORDER BY RAND() LIMIT 1 ";
  6. $qryads = $DB->query($getads);
  7.  while($ad = $qryads->fetchRow(DB_FETCHMODE_ASSOC))
  8.   {
  9.        $ad['link_perms'] = explode(",", $ad['link_perms']);
  10.            
  11.         if(in_array($USER->group, $ad['link_perms']) )
  12.          {
  13.                 $TEMPLATE->assign("ad", $ad['code']);
  14.          }
  15.    }


Go here and under the chat you should see either "Test Code 1" or "Test Code 2". Keep refreshing the page and it'll change. You may have to refresh it a couple times.

Edit: I updated the code so you can have different banners on different forums. Before if you went to www.xenweb.net/nextbbs/index.php?do=main&level=2 it would still consider that "main" because of the "?do=main" in the URL.
Now you can have a completely different banner per forum thanks to my great coding skills.

I'll make it so you can hide the banners to different usergroups. It won't take long, I'll just copy the algorithm I used for the NavLinks to this hack.

Edit 2: I updated the code once again so you can use usergroup permissions per banner.

Last edit by harmor on Dec 31, 1969, 7:00 pm
Xen Web Hosting Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more -------------------------------------------------------------------------------------------------------
Chris
Let's hang on to Harmor, it's not everyday that you find people who walk the walk, not just talk the talk.
 
Top

Jasper

Public Speaker
Group: Testers
Posts: 562
Reputation: 10


Posted on Jul 15, 2006, 10:53 pm by Jasper
Wow you're awesome

I've been wanting something like this since 0.4.3 :P

Last edit by Jasper on Dec 31, 1969, 7:00 pm
doesn't come here often, cause he has no free time ;_;
 
Top

harmor


Story Teller
Group: Developers
Posts: 127
Reputation: 3


Posted on Jul 15, 2006, 11:01 pm by harmor
Thank you!!
I like being the only one on here that understands this software's coding (other than Chris).

I'll be releasing another hack in like 5 minutes.
Xen Web Hosting Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more -------------------------------------------------------------------------------------------------------
Chris
Let's hang on to Harmor, it's not everyday that you find people who walk the walk, not just talk the talk.
 
Top

harmor


Story Teller
Group: Developers
Posts: 127
Reputation: 3


Posted on Jul 16, 2006, 4:24 am by harmor
The hack is coming along nicely. I'm just copying the code from my "NavLinks" hack and modifying it. I estimate that I should be done in a couple hours but no promises.
I just have to finish up the administrator backend, take screenshots, and write instructions.

Edit:
I claimed I would finish this in a couple hours and that was at 4:24 am. It is now 5:09am. So it took me under an hour, man can I code.
You better appreciate it Jasper and whoever else wanted this hack.

Last edit by harmor on Dec 31, 1969, 7:00 pm
Xen Web Hosting Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more -------------------------------------------------------------------------------------------------------
Chris
Let's hang on to Harmor, it's not everyday that you find people who walk the walk, not just talk the talk.
 
Top

chris

The Culprit
Group: Admins
Posts: 1,541
Reputation: 38


Posted on Jul 17, 2006, 10:33 pm by chris
Wow don't forget to get some sleep too.

I like the concept very much, I'm thinking about integrating the hack in the next release.

 
Top

Jasper

Public Speaker
Group: Testers
Posts: 562
Reputation: 10


Posted on Jul 19, 2006, 12:03 pm by Jasper
 chris wrote:
Wow don't forget to get some sleep too.

I like the concept very much, I'm thinking about integrating the hack in the next release.


That would be cool

A lot of his hacks would be awesome in the next release
doesn't come here often, cause he has no free time ;_;
 
Top

 (2 pages) 12 - Flat Mode | Threaded Mode  
Quick Jump:

         
Page generated in 0.05 seconds (Queries: 0.00) - Cpu: 0.19
Total DB [adodb:mysql] queries: 14
Total Strings Translated: 16
Powered by NextBBS SE v0.4.5 - Copyright © 2007 CFR & The NextBBS Team
Chatbox powered by smiletag